IWiaUIExtension::GetDeviceIcon method
Gets a custom device icon.
Syntax
HRESULT GetDeviceIcon(
[in] BSTR bstrDeviceId,
[out] HICON *phIcon,
[in] ULONG nSize
);
Parameters
-
bstrDeviceId [in]
-
Type: BSTR
Specifies the device ID of the WIA device for which the icon is to be obtained.
-
phIcon [out]
-
Type: HICON*
Points to a memory location that will receive a handle for the icon for the device.
-
nSize [in]
-
Type: ULONG
Specifies the desired icon size, in pixels. The icon is assumed to be square, and nSize specifies both the width and height of the requested icon.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|