| Previous | Next |
| ERROR_INVALID_UNWIND_TARGET | ERROR_PORT_MESSAGE_TOO_LONG |
ERROR_INVALID_PORT_ATTRIBUTES
The native port attributes are invalid
ERROR_INVALID_PORT_ATTRIBUTES reports that attributes passed to a native port creation or connection operation do not satisfy the kernel contract. This concerns low-level LPC or ALPC-style IPC and is usually seen in system software, brokers, or compatibility layers.
Possible causes
- Incorrect structure size, version, alignment, or reserved fields.
- Object attributes inconsistent with the requested port type.
- Unsupported flags on the running Windows build.
- Cross-bitness marshalling defects.
Diagnosis
Zero-initialize structures, log their declared lengths and flags, and compare them with the SDK or WDK definition used for the target OS. Check packing pragmas and language bindings carefully.
Handling
Do not retry unchanged attributes. Validate inputs before the native call and prefer documented higher-level IPC APIs unless native ports are required. Because native contracts can vary, pin behavior to tested Windows versions.
Security note
Malformed port attributes at a broker boundary can indicate untrusted input reaching privileged IPC setup. Validate before crossing privilege boundaries.
References
Looking for a different code? Search another status or error code.