22.214.171.124.36 ApiDeleteKey (Opnum 35)
(Protocol Version 2) In response to an ApiDeleteKey request from the client, for a successful operation, the server MUST delete the registry key that is specified by the lpSubKey parameter in the client request.
error_status_t ApiDeleteKey( [in] HKEY_RPC hKey, [in, string] const wchar_t * lpSubKey );
lpSubKey: A null-terminated Unicode string that specifies the name of the subkey to be deleted. The lpSubKey parameter MUST indicate a subkey that is a child of the key that is identified by hKey, does not begin with the "\" character, and is not NULL. The server MUST fail the request with ERROR_ACCESS_DENIED (0x00000005) if lpSubKey has one or more subkeys.
Return Values: The method MUST return the following error codes for the specified conditions.
The lpSubKey parameter has one or more subkeys.
The data that is pointed to by the hKey parameter does not represent a valid HKEY_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 126.96.36.199 as recoverable errors and initiate the reconnect procedure as specified in section 188.8.131.52.