网站首页  词典首页

请输入您要查询的函数:

 

术语 ddesetqualityofservice
释义 DdeSetQualityOfService
语法:
BOOL DdeSetQualityOfService( HWND hwndClient,
const SECURITY_QUALITY_OF_SERVICE *pqosNew,
PSECURITY_QUALITY_OF_SERVICE pqosPrev
);
DdeSetQualityOfService功能
该DdeSetQualityOfService函数指定的服务质量(QoS)的原始动态数据交换DDE的对话为未来(DDE的)应用程序需要它启动。指定的服务质量适用于任何的谈话开始时这些设置到位。 DDE对话的服务质量的持续对话的时间;在谈话的DdeSetQualityOfService函数调用不影响该会话的QoS。
参数
hwndClient
[in]句柄DDE客户端窗口,指定WM_DDE_INITIATE信息源的客户端将发送到DDE的对话开始。
pqosNew
[in]指向一个价值的服务要求的质量SECURITY_QUALITY_OF_SERVICE结构。
pqosPrev
[out]指向1 SECURITY_QUALITY_OF_SERVICE结构,收到了由hwndClient确定的窗口相关的服务价值上的质量。
此参数是可选的。如果应用程序没有在hwndClient的价值观上的QOS的利益,应设立pqosPrev为NULL。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果服务质量并没有被指定为客户端窗口,hwndClient之前,发送设置为hwndClient的wParam WM_DDE_INITIATE,系统使用的客户端窗口的服务质量以下默认值:
(
长度= sizeof(SECURITY_QUALITY_OF_SERVICE);
身份模拟= SecurityImpersonation;
ContextTrackingMode = SECURITY_STATIC_TRACKING;
EffectiveOnly =真;
)
用途功能的DdeSetQualityOfService关联不同的服务质量与客户的窗口。更改后的服务,新的设置影响任何启动的后续通话质量。一旦应用程序启动一个DDE对话使用的服务的价值,特别是质量,就必须终止交谈并重新启动对话,以便有一个不同的值生效。
功能信息
最低DLL版本 user32.dll
在Dde.h HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低经营systemsWindows新台币3.1
参见
关于动态数据交换,SECURITY_QUALITY_OF_SERVICE,WM_DDE_INITIATE
==英文原文==DdeSetQualityOfService Function
The DdeSetQualityOfService function specifies the quality of service (QOS) a raw Dynamic Data Exchange (DDE) application desires for future DDE conversations it initiates. The specified QOS applies to any conversations started while those settings are in place. A DDE conversation's quality of service lasts for the duration of the conversation; calls to the DdeSetQualityOfService function during a conversation do not affect that conversation's QOS.
Syntax
BOOL DdeSetQualityOfService( HWND hwndClient,
const SECURITY_QUALITY_OF_SERVICE *pqosNew,
PSECURITY_QUALITY_OF_SERVICE pqosPrev
);
Parameters
hwndClient
[in] Handle to the DDE client window that specifies the source of WM_DDE_INITIATE messages a client will send to start DDE conversations.
pqosNew
[in] Pointer to a SECURITY_QUALITY_OF_SERVICE structure for the desired quality of service values.
pqosPrev
[out] Pointer to a SECURITY_QUALITY_OF_SERVICE structure that receives the previous quality of service values associated with the window identified by hwndClient.
This parameter is optional. If an application has no interest in hwndClient's previous QOS values, it should set pqosPrev to NULL.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
If a quality of service has not been specified for a client window, hwndClient, prior to sending a WM_DDE_INITIATE with the wParam set to hwndClient, the system uses the following default quality of service values for the client window:
{
Length = sizeof(SECURITY_QUALITY_OF_SERVICE);
ImpersonationLevel = SecurityImpersonation;
ContextTrackingMode = SECURITY_STATIC_TRACKING;
EffectiveOnly = TRUE;
}
Use the DdeSetQualityOfService function to associate a different quality of service with the client window. After you change the quality of service, the new settings affect any subsequent conversations that are started. Once an application starts a DDE conversation using a particular quality of service value, it must terminate the conversation and restart the conversation in order to have a different value take effect.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Dde.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows NT 3.1
See Also
About Dynamic Data Exchange , SECURITY_QUALITY_OF_SERVICE , WM_DDE_INITIATE
==原始网址==http://msdn.microsoft.com/en-us/library/ms649003(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 13:19:58