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.7 KiB

  1. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright 1998 - 2003 Microsoft Corporation. All Rights Reserved.
  7. //
  8. // FILE: Devmode.h
  9. //
  10. //
  11. // PURPOSE: Define common data types, and external function prototypes
  12. // for devmode functions.
  13. //
  14. // PLATFORMS:
  15. //
  16. // Windows 2000, Windows XP, Windows Server 2003
  17. //
  18. //
  19. #ifndef _DEVMODE_H
  20. #define _DEVMODE_H
  21. ////////////////////////////////////////////////////////
  22. // OEM Devmode Defines
  23. ////////////////////////////////////////////////////////
  24. ////////////////////////////////////////////////////////
  25. // OEM Devmode Type Definitions
  26. ////////////////////////////////////////////////////////
  27. //
  28. //Can add info to the private devmode bellow here.
  29. //Note :
  30. // This structure must be prefixed by OEM_DMEXTRAHEADER
  31. // Your plug-in must implement the IPrintOemUI::DevMode method
  32. //
  33. typedef struct tagOEMDEV
  34. {
  35. OEM_DMEXTRAHEADER dmOEMExtra;
  36. DWORD dwDriverData;
  37. DWORD dwAdvancedData;
  38. //
  39. //Private DevMode Members
  40. //
  41. } OEMDEV, *POEMDEV;
  42. typedef const OEMDEV *PCOEMDEV;
  43. /////////////////////////////////////////////////////////
  44. // ProtoTypes
  45. /////////////////////////////////////////////////////////
  46. HRESULT hrOEMDevMode(DWORD dwMode, POEMDMPARAM pOemDMParam);
  47. BOOL ConvertOEMDevmode(PCOEMDEV pOEMDevIn, POEMDEV pOEMDevOut);
  48. BOOL MakeOEMDevmodeValid(POEMDEV pOEMDevmode);
  49. void Dump(PCOEMDEV pOEMDevIn);
  50. #endif