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.
Gets information about the media sharing device.
Syntax
HRESULT GetDevice(
[out] DEVICE_INFO *pDevice
);
Parameters
[out] pDevice
A pointer to a DEVICE_INFO structure. The method fills in this structure with the device information.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The method allocates memory for the BSTR members of the DEVICE_INFO structure. The caller must free the memory for each BSTR by calling SysFreeString.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | mfsharingengine.h |