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.

86 lines
2.5 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 1997 - 2003 Microsoft Corporation. All Rights Reserved.
  7. //
  8. // FILE: OEMUI.H
  9. //
  10. //
  11. // PURPOSE: Define common data types, and external function prototypes
  12. // for OEMUI Test Module.
  13. //
  14. // PLATFORMS:
  15. // Windows 2000, Windows XP, Windows Server 2003
  16. //
  17. //
  18. #ifndef _OEMUI_H
  19. #define _OEMUI_H
  20. #include <PRCOMOEM.H>
  21. #include "OEM.H"
  22. #include "DEVMODE.H"
  23. #include "globals.h"
  24. ////////////////////////////////////////////////////////
  25. // OEM UI Defines
  26. ////////////////////////////////////////////////////////
  27. // OEM Signature and version.
  28. #define PROP_TITLE L"OEM UI Page"
  29. #define DLLTEXT(s) __TEXT("UI: ") __TEXT(s)
  30. // OEM UI Misc defines.
  31. #define ERRORTEXT(s) __TEXT("ERROR ") DLLTEXT(s)
  32. // Printer registry keys where OEM data is stored.
  33. #define OEMUI_VALUE TEXT("OEMUI_VALUE")
  34. #define OEMUI_DEVICE_VALUE TEXT("OEMUI_DEVICE_VALUE")
  35. //
  36. //KeyWordNames for OPTITEMS (These are nonlocalised keywords assocaited with driver features. in the OPTITEMS)
  37. //
  38. const char DUPLEXUNIT[] = "DuplexUnit";
  39. const char ENVFEEDER[] = "EnvFeeder";
  40. const char PRINTERHDISK[] = "PrinterHardDisk";
  41. //
  42. //This structure is used to link the common pages and the OEM plugin page.
  43. //
  44. typedef struct _OEMSHEETDATA {
  45. //
  46. //Any other OEM Data you may want to store.
  47. //
  48. //
  49. //Hold Pointers you may need.
  50. //
  51. HANDLE hComPropSheet; //Handle to the Prop Sheet Parent Page Used when calling ComPropSheet
  52. HANDLE hmyPlugin; //Handle to the OEM Plugin page. Page Used when calling ComPropSheet
  53. PFNCOMPROPSHEET pfnComPropSheet; //Is the Pointer to ComPropSheet This is needed when APPLY is clicked (CPSFUNC_SET_RESULT)
  54. POEMCUIPPARAM pOEMCUIParam; //Holds links to the DEVMODE and OPTITEMS needed.
  55. IPrintOemDriverUI* pOEMHelp;
  56. } OEMSHEETDATA, *POEMSHEETDATA;
  57. ////////////////////////////////////////////////////////
  58. // Prototypes
  59. ////////////////////////////////////////////////////////
  60. HRESULT hrOEMPropertyPage(DWORD dwMode, POEMCUIPPARAM pOEMUIParam);
  61. HRESULT hrOEMDocumentPropertySheets(PPROPSHEETUI_INFO pPSUIInfo, LPARAM lParam, IPrintOemDriverUI* pOEMHelp);
  62. HRESULT hrOEMDevicePropertySheets(PPROPSHEETUI_INFO pPSUIInfo, LPARAM lParam, POEMSHEETDATA pOemSheetData);
  63. #endif