3.2.4.1.13 RdcClose (Opnum 12)
The RdcClose method informs the server that the server context information can be released.
-
DWORD RdcClose( [in, out] PFRS_SERVER_CONTEXT* serverContext );
serverContext: The context handle that represents the requested file replication operation. The client MUST specify a server context that was retrieved by a previously successful call to the InitializeFileTransferAsync method.
Return Values: This method MUST return 0 on success or a nonzero error code on failure. For protocol purposes all nonzero values MUST be treated as equivalent failures unless otherwise specified.
-
Return value/code
Description
0x00000000
ERROR_SUCCESS
The method completed successfully.
0x00000057
ERROR_INVALID_PARAMETER
The context is invalid.
Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].
Validating the close context request: The server MUST validate the request by performing the following checks.
If the specified server context was not retrieved by a previously successful call to the InitializeFileTransferAsync method, then the server MUST fail the call with the ERROR_INVALID_PARAMETER failure value.
If the server has already closed the server context, the server MUST fail the call with an implementation-defined failure value.
Actions Triggered: The server closes and cleans up all resources associated with the server context. The serverContext MUST not be used any more by the client after a successful call to the RdcClose method.