An instance of the IWMDMStorage interface provides methods to examine and explore a storage (a generic name for a data or collection object, such as a file, folder, or playlist) on a device. Note that storages cannot be used to refer to objects on the computer, only on the device. IWMDMStorage can contain nested objects, and can represent the root object (the entire storage medium) or any child object, such as a folder or file, on that medium. The IWMDMStorage2 interface extends this interface by making it possible to get a storage pointer from a storage name and to get and set extended attributes. IWMDMStorage3 extends this interface by supporting metadata.
To obtain a root storage object which can be queried for all other objects on a device, you must call IWMDMDevice::EnumStorage, as described in Exploring a Device.
In addition to the methods inherited from IUnknown, the IWMDMStorage interface exposes the following methods.
Method | Description |
EnumStorage | Retrieves an IWMDMEnumStorage interface to enumerate the immediate child storages of the current storage. |
GetAttributes | Retrieves the attributes of the storage. |
GetDate | Retrieves the date on which the storage was most recently modified. |
GetName | Retrieves the display name of the storage. |
GetRights | Retrieves the rights information for a licensed storage. |
GetSize | Retrieves the size of the storage, in bytes. |
GetStorageGlobals | Retrieves the IWMDMStorageGlobals interface to provide access to global information about a storage medium. |
SendOpaqueCommand | Sends a command to the storage through Windows Media Device Manager. |
SetAttributes | Sets the attributes of the storage. |
출처 : http://msdn.microsoft.com/en-us/library/bb231928(v=vs.85).aspx
'윈도우 > 참고' 카테고리의 다른 글
GetSerialNumber, WMDMID, mac 예제소스 (0) | 2012.03.14 |
---|---|
MTP 디바이스가 연결 될때 받는 메시지 핸들러 (0) | 2012.03.13 |
휴대용 디지털 기기의 콘텐츠 이동을 위한 프로토콜 방식인 MSC과 MTP (0) | 2012.02.27 |
USB 메모리 자동실행 방지 레지스트리 (0) | 2012.02.27 |
error C3867: 'Callback': 함수 호출에 인수 목록이 없습니다. '&Callback'을(를) 사용하여 멤버에 대한 포인터를 만드십시오. (0) | 2012.02.23 |