184.108.40.206.32 ApiEnumKey (Opnum 31)
(Protocol Version 2) In response to an ApiEnumKey request from the client, for a successful operation, the server MUST return the subkey at the index that is specified by dwIndex for the cluster registry key that is specified by hkey.
error_status_t ApiEnumKey( [in] HKEY_RPC hKey, [in] DWORD dwIndex, [out, string] LPWSTR* KeyName, [out] FILETIME* lpftLastWriteTime );
dwIndex: The index of the key, as specified in [MS-RRP], whose name is to be retrieved.
KeyName: On successful completion of the method, the server MUST copy the name of the retrieved subkey (as specified in [MS-RRP]), including the terminating NULL character, to the buffer that is pointed to by the KeyName parameter. If the method fails, this parameter MUST be ignored.
lpftLastWriteTime: On successful completion of the method, the server MUST set lpftLastWriteTime to the time the enumerated subkey was last modified. If the method fails, this parameter MUST be ignored. The lpftLastWriteTime parameter is a FILETIME data structure as specified in [MS-DTYP] section 2.3.3.
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 hKey parameter does not represent a valid HKEY_RPC context handle.
Either the key specified by hKey has zero subkeys, or dwIndex is greater than or equal to the non-zero number of subkeys under the key specified by hKey.
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 220.127.116.11 as recoverable errors, and initiate the reconnect procedure as specified in section 18.104.22.168.