RpcErrorEndEnumeration function (rpcasync.h)

The RpcErrorEndEnumeration function ends enumeration of extended error information and frees all resources allocated by RPC for the enumeration.

Syntax

RPC_STATUS RpcErrorEndEnumeration(
  RPC_ERROR_ENUM_HANDLE *EnumHandle
);

Parameters

EnumHandle

Pointer to the enumeration handle.

Return value

Successful completion returns RPC_S_OK. The RpcErrorEndEnumeration function call cannot fail unless its parameters are invalid.

Note  For a list of valid error codes, see RPC Return Values.
 

Remarks

The RpcErrorEndEnumeration function zeros out the enumeration handle to prevent further usage. If the CopyStrings option was not used during a previous call to the RpcErrorGetNextRecord function, all non-empty ComputerName fields and AnsiString or UnicodeString values are invalid after this function is called.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header rpcasync.h (include Rpc.h)
Library Rpcrt4.lib
DLL Rpcrt4.dll

See also

Obtaining Extended RPC Error Information

RPC_ERROR_ENUM_HANDLE

RpcErrorGetNextRecord

RpcErrorStartEnumeration