Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function opens a specified printer port and returns a handle to the printer.
HANDLE WINAPI PrinterOpen(PWSTR sPort);
Parameters
- sPort
[in] Pointer to a string that exactly matches any one of the strings listed in the HKEY_LOCAL_MACHINE\Printers\Ports registry key.
Return Values
A handle to the printer indicates success.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Prnport.h.
Send Feedback on this topic to the authors