Undocumented functions of NTDLL

2OO1, 4 February


NtSetDefaultHardErrorPort
NtSetDefaultHardErrorPort

NTSYSAPI 
NTSTATUS
NTAPI

NtSetDefaultHardErrorPort(
IN HANDLE PortHandle );



NtSetDefaultHardErrorPort is typically called only once. After call, kernel set BOOLEAN flag named _ExReadyForErrors to TRUE, and all other tries to change default port are broken with STATUS_UNSUCCESSFUL error code.





Listener of default HardError port receive HARDERROR_MSG LPC messages when any process call NtRaiseHardError function.


Documented by:
Tomasz Nowak



Requirements:
Library: ntdll.lib
Privileges: SE_TCB_PRIVILEGE


See also:
HARDERROR_MSG
NtRaiseHardError