术语 | ddesetuserhandle |
释义 | DdeSetUserHandle 语法: BOOL DdeSetUserHandle( HCONV hConv, DWORD id, DWORD_PTR hUser ); DdeSetUserHandle功能 联营公司的DdeSetUserHandle函数应用程序定义的谈话处理或交易标识符值。这对于简化异步交易处理。一个应用程序可以使用DdeQueryConvInfo函数来检索此值。 参数 hConv [in]句柄交谈。 编号 [in]指定交易标识符赞同的hUser参数指定的值。应用程序应将此参数设置为QID_SYNC与关联hUser由hConv参数确定的谈话。 hUser [in]价值关联与对话处理。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。 该DdeGetLastError函数可用于获得错误代码,它可以是下列值之一: DMLERR_DLL_NOT_INITIALIZED DMLERR_INVALIDPARAMETER DMLERR_NO_ERROR DMLERR_UNFOUND_QUEUE_ID 功能信息 最低DLL版本 user32.dll 在Ddeml.h HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.1 参见 动态数据交换管理库概述,DdeQueryConvInfo ==英文原文==DdeSetUserHandle Function The DdeSetUserHandle function associates an application-defined value with a conversation handle or a transaction identifier. This is useful for simplifying the processing of asynchronous transactions. An application can use the DdeQueryConvInfo function to retrieve this value. Syntax BOOL DdeSetUserHandle( HCONV hConv, DWORD id, DWORD_PTR hUser ); Parameters hConv [in] Handle to the conversation. id [in] Specifies the transaction identifier to associate with the value specified by the hUser parameter. An application should set this parameter to QID_SYNC to associate hUser with the conversation identified by the hConv parameter. hUser [in] Value to associate with the conversation handle. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. The DdeGetLastError function can be used to get the error code, which can be one of the following values: DMLERR_DLL_NOT_INITIALIZED DMLERR_INVALIDPARAMETER DMLERR_NO_ERROR DMLERR_UNFOUND_QUEUE_ID Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Ddeml.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.1 See Also Dynamic Data Exchange Management Library Overview , DdeQueryConvInfo ==原始网址==http://msdn.microsoft.com/en-us/library/ms648765(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。