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.

72 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1985-1999, Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. winppi.h
  6. Abstract:
  7. Procedure declarations, constant definitions and macros for the GDI
  8. component.
  9. --*/
  10. #ifndef _WINPPI_
  11. #define _WINPPI_
  12. typedef int (CALLBACK* EMFPLAYPROC)( HDC, INT, HANDLE );
  13. #define EMF_PP_COLOR_OPTIMIZATION 0x01
  14. HANDLE WINAPI GdiGetSpoolFileHandle(
  15. LPWSTR pwszPrinterName,
  16. LPDEVMODEW pDevmode,
  17. LPWSTR pwszDocName);
  18. BOOL WINAPI GdiDeleteSpoolFileHandle(
  19. HANDLE SpoolFileHandle);
  20. DWORD WINAPI GdiGetPageCount(
  21. HANDLE SpoolFileHandle);
  22. HDC WINAPI GdiGetDC(
  23. HANDLE SpoolFileHandle);
  24. HANDLE WINAPI GdiGetPageHandle(
  25. HANDLE SpoolFileHandle,
  26. DWORD Page,
  27. LPDWORD pdwPageType);
  28. BOOL WINAPI GdiStartDocEMF(
  29. HANDLE SpoolFileHandle,
  30. DOCINFOW *pDocInfo);
  31. BOOL WINAPI GdiStartPageEMF(
  32. HANDLE SpoolFileHandle);
  33. BOOL WINAPI GdiPlayPageEMF(
  34. HANDLE SpoolFileHandle,
  35. HANDLE hemf,
  36. RECT *prectDocument,
  37. RECT *prectBorder,
  38. RECT *prectClip);
  39. BOOL WINAPI GdiEndPageEMF(
  40. HANDLE SpoolFileHandle,
  41. DWORD dwOptimization);
  42. BOOL WINAPI GdiEndDocEMF(
  43. HANDLE SpoolFileHandle);
  44. BOOL WINAPI GdiGetDevmodeForPage(
  45. HANDLE SpoolFileHandle,
  46. DWORD dwPageNumber,
  47. PDEVMODEW *pCurrDM,
  48. PDEVMODEW *pLastDM);
  49. BOOL WINAPI GdiResetDCEMF(
  50. HANDLE SpoolFileHandle,
  51. PDEVMODEW pCurrDM);
  52. #endif /* _WINPPI_ */