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.

70 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. #include "precomp.h"
  22. ////////////////////////////////////////////////////////
  23. // OEM Devmode Defines
  24. ////////////////////////////////////////////////////////
  25. ////////////////////////////////////////////////////////
  26. // OEM Devmode Type Definitions
  27. ////////////////////////////////////////////////////////
  28. //
  29. //Can add info to the private devmode bellow here.
  30. //Note :
  31. // This structure must be prefixed by OEM_DMEXTRAHEADER
  32. // Your plug-in must implement the IPrintOemUI::DevMode method
  33. //
  34. typedef struct tagOEMDEV
  35. {
  36. OEM_DMEXTRAHEADER dmOEMExtra;
  37. DWORD dwDriverData;
  38. DWORD dwAdvancedData;
  39. //
  40. //Private DevMode Members
  41. //
  42. } OEMDEV, *POEMDEV;
  43. typedef const OEMDEV *PCOEMDEV;
  44. /////////////////////////////////////////////////////////
  45. // ProtoTypes
  46. /////////////////////////////////////////////////////////
  47. HRESULT hrOEMDevMode(DWORD dwMode, POEMDMPARAM pOemDMParam);
  48. BOOL ConvertOEMDevmode(PCOEMDEV pOEMDevIn, POEMDEV pOEMDevOut, DWORD dwSize);
  49. BOOL MakeOEMDevmodeValid(POEMDEV pOEMDevmode);
  50. void Dump(PCOEMDEV pOEMDevIn);
  51. #endif