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.

50 lines
1.1 KiB

  1. #define GHI_TYPE 0x00000001
  2. #define GHI_BASIC 0x00000002
  3. #define GHI_NAME 0x00000004
  4. #define GHI_SPECIFIC 0x00000008
  5. #define GHI_VERBOSE 0x00000010
  6. #define GHI_NOLOOKUP 0x00000020
  7. #define GHI_SILENT 0x00000100
  8. #define TYPE_NONE 0
  9. #define TYPE_EVENT 1
  10. #define TYPE_SECTION 2
  11. #define TYPE_FILE 3
  12. #define TYPE_PORT 4
  13. #define TYPE_DIRECTORY 5
  14. #define TYPE_LINK 6
  15. #define TYPE_MUTANT 7
  16. #define TYPE_WINSTA 8
  17. #define TYPE_SEM 9
  18. #define TYPE_KEY 10
  19. #define TYPE_TOKEN 11
  20. #define TYPE_PROCESS 12
  21. #define TYPE_THREAD 13
  22. #define TYPE_DESKTOP 14
  23. #define TYPE_COMPLETE 15
  24. #define TYPE_CHANNEL 16
  25. #define TYPE_TIMER 17
  26. #define TYPE_JOB 18
  27. #define TYPE_WPORT 19
  28. #define TYPE_DEBUG_OBJECT 20
  29. #define TYPE_KEYED_EVENT 21
  30. #define TYPE_MAX 22
  31. extern LPWSTR pszTypeNames[TYPE_MAX];
  32. DWORD
  33. GetObjectTypeIndex(
  34. LPCSTR pszTypeName );
  35. DWORD
  36. GetHandleInfo(
  37. BOOL Direct,
  38. HANDLE hProcess,
  39. HANDLE hThere,
  40. DWORD Flags,
  41. DWORD * Type);