GetPrintProcessorDirectory
機能
指定のサーバーのプリンタプロセッサのパスを取得する
Declare Function GetPrintProcessorDirectory Lib "winspool.drv" Alias "GetPrintProcessorDirectoryA" _
(ByVal pName As String, ByVal pEnvironment As String, ByVal Level As Long, _
ByVal pPrintProcessorInfo As String, ByVal cdBuf As Long, pcbNeeded As Long) As Long
Declare Function GetPrintProcessorDirectory Lib "winspool.drv" Alias "GetPrintProcessorDirectoryA" _
(ByVal pName As String, ByVal pEnvironment As String, ByVal Level As Integer, _
ByVal pPrintProcessorInfo As String, ByVal cdBuf As Integer, pcbNeeded As Integer) As Integer
引数
pName
サーバー名(vbNullStringのとき、ローカルモニターを列挙する)
pEnvironment
環境文字列
Level
構造体のレベル(1を指定)
pPrintProcessorInfo
(戻り値)ディレクトリ名を受け取るバイト配列
cbBuf
同、バイト数
pcbNeeded
(戻り値)コピーしたバイト数
pcReturned
(戻り値)pPrintProcessorInfoにコピーしたバイトの数
戻り値
正常終了のとき 0以外
エラーのとき 0
備考
pPrintProcessorInfoのバイト数をあらかじめ調べる場合、cbBufに0を設定すると
pcbNeededに必要なバイト数が戻る。