IShellLibrary::SetIcon method
Sets the default icon for the library.
Syntax
HRESULT SetIcon(
[in] LPCWSTR pszIcon
);
Parameters
- pszIcon [in]
-
Type: LPCWSTR
A null-terminated Unicode string that describes the location of the default icon. The string must be formatted as
ModuleFileName,ResourceIndexorModuleFileName,-ResourceID.Value Description ModuleFileName The file name of the module file that contains the icon resource. ResourceIndex A positive decimal number that specifies the index of the icon resource in the module file. -ResourceID A negative decimal number whose absolute value is the resource ID of the icon resource in the module file.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
For more information on the format of the pszIcon parameter, see PathParseIconLocation.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also
Show: