术语 | shcreatedefaultextracticon |
释义 | SHCreateDefaultExtractIcon 语法: HRESULT SHCreateDefaultExtractIcon( REFIID riid, void **ppv ); SHCreateDefaultExtractIcon功能 创建一个标准图标提取,其违约可以进一步通过IDefaultExtractIconInit接口配置。 参数 riid 提及的接口ID。 PPV的 [内]的IDefaultExtractIconInit接口指针的地址。 返回值 返回S_OK如果成功,或其他错误值。 备注 该函数的目的是用法如下: IExtractIcon *pxi; IDefaultExtractIconInit *pdxi; HRESULT hr = SHCreateDefaultExtractIcon(IID_PPV_ARGS(&pdxi); if (SUCCEEDED(hr)) && SUCCEEDED(hr = pdxi->SetFlags(GIL_PERCLASS)) && SUCCEEDED(hr = pdxi->SetKey(hkey)) && // optional SUCCEEDED(hr = pdxi->SetNormalIcon(L"this.dll", 1)) && SUCCEEDED(hr = pdxi->SetOpenIcon(NULL, SIID_FOLDEROPEN)) && // optional SUCCEEDED(hr = pdxi->SetDefaultIcon(NULL, SIID_FOLDER)) && // optional SUCCEEDED(hr = pdxi->SetShortcutIcon(L"this.dll", 2))) // optional { hr = pdxi->QueryInterface(IID_PPV_ARGS(&pxi)) } if (pdxi) { pdxi->Release(); } 功能信息 最低DLL版本 Shell32.dll 自定义ImplementationNo Headershobjidl.h import libraryNone 最低支持操作系统 Vista ==英文原文==SHCreateDefaultExtractIcon Function Creates a standard icon extractor, whose defaults can be further configured via the IDefaultExtractIconInit interface. Syntax HRESULT SHCreateDefaultExtractIcon( REFIID riid, void **ppv ); Parameters riid A reference to interface ID. ppv [out] The address of IDefaultExtractIconInit interface pointer. Return Value Returns S_OK if successful, or an error value otherwise. Remarks The intended usage for this function is as follows: IExtractIcon *pxi; IDefaultExtractIconInit *pdxi; HRESULT hr = SHCreateDefaultExtractIcon(IID_PPV_ARGS(&pdxi); if (SUCCEEDED(hr)) && SUCCEEDED(hr = pdxi->SetFlags(GIL_PERCLASS)) && SUCCEEDED(hr = pdxi->SetKey(hkey)) && // optional SUCCEEDED(hr = pdxi->SetNormalIcon(L"this.dll", 1)) && SUCCEEDED(hr = pdxi->SetOpenIcon(NULL, SIID_FOLDEROPEN)) && // optional SUCCEEDED(hr = pdxi->SetDefaultIcon(NULL, SIID_FOLDER)) && // optional SUCCEEDED(hr = pdxi->SetShortcutIcon(L"this.dll", 2))) // optional { hr = pdxi->QueryInterface(IID_PPV_ARGS(&pxi)) } if (pdxi) { pdxi->Release(); } Function Information Minimum DLL VersionShell32.dll Custom ImplementationNo Headershobjidl.h Import libraryNone Minimum operating systemsWindows Vista ==原始网址==http://msdn.microsoft.com/en-us/library/bb762128(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。