Source code of Windows XP (NT5)
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.

70 lines
1.9 KiB

  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 GPD_HUTSTATE -52
  32. #define GPD_COMPATFLAGS -56
  33. #define CW_USEDEFAULT_32 0x80000000
  34. #define CW_USEDEFAULT_16 0x00008000
  35. #ifdef WIN32
  36. #define INDEX LONG
  37. #define OURAPI APIENTRY
  38. #else
  39. #define INDEX int
  40. #define OURAPI API
  41. #define STARTF_USESHOWWINDOW 0x00000001
  42. #define STARTF_USESIZE 0x00000002
  43. #define STARTF_USEPOSITION 0x00000004
  44. #define STARTF_FORCEONFEEDBACK 0x00000040
  45. #define STARTF_FORCEOFFFEEDBACK 0x00000080
  46. #define STARTF_USEHOTKEY 0x00000200 // ;4.0
  47. #define STARTF_HASSHELLDATA 0x00000400 // ;Internal
  48. #endif
  49. #ifndef WINNT
  50. DWORD OURAPI GetProcessDword(DWORD idProcess, INDEX iIndex);
  51. #endif
  52. //
  53. // For GPD_FLAGS
  54. //
  55. #define GPF_DEBUG_PROCESS 0x00000001
  56. #define GPF_WIN16_PROCESS 0x00000008
  57. #define GPF_DOS_PROCESS 0x00000010
  58. #define GPF_CONSOLE_PROCESS 0x00000020
  59. #define GPF_SERVICE_PROCESS 0x00000100
  60. #undef OURAPI
  61. #undef INDEX