Compartir a través de


3.1.5.1.3 SamrConnect2 (Opnum 57)

The SamrConnect2 method returns a handle to a server object.

 long SamrConnect2(
   [in, unique, string] PSAMPR_SERVER_NAME ServerName,
   [out] SAMPR_HANDLE* ServerHandle,
   [in] unsigned long DesiredAccess
 );

ServerName: The null-terminated NETBIOS name of the server; this parameter MAY<46> be ignored on receipt.

ServerHandle: An RPC context handle, as specified in section 2.2.7.2.

DesiredAccess: An ACCESS_MASK that indicates the access requested for ServerHandle on output. See section 2.2.1.3 for a listing of possible values.

The server MUST behave as with a call to SamrConnect5, with the following parameter values.

Parameter name

Parameter value

ServerName

SamrConnect2.ServerName

DesiredAccess

SamrConnect2.DesiredAccess

InVersion

1

InRevisionInfo

SAMPR_REVISION_INFO_V1.Revision = {1}

SAMPR_REVISION_INFO_V1.SupportedFeatures = {0}

OutVersion

Output ignored

OutRevisionInfo

Output ignored

ServerHandle

SamrConnect2.ServerHandle