Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
943 B

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <windows.h>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include "ntstatus.dbg"
  8. int
  9. __cdecl
  10. main(
  11. int argc,
  12. char **argv
  13. )
  14. {
  15. int count=0;
  16. for (count=0; ntstatusSymbolicNames[count].MessageId!=0xFFFFFFFF; count++)
  17. {
  18. DWORD dwError = RtlNtStatusToDosError(
  19. ntstatusSymbolicNames[count].MessageId);
  20. if (ntstatusSymbolicNames[count].MessageId==STATUS_MESSAGE_NOT_FOUND)
  21. {
  22. // This code maps properly, but to ERROR_MR_MID_NOT_FOUND. We
  23. // don't want to check this one...
  24. continue;
  25. }
  26. if (dwError==ERROR_MR_MID_NOT_FOUND)
  27. {
  28. printf(
  29. "0x%08x %s\n",
  30. ntstatusSymbolicNames[count].MessageId,
  31. ntstatusSymbolicNames[count].SymbolicName);
  32. }
  33. }
  34. return 0;
  35. }