网站首页  词典首页

请输入您要查询的函数:

 

术语 ddepostadvise
释义 DdePostAdvise
语法:
BOOL DdePostAdvise( DWORD idInst,
HSZ hszTopic,
HSZ hszItem
);
DdePostAdvise功能
该DdePostAdvise函数会导致系统发送XTYP_ADVREQ交易调用(服务器)每个客户端应用程序的动态数据交换(DDE)回调函数以积极负责就特定主题和项目循环。服务器应用程序应调用此函数时,与主题名称或项目名称对变化有关的数据。
参数
idInst
[in]指定的应用程序实例标识符先前调用DdeInitialize函数获得。
hszTopic
[in]句柄字符串,指定主题名称。发送积极提供意见与循环的所有议题的通知,应用程序可以将此参数设置为0L。
hszItem
[in]句柄字符串,指定项目名称。发送积极提供意见与循环的所有项目的通知,应用程序可以将此参数设置为0L。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
该DdeGetLastError函数可用于获得错误代码,它可以是下列值之一:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_DLL_USAGE
DMLERR_NO_ERROR
备注
服务器已nonenumerable课题或项目,应设置hszTopic和hszItem参数为NULL,以便系统生成的所有活动提供咨询意见的循环交易。服务器的DDE回调函数返回NULL任何提醒不能更新循环。
如果一个服务器调用DdePostAdvise的主题,项目和格式集的名称,其中包括目前在一XTYP_ADVREQ回调,堆栈溢出处理结果集。
功能信息
最低DLL版本 user32.dll
在Ddeml.h HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
动态数据交换管理库概况,DdeInitialize,XTYP_ADVREQ
==英文原文==DdePostAdvise Function
The DdePostAdvise function causes the system to send an XTYP_ADVREQ transaction to the calling (server) application's Dynamic Data Exchange (DDE) callback function for each client with an active advise loop on the specified topic and item. A server application should call this function whenever the data associated with the topic name or item name pair changes.
Syntax
BOOL DdePostAdvise( DWORD idInst,
HSZ hszTopic,
HSZ hszItem
);
Parameters
idInst
[in] Specifies the application instance identifier obtained by a previous call to the DdeInitialize function.
hszTopic
[in] Handle to a string that specifies the topic name. To send notifications for all topics with active advise loops, an application can set this parameter to 0L.
hszItem
[in] Handle to a string that specifies the item name. To send notifications for all items with active advise loops, an application can set this parameter to 0L.
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_DLL_USAGE
DMLERR_NO_ERROR
Remarks
A server that has nonenumerable topics or items should set the hszTopic and hszItem parameters to NULL so that the system generates transactions for all active advise loops. The server's DDE callback function returns NULL for any advise loops that must not be updated.
If a server calls DdePostAdvise with a topic, item, and format name set that includes the set currently being handled in an XTYP_ADVREQ callback, a stack overflow can result.
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 , DdeInitialize , XTYP_ADVREQ
==原始网址==http://msdn.microsoft.com/en-us/library/ms648760(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:26:49