Source code of Windows XP (NT5)
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.

150 lines
2.4 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996.
  5. //
  6. // File: ds.hxx
  7. //
  8. // Contents: Print DS
  9. //
  10. //
  11. // History: 18-Sep-96 SWilson
  12. //
  13. //----------------------------------------------------------------------------
  14. typedef DWORD (*PDEVCAP)(HANDLE hPrinter,
  15. PWSTR pDeviceName,
  16. WORD wCapability,
  17. PVOID pOutput,
  18. PDEVMODE pdmSrc);
  19. typedef DWORD (*PSPLDEVCAP)( HANDLE hPrinter,
  20. PWSTR pDeviceName,
  21. WORD wCapability,
  22. PVOID pOutput,
  23. DWORD dwOutputSize,
  24. PDEVMODE pdmSrc);
  25. HRESULT
  26. DsPrinterPublish(
  27. HANDLE hPrinter
  28. );
  29. HRESULT
  30. DsPrinterUpdate(
  31. HANDLE hPrinter
  32. );
  33. HRESULT
  34. DsPrinterUpdateSpooler(
  35. HANDLE hPrinter,
  36. PPRINTER_INFO_7 pInfo,
  37. IADs *ppADs
  38. );
  39. HRESULT
  40. DsPrinterUnpublish(
  41. HANDLE hPrinter
  42. );
  43. HRESULT
  44. DsUnpublishAnyPrinter(
  45. PPRINTER_INFO_7 pInfo
  46. );
  47. BOOL
  48. CheckPublishPoint(
  49. LPWSTR pszPublishPoint
  50. );
  51. HRESULT
  52. PublishDsData(
  53. IADs *pADs,
  54. LPWSTR pValue,
  55. DWORD dwType,
  56. PBYTE pData
  57. );
  58. HRESULT
  59. CopyRegistry2Ds(
  60. HANDLE hPrinter,
  61. DWORD Flag,
  62. IADs *pADs
  63. );
  64. HRESULT
  65. ClearDsKey(
  66. HANDLE hPrinter,
  67. PWSTR pszKey
  68. );
  69. HRESULT
  70. PublishMandatoryProperties(
  71. HANDLE hPrinter,
  72. IADs *pADs
  73. );
  74. HRESULT
  75. PutDSSD(
  76. PINIPRINTER pIniPrinter,
  77. IADs *pADs
  78. );
  79. HRESULT
  80. CreateAce(
  81. IADsAccessControlList *pACL,
  82. BSTR pszTrustee,
  83. DWORD dwAccessMask
  84. );
  85. DWORD
  86. SpawnDsUpdate(
  87. DWORD dwDelay
  88. );
  89. HRESULT
  90. SetMandatoryProperties(
  91. HANDLE hPrinter,
  92. IADs *pADs
  93. );
  94. DWORD
  95. DoPublish(
  96. HANDLE hPrinter,
  97. PINIPRINTER pIniPrinter,
  98. DWORD dwAction,
  99. BOOL bSynchronous
  100. );
  101. HRESULT
  102. AddClusterAce(
  103. PSPOOL pSpool,
  104. IADs *pADsPrintQueue
  105. );
  106. BOOL
  107. DevCapMultiSz(
  108. HANDLE hPrinter,
  109. HANDLE hDevCapPrinter,
  110. PDEVCAP pDevCap,
  111. PSPLDEVCAP pSplDevCap,
  112. PWSTR pszPrinterName,
  113. WORD fwCapability,
  114. DWORD dwElementBytes,
  115. PWSTR pszRegValue
  116. );