188.8.131.52.16 ApiGetResourceType (Opnum 15)
The server SHOULD accept an ApiGetResourceType 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 ApiGetResourceType( [in] HRES_RPC hResource, [out, string] LPWSTR* lpszResourceType );
lpszResourceType: The address of a pointer where the server MUST write, upon successful completion of this method, the address of a Unicode string buffer containing the name of the resource type of the specified resource. The server MUST allocate as much memory as is required to return the resource type. If the method fails, this parameter MUST be ignored.
Return Values: The method MUST return the following error codes for the specified conditions.
Return value/code Description
The data that is pointed to by the hResource parameter does not represent a valid HRES_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. The client SHOULD treat errors specified in section 184.108.40.206 as recoverable errors and initiate the reconnect procedure as specified in section 220.127.116.11.