IMDSPStorage4::GetParent
The GetParent method retrieves the parent of the current storage.
Syntax
HRESULT GetParent(IMDSPStorage**ppStorage);
Parameters
ppStorage
[out] Pointer to the returned parent storage object.
Return Values
The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:
- Standard COM error codes
- Windows error codes converted to HRESULT values
- Windows Media Device Manager error codes
For an extenstive list of possible error codes, see Error Codes.
Possible values include, but are not limited to, those in the following table. If the method fails with an error, it returns a standard error code.
Return code | Description |
S_OK | The method succeeded and ppStorage holds the IMDSPStorage pointer to the parent object. |
S_FALSE | Current storage is the root storage and therefore has no parent. In this case, ppStorage is set to NULL. |
Remarks
This method can be used to traverse the complete hierarchy of the current storage if used recursively.
When this method is called for root storage, this method should return S_FALSE and set ppStorage to NULL.
Requirements
Header: Defined in mswmdm.h.
Library: mssachlp.lib
See Also