다음을 통해 공유


3.1.5.1.4 SamrConnect (Opnum 0)

The SamrConnect method returns a handle to a server object.

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

ServerName: The first character of the NETBIOS name of the server; this parameter MAY<47> 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 upon 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

SamrConnect.ServerName

DesiredAccess

SamrConnect.DesiredAccess

InVersion

1

InRevisionInfo

 SAMPR_REVISION_INFO_V1.Revision = {0}

 SAMPR_REVISION_INFO_V1.SupportedFeatures = {10}

OutVersion

Output ignored

OutRevisionInfo

Output ignored

ServerHandle

SamrConnect.ServerHandle