Windows Media Format SDK banner art
PreviousNext

IMDSPDevice::GetDeviceIcon

The GetDeviceIcon method returns an HICON that represents the icon that the device service provider indicates must be used to represent this device.

Syntax

HRESULT GetDeviceIcon(
  ULONG*  phIcon
);

Parameters

  phIcon

[out]  Handle to an Icon object that receives the icon for the device. Before using it, the caller must cast the value to an HICON*. When an application is finished with the icon, it should call DestroyIcon to free the resource. DestroyIcon is a standard Win32 function.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
E_INVALIDARG The phIcon parameter is an invalid or NULL pointer.
E_FAIL An unspecified error occurred.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.