术语 | shcreatedefaultcontextmenu |
释义 | SHCreateDefaultContextMenu 语法: HRESULT SHCreateDefaultContextMenu( const DEFCONTEXTMENU *pdcm, REFIID riid, void **ppv ); SHCreateDefaultContextMenu功能 创建一个对象,表示壳牌的默认上下文菜单实现。 参数 pdcm [in]指向一个恒定DEFCONTEXTMENU结构。 riid 参考接口ID的接口的基础上的对象。这IContextMenu通常的,IContextMenu2或IContextMenu3 IID的。 PPV的 [内]当此方法返回,包含了接口指针riid请求。 返回值 返回S_OK如果成功,或其他错误值。 备注 此功能通常用于执行的IShellFolder::GetUIObjectOf。 GetUIObjectOf创建一个上下文菜单IContextMenu合并处理的DEFCONTEXTMENU结构中指定,并可以选择性地提供诸如开放,探索,删除默认上下文菜单中动词的实现,并复制。 这一职能的行动是在DEFCONTEXTMENU structure.The空气污染指数CDefFolderMenu_Create2指定的输入控制是另一种方式来构造默认上下文菜单实现。这是比SHCreateDefaultContextMenu表达较少,但在之前就已存在的平台为Windows Vista。 功能信息 最低DLL版本 Shell32.dll版本6.0.6000或更高 自定义ImplementationNo Headershlobj.h import libraryNone 最低支持操作系统 Vista ==英文原文==SHCreateDefaultContextMenu Function Creates an object that represents the Shell's default context menu implementation. Syntax HRESULT SHCreateDefaultContextMenu( const DEFCONTEXTMENU *pdcm, REFIID riid, void **ppv ); Parameters pdcm [in] A pointer to a constant DEFCONTEXTMENU structure. riid Reference to the interface ID of the interface on which to base the object. This is typically the IID of IContextMenu , IContextMenu2 , or IContextMenu3 . ppv [out] When this method returns, contains the interface pointer requested in riid. Return Value Returns S_OK if successful, or an error value otherwise. Remarks This function is typically used in the implementation of IShellFolder::GetUIObjectOf . GetUIObjectOf creates a context menu that merges IContextMenu handlers specified by the DEFCONTEXTMENU structure, and can optionally provide default context menu verb implementations such as open, explore, delete, and copy. The operation of this function is controlled by the input specified in the DEFCONTEXTMENU structure.The API CDefFolderMenu_Create2 is another way to construct the default context menu implementation. It is less expressive than SHCreateDefaultContextMenu but it exists in platforms prior to Windows Vista. Function Information Minimum DLL VersionShell32.dll version 6.0.6000 or later Custom ImplementationNo Headershlobj.h Import libraryNone Minimum operating systemsWindows Vista ==原始网址==http://msdn.microsoft.com/en-us/library/bb762127(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。