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.

133 lines
3.4 KiB

  1. /***************************** Module Header ******************************\
  2. * Module Name: csrmsg.h
  3. *
  4. * Copyright (c) 1985 - 1999, Microsoft Corporation
  5. *
  6. * User CSR messages
  7. *
  8. * 02-27-95 JimA Created.
  9. \**************************************************************************/
  10. #ifndef _CSRMSG_H_
  11. #define _CSRMSG_H_
  12. #include <ntcsrmsg.h>
  13. typedef enum _USER_API_NUMBER {
  14. UserpExitWindowsEx = USERSRV_FIRST_API_NUMBER,
  15. UserpEndTask,
  16. UserpLogon,
  17. UserpRegisterServicesProcess,
  18. UserpActivateDebugger,
  19. UserpGetThreadConsoleDesktop,
  20. UserpDeviceEvent,
  21. UserpRegisterLogonProcess,
  22. UserpCreateSystemThreads,
  23. UserpRecordShutdownReason,
  24. #if DBG
  25. UserpWin32HeapFail,
  26. UserpWin32HeapStat,
  27. #endif
  28. UserpMaxApiNumber
  29. } USER_API_NUMBER, *PUSER_API_NUMBER;
  30. typedef struct _EXITWINDOWSEXMSG {
  31. DWORD dwLastError;
  32. UINT uFlags;
  33. BOOL fSuccess;
  34. } EXITWINDOWSEXMSG, *PEXITWINDOWSEXMSG;
  35. typedef struct _ENDTASKMSG {
  36. DWORD dwLastError;
  37. HWND hwnd;
  38. BOOL fForce;
  39. BOOL fSuccess;
  40. } ENDTASKMSG, *PENDTASKMSG;
  41. typedef struct _LOGONMSG {
  42. BOOL fLogon;
  43. } LOGONMSG, *PLOGONMSG;
  44. typedef struct _ADDFONTMSG {
  45. PWCHAR pwchName;
  46. DWORD dwFlags;
  47. } ADDFONTMSG, *PADDFONTMSG;
  48. typedef struct _REGISTERSERVICESPROCESSMSG {
  49. DWORD dwLastError;
  50. DWORD dwProcessId;
  51. BOOL fSuccess;
  52. } REGISTERSERVICESPROCESSMSG, *PREGISTERSERVICESPROCESSMSG;
  53. typedef struct _ACTIVATEDEBUGGERMSG {
  54. CLIENT_ID ClientId;
  55. } ACTIVATEDEBUGGERMSG, *PACTIVATEDEBUGGERMSG;
  56. typedef struct _GETTHREADCONSOLEDESKTOPMSG {
  57. DWORD dwThreadId;
  58. HDESK hdeskConsole;
  59. } GETTHREADCONSOLEDESKTOPMSG, *PGETTHREADCONSOLEDESKTOPMSG;
  60. #if DBG
  61. typedef struct _WIN32HEAPFAILMSG {
  62. DWORD dwFlags;
  63. BOOL bFail;
  64. } WIN32HEAPFAILMSG, *PWIN32HEAPFAILMSG;
  65. typedef struct _WIN32HEAPSTATMSG {
  66. PVOID phs;
  67. DWORD dwLen;
  68. DWORD dwMaxTag;
  69. } WIN32HEAPSTATMSG, *PWIN32HEAPSTATMSG;
  70. #endif
  71. typedef struct _DEVICEEVENTMSG {
  72. HWND hWnd;
  73. WPARAM wParam;
  74. LPARAM lParam;
  75. DWORD dwFlags;
  76. ULONG_PTR dwResult;
  77. } DEVICEEVENTMSG, *PDEVICEEVENTMSG;
  78. typedef struct _CREATESYSTEMTHREADSMSG {
  79. BOOL bRemoteThread;
  80. } CREATESYSTEMTHREADSMSG, *PCREATESYSTEMTHREADSMSG;
  81. typedef struct _RECORDSHUTDOWNREASONMSG {
  82. struct _SHUTDOWN_REASON *psr;
  83. DWORD dwEventID;
  84. DWORD dwEventType;
  85. BOOL fShutdownCancelled;
  86. DWORD dwProcessNameLen;
  87. LPWSTR pwchProcessName;
  88. DWORD dwShutdownTypeLen;
  89. LPWSTR pwchShutdownType;
  90. DWORD dwCommentLen;
  91. LPWSTR pwchComment;
  92. } RECORDSHUTDOWNREASONMSG, *PRECORDSHUTDOWNREASONMSG;
  93. typedef struct _USER_API_MSG {
  94. PORT_MESSAGE h;
  95. PCSR_CAPTURE_HEADER CaptureBuffer;
  96. CSR_API_NUMBER ApiNumber;
  97. ULONG ReturnValue;
  98. ULONG Reserved;
  99. union {
  100. EXITWINDOWSEXMSG ExitWindowsEx;
  101. ENDTASKMSG EndTask;
  102. LOGONMSG Logon;
  103. REGISTERSERVICESPROCESSMSG RegisterServicesProcess;
  104. ACTIVATEDEBUGGERMSG ActivateDebugger;
  105. GETTHREADCONSOLEDESKTOPMSG GetThreadConsoleDesktop;
  106. #if DBG
  107. WIN32HEAPFAILMSG Win32HeapFail;
  108. WIN32HEAPSTATMSG Win32HeapStat;
  109. #endif
  110. DEVICEEVENTMSG DeviceEvent;
  111. CREATESYSTEMTHREADSMSG CreateSystemThreads;
  112. RECORDSHUTDOWNREASONMSG RecordShutdownReason;
  113. DWORD IdLogon;
  114. } u;
  115. } USER_API_MSG, *PUSER_API_MSG;
  116. #endif