网站首页  词典首页

请输入您要查询的函数:

 

术语 ddequeryconvinfo
释义 DdeQueryConvInfo
语法:
UINT DdeQueryConvInfo( HCONV hConv,
DWORD idTransaction,
PCONVINFO pConvInfo
);
DdeQueryConvInfo功能
该DdeQueryConvInfo函数检索信息的动态数据交换(DDE)的交易以及有关的谈话,其中交易发生。
参数
hConv
[in]句柄交谈。
idTransaction
[in]指定交易。异步交易,这个参数应该是一个事务标识符的DdeClientTransaction函数返回。同步交易,此参数应QID_SYNC。
pConvInfo
[中,out]指向的CONVINFO结构,收到有关交易和电话通话记录。该文件的CONVINFO结构的成员必须指定的结构分配的缓冲区的长度。
Windows 95/98/Me的:如果使用的是Unicode的支持由Microsoft层,CONVCONTEXT DdeQueryConvInfo。 iCodePage成员可以指定CP_WINUNICODE。
返回值
如果函数成功,返回值是到CONVINFO结构复制的字节数。
如果函数失败,返回值为FALSE。
该DdeGetLastError函数可用于获得错误代码,它可以是下列值之一:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_NO_CONV_ESTABLISHED
DMLERR_NO_ERROR
DMLERR_UNFOUND_QUEUE_ID
备注
应用程序不应自由字符串处理由CONVINFO结构引用。如果应用程序必须使用这些字符串处理一个,它应该调用DdeKeepStringHandle函数来创建一个句柄的副本。
如果idTransaction参数设置为QID_SYNC,该CONVINFO结构hUser成员与对话,可用于保存与对话相关的数据。如果idTransaction是一个异步事务标识符的hUser成员只与当前的交易,只在交易期间有效。
在Windows 95/98/Me:DdeQueryConvInfo是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 user32.dll
在Ddeml.h HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
动态数据交换管理库概况,CONVINFO,DdeClientTransaction,DdeConnect,DdeConnectList,DdeKeepStringHandle,DdeQueryNextServer
==英文原文==DdeQueryConvInfo Function
The DdeQueryConvInfo function retrieves information about a Dynamic Data Exchange (DDE) transaction and about the conversation in which the transaction takes place.
Syntax
UINT DdeQueryConvInfo( HCONV hConv,
DWORD idTransaction,
PCONVINFO pConvInfo
);
Parameters
hConv
[in] Handle to the conversation.
idTransaction
[in] Specifies the transaction. For asynchronous transactions, this parameter should be a transaction identifier returned by the DdeClientTransaction function. For synchronous transactions, this parameter should be QID_SYNC.
pConvInfo
[in, out] Pointer to the CONVINFO structure that receives information about the transaction and conversation. The cb member of the CONVINFO structure must specify the length of the buffer allocated for the structure.
Windows 95/98/Me: If using the DdeQueryConvInfo that is supported by the Microsoft Layer for Unicode , the CONVCONTEXT . iCodePage member can specify CP_WINUNICODE.
Return Value
If the function succeeds, the return value is the number of bytes copied into the CONVINFO structure.
If the function fails, the return value is FALSE.
The DdeGetLastError function can be used to get the error code, which can be one of the following values:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_NO_CONV_ESTABLISHED
DMLERR_NO_ERROR
DMLERR_UNFOUND_QUEUE_ID
Remarks
An application should not free a string handle referenced by the CONVINFO structure. If an application must use one of these string handles, it should call the DdeKeepStringHandle function to create a copy of the handle.
If the idTransaction parameter is set to QID_SYNC, the hUser member of the CONVINFO structure is associated with the conversation and can be used to hold data associated with the conversation. If idTransaction is the identifier of an asynchronous transaction, the hUser member is associated only with the current transaction and is valid only for the duration of the transaction.
Windows 95/98/Me: DdeQueryConvInfo is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems.
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 , CONVINFO , DdeClientTransaction , DdeConnect , DdeConnectList , DdeKeepStringHandle , DdeQueryNextServer
==原始网址==http://msdn.microsoft.com/en-us/library/ms648761(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:23:18