Export (0) Print
Expand All
Expand Minimize

LsaConnectUntrusted function

The LsaConnectUntrusted function establishes an untrusted connection to the LSA server.

Syntax


NTSTATUS LsaConnectUntrusted(
  _Out_  PHANDLE LsaHandle
);

Parameters

LsaHandle [out]

Pointer to a handle that receives the connection handle, which must be provided in future authentication services.

Return value

If the function succeeds, the return value is STATUS_SUCCESS.

If the function fails, the return value is an NTSTATUS code. For more information, see LSA Policy Function Return Values.

The LsaNtStatusToWinError function converts an NTSTATUS code to a Windows error code.

Remarks

LsaConnectUntrusted returns a handle to an untrusted connection; it does not verify any information about the caller. The handle should be closed using the LsaDeregisterLogonProcess function.

If your application simply needs to query information from authentication packages, you can use the handle returned by this function in calls to LsaCallAuthenticationPackage and LsaLookupAuthenticationPackage.

Applications with the SeTcbPrivilege privilege may create a trusted connection by calling LsaRegisterLogonProcess.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Ntsecapi.h

Library

Secur32.lib

DLL

Secur32.dll

See also

LsaCallAuthenticationPackage
LsaDeregisterLogonProcess
LsaLookupAuthenticationPackage
LsaRegisterLogonProcess

 

 

Community Additions

ADD
Show:
© 2014 Microsoft