Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 2.86 KB

nf-bidispl-ibidispl-binddevice.md

File metadata and controls

79 lines (63 loc) · 2.86 KB
UID title description tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:bidispl.IBidiSpl.BindDevice
IBidiSpl::BindDevice (bidispl.h)
The BindDevice method binds a printer to a bidi request. This method is similar to the OpenPrinter function.
print
03/03/2023
IBidiSpl::BindDevice
BIDI_ACCESS_ADMINISTRATOR, BIDI_ACCESS_USER, BindDevice, BindDevice method [Print Devices], BindDevice method [Print Devices],IBidiSpl interface, IBidiSpl interface [Print Devices],BindDevice method, IBidiSpl.BindDevice, IBidiSpl::BindDevice, _win32_IBidiSpl_BindDevice, bidispl/IBidiSpl::BindDevice, gdi.ibidispl_ibidispl__binddevice, print.ibidispl_ibidispl__binddevice
bidispl.h
Desktop
Windows XP
Windows Server 2003
Bidispl.dll
Windows
IBidiSpl::BindDevice
bidispl/IBidiSpl::BindDevice
APIRef
kbSyntax
COM
bidispl.dll
IBidiSpl::BindDevice

-description

The BindDevice method binds a printer to a bidi request. This method is similar to the OpenPrinter function.

-parameters

-param pszDeviceName [in]

A pointer to a null-terminated string that contains name of the printer or print server. If NULL, it indicates the local printer server.

-param dwAccess [in]

The access privileges for the printer. This parameter can be one of the following values.

Value Description
BIDI_ACCESS_ADMINISTRATOR Permits users to perform all administrative tasks and basic printing operations except for SYNCHRONIZE. This is the same as PRINTER_ALL_ACCESS in OpenPrinter.
BIDI_ACCESS_USER Permits users to perform basic printing operations. This is the same as PRINTER_ACCESS_USE in OpenPrinter.

-returns

The method returns one of the following values. For more information about COM error codes, see COM Error Codes.

Value Description
S_OK The operation was successfully carried out.
E_HANDLE The interface handle was invalid.
None of the above The HRESULT contains an error code corresponding to the last error.

-see-also

Bidirectional Communication Interfaces

Bidirectional Communication Schema

IBidiSpl

OpenPrinter