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.

68 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. common.hxx
  5. Abstract:
  6. Description of request data that is common to 2 or more devices.
  7. Author:
  8. Ramon Juan San Andres (ramonsa) 26-Jun-1991
  9. Revision History:
  10. --*/
  11. #include "string.hxx"
  12. //
  13. // Data for request type REQUEST_TYPE_CODEPAGE_PREPARE
  14. //
  15. typedef struct _REQUEST_DATA_CODEPAGE_PREPARE {
  16. PWSTRING CodepageInfo; // String describing the codepage
  17. } REQUEST_CODEPAGE_PREPARE, *PREQUEST_CODEPAGE_PREPARE;
  18. //
  19. // Data for request type REQUEST_TYPE_CODEPAGE_SELECT
  20. //
  21. typedef struct _REQUEST_DATA_CODEPAGE_SELECT {
  22. DWORD Codepag; // The codepage
  23. } REQUEST_CODEPAGE_SELECT, *PREQUEST_CODEPAGE_SELECT;
  24. //
  25. // Data for requests common to various devices
  26. //
  27. typedef union _COMMON_REQUEST_DATA {
  28. REQUEST_CODEPAGE_PREPARE Prepare;
  29. REQUEST_CODEPAGE_SELECT Select;
  30. } COMMON_REQUEST_DATA, *PCOMMON_REQUEST_DATA;
  31. //
  32. // Structure of a request common to 2 or more devices
  33. //
  34. typedef struct _COMMON_REQUEST {
  35. REQUEST_HEADER Header; // Request Header
  36. COMMON_REQUEST_DATA Data; // Data
  37. } COMMON_REQUEST, *PCOMMON_REQUEST;