Z
z_w_q
Unregistered / Unconfirmed
GUEST, unregistred user!
这个API怎样用?
1.BOOL OpenPrinter(
LPTSTR pPrinterName, // pointer to printer or server name
LPHANDLE phPrinter, // pointer to printer or server handle
LPPRINTER_DEFAULTS pDefault // pointer to printer defaults structure
);
2.BOOL GetPrinter(
HANDLE hPrinter,// handle to printer of interest
DWORD Level, // version of printer info data structure
LPBYTE pPrinter,// pointer to array of bytes that receives printer info. structure
DWORD cbBuf, // size, in bytes, of array of bytes
LPDWORD pcbNeeded // pointer to variable with count of bytes retrieved (or required)
);
其中的参数怎样写,给个例子最好.
1.BOOL OpenPrinter(
LPTSTR pPrinterName, // pointer to printer or server name
LPHANDLE phPrinter, // pointer to printer or server handle
LPPRINTER_DEFAULTS pDefault // pointer to printer defaults structure
);
2.BOOL GetPrinter(
HANDLE hPrinter,// handle to printer of interest
DWORD Level, // version of printer info data structure
LPBYTE pPrinter,// pointer to array of bytes that receives printer info. structure
DWORD cbBuf, // size, in bytes, of array of bytes
LPDWORD pcbNeeded // pointer to variable with count of bytes retrieved (or required)
);
其中的参数怎样写,给个例子最好.