| Previous | Next |
| RPC_S_DO_NOT_DISTURB | RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH |
RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED
The call exceeds the system-handle transport limit
RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED applies to MIDL parameters marked with system_handle. These handles represent kernel objects such as files, events, processes, sections, tokens, or sockets and are duplicated for a local RPC call. The runtime limits how many can be transported in one request.
Count handles after expanding every array and optional parameter, not merely the number of top-level arguments. Redesign bulk operations to batch handles or pass stable identifiers that the server opens under an explicit security policy. Closing unrelated process handles does not reduce the count encoded in this particular request.
What to inspect
- Log the exact handle count and type list before invoking the stub.
- Split large arrays into bounded batches with clear partial-failure semantics.
- Remember that system-handle transport is restricted to same-machine calls.
References
- Microsoft: MIDL system_handle attribute
- Microsoft: array correlation for handle arrays
- Microsoft: RPC system-handle statuses
Looking for a different code? Search another status or error code.