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.

90 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. init.h
  5. Abstract:
  6. Unidrv intialization related function header file
  7. Environment:
  8. Windows NT Unidrv driver
  9. Revision History:
  10. 10/21/96 -amandan-
  11. Created
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _INIT_H_
  16. #define _INIT_H_
  17. #define MICRON_TO_PIXEL(micron, dpi) MulDiv(micron, dpi, 25400)
  18. #define MICRON_TO_MASTER(size_in_micron, MU) MulDiv(size_in_micron, MU, 25400)
  19. #define MASTER_TO_MICRON(size_in_master, MU) MulDiv(size_in_master, 25400, MU)
  20. BOOL
  21. BInitPDEV (
  22. PDEV *pPDev,
  23. RECTL *prcFormImageArea
  24. );
  25. BOOL
  26. BInitGdiInfo(
  27. PDEV *pPDev,
  28. ULONG *pGdiInfoBuffer,
  29. ULONG ulBufferSize
  30. );
  31. BOOL
  32. BInitDevInfo(
  33. PDEV *pPDev,
  34. DEVINFO *pDevInfoBuffer,
  35. ULONG ulBufferSize
  36. );
  37. BOOL
  38. BMergeAndValidateDevmode(
  39. PDEV *pPDev,
  40. PDEVMODE pdmInput,
  41. PRECTL prcFormImageArea
  42. );
  43. BOOL
  44. BInitPalDevInfo(
  45. PDEV *pPDev,
  46. DEVINFO *pdevinfo,
  47. GDIINFO *pGDIInfo
  48. );
  49. VOID
  50. VLoadPal(
  51. PDEV *pPDev
  52. );
  53. VOID VInitPal8BPPMaskMode(
  54. PDEV *pPDev,
  55. GDIINFO *pGDIInfo
  56. );
  57. BOOL
  58. BReloadBinaryData(
  59. PDEV *pPDev
  60. );
  61. VOID
  62. VUnloadFreeBinaryData(
  63. PDEV *pPDev
  64. );
  65. #endif // !_INIT_H_