資源簡介
如何實現MTP協議的讀取
代碼片段和文件信息
//?THIS?CODE?AND?INFORMATION?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF
//?ANY?KIND?EITHER?EXPRESSED?OR?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO
//?THE?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND/OR?FITNESS?FOR?A
//?PARTICULAR?PURPOSE.
//
//?Copyright?(c)?Microsoft?Corporation.?All?rights?reserved.
#include?“stdafx.h“
//?This?number?controls?how?many?object?identifiers?are?requested?during?each?call
//?to?IEnumPortableDeviceobjectIDs::Next()
//
#define?NUM_objectS_TO_REQUEST??10
//?Recursively?called?function?which?enumerates?using?the?specified
//?object?identifier?as?the?parent.
void?RecursiveEnumerate(
????_In_?PCWSTR??????????????????objectID
????_In_?IPortableDeviceContent*?content)
{
????ComPtrjectIDs>?enumobjectIDs;
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????13621??2013-06-20?08:22??desc
?????文件????????1670??2013-06-20?08:22??desc
?????文件???????????0??2013-06-20?08:22??desc
?????文件???????????0??2013-06-20?08:22??desc
?????文件???????10483??2013-06-20?08:22??desc
?????文件????????1727??2013-06-20?08:22??desc
?????文件???????71835??2013-06-20?08:22??desc
?????文件????????3369??2013-06-20?08:22??desc
?????文件????????4688??2013-06-20?08:22??license.rtf
?????文件????????1268??2013-06-20?08:22??C++\CommonFunctions.h
?????文件???????12498??2013-06-20?08:22??C++\ContentEnumeration.cpp
?????文件???????47717??2013-06-20?08:22??C++\ContentProperties.cpp
?????文件???????69925??2013-06-20?08:22??C++\ContentTransfer.cpp
?????文件???????36813??2013-06-20?08:22??C++\DeviceCapabilities.cpp
?????文件???????17887??2013-06-20?08:22??C++\DeviceEnumeration.cpp
?????文件????????4426??2013-06-20?08:22??C++\DeviceEvents.cpp
?????文件????????1930??2013-06-20?08:22??C++\ReadMe.txt
?????文件????????1957??2013-06-20?08:22??C++\stdafx.h
?????文件???????11671??2013-06-20?08:22??C++\WpdApiSample.cpp
?????文件????????2233??2013-06-20?08:22??C++\WpdApiSample.sln
?????文件???????10399??2013-06-20?08:22??C++\WpdApiSample.vcxproj
評論
共有 條評論