User manual - GUIライブラリマニュアルver.1.01(2012年3月29日)
9
3.2.1 CpOpenPrinter
指定したプリンタを識別するハンドルを取得します。
[C++]
BOOL CpOpenPrinter (
LPTSTR
lpszPrinter
,
LPTSTR
lpszPort
,
LPHANDLE
lphPrinter
)
[Visual Basic]
Declare Function CpOpenPrinter (
ByVal
lpszPrinter
As String, _
ByVal
lpszPort
As String, _
ByRef
lphPrinter
As Int32
) As Boolean
[C#]
Boolean CpOpenPrinter (
String
lpszPrinter
, _
String
lpszPort
, _
Int32
lphPrinter
)
解説
本関数は、指定したプリンタを識別するハンドルを取得します。
パラメータ
lpszPrinter
プリンタ名を指定します。
lpszPort
出力先ポート名を指定します。
lphPrinte
オープンしたプリンタのハンドルが返ります。
戻り値
関数が正常終了した場合は TRUE を、それ以外の場合は FALSE を返します。