JOB_INFO_1 構造体 |
| 宣言文 |
 |
Type JOB_INFO_1
JobId As Long 'ジョブID
pPrinterName As String 'プリンタ名
pMachineName As String 'マシン名
pUserName As String 'ユーザー名
pDocument As String '印刷ジョブ名
pDatatype As String 'データのタイプ
pStatus As String '印刷ジョブのステータス
Status As Long 'ジョブのステータスを示す定数の組み合わせ
Priority As Long 'ジョブのプライオリティを示す定数
'あるいは、1〜99の範囲の数値
Position As Long '印刷キュー内のジョブの位置
TotalPages As Long 'ページ数
PagesPrinted As Long '印刷済みページ数
Submitted As SYSTEMTIME 'ドキュメントガスプールされた日時
'(UTCなので、FileTimeToLocalFileTime()関数を使って変換する)
End Type
|
 |
Structure JOB_INFO_1
JobId As Integer
pPrinterName As String
pMachineName As String
pUserName As String
pDocument As String
pDataStructure As String
pStatus As String
Status As Integer
Priority As Integer
Position As Integer
TotalPages As Integer
PagesPrinted As Integer
Submitted As SYSTEMTIME
End Structure
|
| Statusの定数 |
const JOB_STATUS_DELETING = &H4 '削除中
const JOB_STATUS_ERROR = &H2 'エラー
const JOB_STATUS_OFFLINE = &H20 'オフライン
const JOB_STATUS_PAPER_OUT = &H40 '用紙切れ
const JOB_STATUS_PAUSED = &H1 '中断
const JOB_STATUS_PRINTED = &H80 '印刷済み
const JOB_STATUS_PRINTING = &H10 '印刷中
const JOB_STATUS_SPOOLING = &H8 'スプール中
|
| Priorityの定数 |
const MIN_PRIORITY = 1 '最低
const MAX_PRIORITY = 99 '最大
const DEF_PRIORITY = 1 'デフォルト
|