Windows NT 4.0 source code leak
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.

67 lines
1.9 KiB

4 years ago
  1. //---------------------------------------------------------------------------
  2. //
  3. // KrnlCmn.h
  4. //
  5. // Include file for common private krnl386/kernel32 APIs.
  6. //
  7. //---------------------------------------------------------------------------
  8. //
  9. // idProcess can be one of:
  10. // 0L -- for current process
  11. // MAKELONG(hTask, 0) -- for process with task handle hTask
  12. // idProcess -- for real PID
  13. //
  14. // iIndex is:
  15. // extra DWORD if >= 0
  16. // kernel thing if negative
  17. //
  18. #define GPD_PPI 0 // Going away
  19. #define GPD_FLAGS -4
  20. #define GPD_PARENT -8
  21. #define GPD_STARTF_FLAGS -12 // Can be changed
  22. #define GPD_STARTF_POS -16
  23. #define GPD_STARTF_SIZE -20
  24. #define GPD_STARTF_SHOWCMD -24
  25. #define GPD_STARTF_HOTKEY -28
  26. #define GPD_STARTF_SHELLDATA -32
  27. #define GPD_CURR_PROCESS_ID -36
  28. #define GPD_CURR_THREAD_ID -40
  29. #define GPD_EXP_WINVER -44
  30. #define GPD_HINST -48
  31. #define CW_USEDEFAULT_32 0x80000000
  32. #define CW_USEDEFAULT_16 0x00008000
  33. #ifdef WIN32
  34. #define INDEX LONG
  35. #define OURAPI APIENTRY
  36. #else
  37. #define INDEX int
  38. #define OURAPI API
  39. #define STARTF_USESHOWWINDOW 0x00000001
  40. #define STARTF_USESIZE 0x00000002
  41. #define STARTF_USEPOSITION 0x00000004
  42. #define STARTF_FORCEONFEEDBACK 0x00000040
  43. #define STARTF_FORCEOFFFEEDBACK 0x00000080
  44. #define STARTF_USEHOTKEY 0x00000200 // ;4.0
  45. #define STARTF_HASSHELLDATA 0x00000400 // ;Internal
  46. #endif
  47. DWORD OURAPI GetProcessDword(DWORD idProcess, INDEX iIndex);
  48. BOOL OURAPI SetProcessDword(DWORD idProcess, INDEX iIndex, DWORD dwValue);
  49. //
  50. // For GPD_FLAGS
  51. //
  52. #define GPF_DEBUG_PROCESS 0x00000001
  53. #define GPF_WIN16_PROCESS 0x00000008
  54. #define GPF_DOS_PROCESS 0x00000010
  55. #define GPF_CONSOLE_PROCESS 0x00000020
  56. #define GPF_SERVICE_PROCESS 0x00000100
  57. #undef OURAPI
  58. #undef INDEX