Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
Sets the default icon for the library.
Syntax
HRESULT SetIcon(
[in] LPCWSTR pszIcon
);
Parameters
[in] pszIcon
Type: LPCWSTR
A null-terminated Unicode string that describes the location of the default icon. The string must be formatted as ModuleFileName,ResourceIndex or ModuleFileName,-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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 [desktop apps only] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
| Target Platform | Windows |
| Header | shobjidl_core.h (include Shobjidl.h) |