C# Класс CSharp___DllImport.Phone.TaskHost

Показать файл Открыть проект

Открытые методы

Метод Описание
CeImpersonateCurrentProcess ( ) : bool

This function is used to ensure the correct return value for every case. It ensures that only someone with the impersonate privilege is able to do this. It also ensures that after a valid impersonate call, the access rights for the impersonating application are appropriate. | Call "CeRevertToSelf" after changed privileges

CeRevertToSelf ( ) : bool

A process should call the RevertToSelf function after finishing any impersonation begun by using the DdeImpersonateClient, ImpersonateDdeClientWindow, ImpersonateLoggedOnUser, ImpersonateNamedPipeClient, ImpersonateSelf, ImpersonateAnonymousToken or SetThreadToken function. An RPC server that used the RpcImpersonateClient function to impersonate a client must call the RpcRevertToSelf or RpcRevertToSelfEx to end the impersonation. If RevertToSelf fails, your application continues to run in the context of the client, which is not appropriate. You should shut down the process if RevertToSelf fails.

GetCurrenHostInfo ( ) : HostInformation

Приватные методы

Метод Описание
PreventDehydrating ( bool preventOn ) : void

Описание методов

CeImpersonateCurrentProcess() публичный статический Метод

This function is used to ensure the correct return value for every case. It ensures that only someone with the impersonate privilege is able to do this. It also ensures that after a valid impersonate call, the access rights for the impersonating application are appropriate. | Call "CeRevertToSelf" after changed privileges
public static CeImpersonateCurrentProcess ( ) : bool
Результат bool

CeRevertToSelf() публичный статический Метод

A process should call the RevertToSelf function after finishing any impersonation begun by using the DdeImpersonateClient, ImpersonateDdeClientWindow, ImpersonateLoggedOnUser, ImpersonateNamedPipeClient, ImpersonateSelf, ImpersonateAnonymousToken or SetThreadToken function. An RPC server that used the RpcImpersonateClient function to impersonate a client must call the RpcRevertToSelf or RpcRevertToSelfEx to end the impersonation. If RevertToSelf fails, your application continues to run in the context of the client, which is not appropriate. You should shut down the process if RevertToSelf fails.
public static CeRevertToSelf ( ) : bool
Результат bool

GetCurrenHostInfo() публичный статический Метод

public static GetCurrenHostInfo ( ) : HostInformation
Результат HostInformation