术语 | ddeimpersonateclient |
释义 | DdeImpersonateClient 语法: BOOL DdeImpersonateClient( HCONV hConv ); DdeImpersonateClient功能 该DdeImpersonateClient函数模拟动态数据交换(DDE)客户端的DDE客户端会话的应用。 参数 hConv [in]句柄DDE客户端将模拟的对话。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 模拟是一个过程的能力承担的安全属性的另一个进程。当在一个DDE对话请求DDE服务器信息的客户端,服务器模拟客户端。当服务器请求访问一个对象时,系统验证对客户端的安全属性访问。 当模拟完成后,服务器通常调用RevertToSelf函数。 安全警告: 如果对DdeImpersonateClient要求任何原因而失败,客户端不模拟和客户端请求是在调用进程的安全上下文的。如果调用过程是一个高度特权的帐户,如本地系统,或作为一个管理组的成员,运行,用户可以执行的行动,否则将不获批准。因此,重要的是,您总是检查调用的返回值,如果它未能提出一个错误,不要继续在客户端请求的执行。 功能信息 最低DLL版本 user32.dll 在Ddeml.h HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低经营systemsWindows新台币3.1 参见 动态数据交换管理库概况,ImpersonateNamedPipeClient,RevertToSelf ==英文原文==DdeImpersonateClient Function The DdeImpersonateClient function impersonates a Dynamic Data Exchange (DDE) client application in a DDE client conversation. Syntax BOOL DdeImpersonateClient( HCONV hConv ); Parameters hConv [in] Handle to the DDE client conversation to be impersonated. 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 Impersonation is the ability of a process to take on the security attributes of another process. When a client in a DDE conversation requests information from a DDE server, the server impersonates the client. When the server requests access to an object, the system verifies the access against the client's security attributes. When the impersonation is complete, the server normally calls the RevertToSelf function. Security Alert If the call to DdeImpersonateClient fails for any reason, the client is not impersonated and the 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 it is important that you always check the return value of the call, and if it fails to raise an error, do not continue execution of the client request. Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Ddeml.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows NT 3.1 See Also Dynamic Data Exchange Management Library Overview , ImpersonateNamedPipeClient , RevertToSelf ==原始网址==http://msdn.microsoft.com/en-us/library/ms648756(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。