windows-nt/Source/XPSP1/NT/ds/adsi/winnt/printhlp.hxx

76 lines
1.3 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
printhlp.hxx
Abstract:
Helper functions for printer object
Author:
Ram Viswanathan (ramv) 11-18-95
Revision History:
--*/
BOOL
WinNTEnumPrinters(DWORD dwType,
LPTSTR lpszName,
DWORD dwLevel,
LPBYTE *lplpbPrinters,
LPDWORD lpdwReturned
);
BOOL
WinNTGetPrinter(HANDLE hPrinter,
DWORD dwLevel,
LPBYTE *lplpbPrinters
);
HRESULT
GetPrinterInfo(THIS_ LPPRINTER_INFO_2 *lplpPrinterInfo2,
LPWSTR pszPrinterName);
HRESULT
Set(LPPRINTER_INFO_2 lpPrinterInfo2,
LPTSTR pszPrinterName
);
BOOL
PrinterStatusWinNTToADs(DWORD dwWinNTStatus,
DWORD *pdwADsStatus);
BOOL
PrinterStatusADsToWinNT( DWORD dwADsStatus,
DWORD *pdwWinNTStatus);
HRESULT
WinNTDeletePrinter( POBJECTINFO pObjectInfo);
HRESULT
PrinterNameFromObjectInfo(POBJECTINFO pObjectInfo,
LPTSTR szUncPrinterName
);
#if (!defined(BUILD_FOR_NT40))
HRESULT
GetPrinterInfo7(
THIS_ LPPRINTER_INFO_7 *lplpPrinterInfo7,
LPWSTR pszPrinterName
);
HRESULT
SetPrinter7(
LPPRINTER_INFO_7 lpPrinterInfo7,
LPTSTR pszPrinterName
);
#endif