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 を返します。