3.1.4.2.148 ApiCloseGroupSet (Opnum 165)

The ApiCloseGroupSet method<140> instructs the server to free any context information that is created in a previous ApiOpenGroupSet (section 3.1.4.2.147) or ApiCreateGroupSet (section 3.1.4.2.146) method.

The server SHOULD accept an ApiCloseGroupSet request if its protocol server state is read-only and MUST accept the request for processing if it is in the read/write state, as specified in section 3.1.1.

 error_status_t 
 ApiCloseGroupSet {
   [ in, out ] HGROUPSET_RPC *GroupSet
 }

GroupSet: A pointer to an HGROUPSET_RPC context handle (section 2.2.1.11) that was obtained in a previous ApiOpenGroupSet or ApiCreateGroupSet method call. Upon success of this method, the server MUST set to NULL the context handle that this parameter points to. Upon failure, the client MUST ignore the context handle that this parameter points to.

Return Values: The method MUST return the following error codes for the specified conditions.

Return value/code

Description

0x00000000

ERROR_SUCCESS

Success

0x00000006

ERROR_INVALID_HANDLE

The data that is pointed to by the GroupSet parameter does not represent a valid HGROUPSET_RPC context handle.

For any other condition, this method MUST return a value that is not one of the values listed in the preceding table. The client MUST behave in one consistent, identical manner for all values that are not listed in the preceding table.