Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IPortableDeviceDataStream::GetObjectID
The GetObjectID method retrieves the object ID of the resource that was written to the device. This method is only valid after calling IStream::Commit on the data stream.
Syntax
HRESULT GetObjectID( LPWSTR* ppszObjectID );
Parameters
ppszObjectID
[out] The ID of the object just transferred to the device.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
| S_OK | The method succeeded. |
| E_POINTER | At least one of the required arguments was a NULL pointer. |
| E_OUTOFMEMORY | Insufficient memory is available. |
Remarks
An object ID is created after the object is created on the device. Therefore, a new object that is created by calling IPortableDeviceContent::CreateObjectWithPropertiesAndData will not have an ID assigned until the application calls Commit on the data transfer stream.
Requirements
Header: Defined in PortableDeviceApi.h
Library: PortableDeviceGUIDs.lib
See Also
| Previous | Next |