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.

72 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. scwow.h
  5. Abstract:
  6. Structure definitions for 32/64-bit interop
  7. Author:
  8. Jonathan Schwartz (jschwart) 18-Sep-2000
  9. Revision History:
  10. --*/
  11. #ifndef SCWOW_INCLUDED
  12. #define SCWOW_INCLUDED
  13. //
  14. // Internal structures for the enum functions for 64/32-bit interop
  15. // since the ENUM_SERVICE_STATUS* structures contain two pointers
  16. // and we don't want to pass back structures of an indeterminate
  17. // size. Since the pointer fields are used as offsets only across
  18. // the wire, use these structures to force those fields to be a
  19. // known length (32 bits for compatibility with older clients).
  20. //
  21. typedef struct _ENUM_SERVICE_STATUS_WOW64
  22. {
  23. DWORD dwServiceNameOffset;
  24. DWORD dwDisplayNameOffset;
  25. SERVICE_STATUS ServiceStatus;
  26. }
  27. ENUM_SERVICE_STATUS_WOW64, *LPENUM_SERVICE_STATUS_WOW64;
  28. typedef struct _ENUM_SERVICE_STATUS_PROCESS_WOW64
  29. {
  30. DWORD dwServiceNameOffset;
  31. DWORD dwDisplayNameOffset;
  32. SERVICE_STATUS_PROCESS ServiceStatusProcess;
  33. }
  34. ENUM_SERVICE_STATUS_PROCESS_WOW64, *LPENUM_SERVICE_STATUS_PROCESS_WOW64;
  35. //
  36. // Internal structures for QueryServiceConfig2 for 64/32-bit interop
  37. //
  38. typedef struct _SERVICE_DESCRIPTION_WOW64
  39. {
  40. DWORD dwDescriptionOffset;
  41. }
  42. SERVICE_DESCRIPTION_WOW64, *LPSERVICE_DESCRIPTION_WOW64;
  43. typedef struct _SERVICE_FAILURE_ACTIONS_WOW64
  44. {
  45. DWORD dwResetPeriod;
  46. DWORD dwRebootMsgOffset;
  47. DWORD dwCommandOffset;
  48. DWORD cActions;
  49. DWORD dwsaActionsOffset;
  50. }
  51. SERVICE_FAILURE_ACTIONS_WOW64, *LPSERVICE_FAILURE_ACTIONS_WOW64;
  52. #endif // #ifndef SCWOW_INCLUDED