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.

126 lines
1.7 KiB

  1. //
  2. // NCP wrappers.
  3. //
  4. HRESULT
  5. NWApiGetBinderyHandle(
  6. NWCONN_HANDLE *phConnReturned,
  7. BSTR bstrBinderyName
  8. );
  9. HRESULT
  10. NWApiReleaseBinderyHandle(
  11. NWCONN_HANDLE hConn
  12. );
  13. HRESULT
  14. NWApiObjectEnum(
  15. NWCONN_HANDLE hConn,
  16. NWOBJ_TYPE dwObjType,
  17. LPWSTR *lppszObjectName,
  18. DWORD *pdwResumeObjectID
  19. );
  20. HRESULT
  21. NWApiValidateObject(
  22. NWCONN_HANDLE hConn,
  23. NWOBJ_TYPE dwObjType,
  24. LPWSTR lpszObjectName,
  25. DWORD *pdwResumeObjectID
  26. );
  27. HRESULT
  28. NWApiGetAnyBinderyHandle(
  29. NWCONN_HANDLE *phConn
  30. );
  31. //
  32. // Error code conversion function.
  33. //
  34. HRESULT
  35. HRESULT_FROM_NWCCODE(
  36. NWCCODE usRet
  37. );
  38. DWORD
  39. NWApiGetAnyBinderyName(
  40. LPWSTR szBinderyName
  41. );
  42. //
  43. // Win32 wrappers.
  44. //
  45. HRESULT
  46. NWApiOpenPrinter(
  47. LPWSTR lpszUncPrinterName,
  48. HANDLE *phPrinter,
  49. DWORD dwAccess
  50. );
  51. HRESULT
  52. NWApiClosePrinter(
  53. HANDLE hPrinter
  54. );
  55. HRESULT
  56. NWApiEnumJobs(
  57. HANDLE hPrinter,
  58. DWORD dwFirstJob,
  59. DWORD dwNoJobs,
  60. DWORD dwLevel,
  61. LPBYTE *lplpbJobs,
  62. DWORD *pcbBuf,
  63. LPDWORD lpdwReturned
  64. );
  65. /*
  66. HRESULT
  67. NWApiGetPrinter(
  68. HANDLE hPrinter,
  69. DWORD dwLevel,
  70. LPBYTE *lplpbPrinters
  71. );
  72. */
  73. HRESULT
  74. NWApiSetPrinter(
  75. HANDLE hPrinter,
  76. DWORD dwLevel,
  77. LPBYTE lpbPrinters,
  78. DWORD dwAccess
  79. );
  80. HRESULT
  81. NWApiGetJob(
  82. HANDLE hPrinter,
  83. DWORD dwJobId,
  84. DWORD dwLevel,
  85. LPBYTE *lplpbJobs
  86. );
  87. HRESULT
  88. NWApiSetJob(
  89. HANDLE hPrinter,
  90. DWORD dwJobId,
  91. DWORD dwLevel,
  92. LPBYTE lpbJobs,
  93. DWORD dwCommand
  94. );
  95. HRESULT
  96. NWApiCreateProperty(
  97. NWCONN_HANDLE hConn,
  98. LPWSTR lpszObjectName,
  99. NWOBJ_TYPE wObjType,
  100. LPSTR lpszPropertyName,
  101. NWFLAGS ucObjectFlags
  102. );