网站首页  词典首页

请输入您要查询的函数:

 

术语 impersonateddeclientwindow
释义 ImpersonateDdeClientWindow
语法:
BOOL ImpersonateDdeClientWindow( HWND hWndClient,
HWND hWndServer
);
ImpersonateDdeClientWindow功能
该ImpersonateDdeClientWindow功能实现了动态数据交换(DDE)服务器应用程序来模拟一个DDE客户端应用程序的安全上下文。这能够防止未经授权的DDE客户端安全的服务器数据。
参数
hWndClient
[in]句柄DDE客户端窗口来模拟。客户端窗口必须建立一个由hWndServer参数标识的服务器窗口DDE对话。
hWndServer
[in]句柄DDE服务器窗口。应用程序必须创建在调用这个函数的服务器窗口。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
应用程序应调用RevertToSelf函数撤消的ImpersonateDdeClientWindow功能设置模拟。
申请一个DDEML应该使用DdeImpersonateClient功能。
安全警告:
使用此函数不正确可能会损害您的程序的安全性。这是非常重要的检查调用的返回值。如果该函数的任何原因而失败,客户端不模拟和其后的任何客户端请求是在调用进程的安全上下文的。如果调用进程正在运行一个高度特权的帐户,如本地系统,或作为一个管理组的成员,用户可以执行的行动,否则将不获批准。因此,如果调用失败或产生一个错误不继续执行客户端请求。
功能信息
最低DLL版本 user32.dll
在Dde.h HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低经营systemsWindows新台币3.1
参见
关于动态数据交换,DdeImpersonateClient,RevertToSelf
==英文原文==ImpersonateDdeClientWindow Function
The ImpersonateDdeClientWindow function enables a Dynamic Data Exchange (DDE) server application to impersonate a DDE client application's security context. This protects secure server data from unauthorized DDE clients.
Syntax
BOOL ImpersonateDdeClientWindow( HWND hWndClient,
HWND hWndServer
);
Parameters
hWndClient
[in] Handle to the DDE client window to impersonate. The client window must have established a DDE conversation with the server window identified by the hWndServer parameter.
hWndServer
[in] Handle to the DDE server window. An application must create the server window before calling this function.
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
An application should call the RevertToSelf function to undo the impersonation set by the ImpersonateDdeClientWindow function.
A DDEML application should use the DdeImpersonateClient function.
Security Alert
Using this function incorrectly might compromise the security of your program. It is very important to check the return value of the call. If the function fails for any reason, the client is not impersonated and any subsequent client request is made in the security context of the calling process. If the calling process is running as a highly privileged account, such as LocalSystem or as a member of an administrative group, the user may be able to perform actions that would otherwise be disallowed. Therefore, if the call fails or raises an error do not continue execution of the client request.
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 , DdeImpersonateClient , RevertToSelf
==原始网址==http://msdn.microsoft.com/en-us/library/ms649005(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:16:10