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.

151 lines
2.5 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. BOOL bInSem
  94. );
  95. DWORD
  96. DoPublish(
  97. HANDLE hPrinter,
  98. PINIPRINTER pIniPrinter,
  99. DWORD dwAction,
  100. BOOL bSynchronous
  101. );
  102. HRESULT
  103. AddClusterAce(
  104. PSPOOL pSpool,
  105. IADs *pADsPrintQueue
  106. );
  107. BOOL
  108. DevCapMultiSz(
  109. HANDLE hPrinter,
  110. HANDLE hDevCapPrinter,
  111. PDEVCAP pDevCap,
  112. PSPLDEVCAP pSplDevCap,
  113. PWSTR pszPrinterName,
  114. WORD fwCapability,
  115. DWORD dwElementBytes,
  116. PWSTR pszRegValue
  117. );