Class: WMI::Win32_PrinterDriver
Overview
Win32_PrinterDriver クラスにより、Win32_Printe のドライバが表されます。
Instance Attribute Summary (collapse)
-
- (string) Caption
readonly
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。.
-
- (string) ConfigFile
readonly
ConfigFile プロパティには、このプリンタ ドライバの構成ファイルが含まれます、(例: pscrptui.dll)。.
-
- (string) CreationClassName
readonly
CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。.
-
- (string) DataFile
readonly
DataFile プロパティには、このプリンタ ドライバのデータ ファイルが含まれます、(例: qms810.ppd)。.
-
- (string) DefaultDataType
readonly
DefaultDataType プロパティにより、このプリンタ ドライバの既定のデータの種類が示されます、 (例: EMF)。.
-
- (string) DependentFiles
readonly
DependentFiles プロパティにはこのプリンタ ドライバの依存ファイルの一覧が含まれます。.
-
- (string) Description
readonly
Description プロパティでオブジェクトの説明が提供されます。.
-
- (string) DriverPath
readonly
DriverPath プロパティに は、このプリンタ ドライバのパスが含まれます、(例: C:\drivers\pscript.dll)。.
-
- (string) FilePath
FilePath プロパティには、使用されている INF ファイルへのパスが含まれます、(例: c:\temp\driver)。.
-
- (string) HelpFile
readonly
HelpFile プロパティには、このプリンタ ドライバのヘルプ ファイルが含まれます、(例: pscrptui.hlp)。.
-
- (string) InfName
InfName プロパティには、使用されている INF ファイル名が含まれます。.
-
- (datetime) InstallDate
readonly
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。.
-
- (string) MonitorName
readonly
MonitorName プロパティには、このプリンタ ドライバのモニタ名が含まれます、 (例: PJL モニタ)。.
-
- (string) Name
readonly
Name プロパティにより、このプリンタのドライバ名が示されます。.
-
- (string) OEMUrl
readonly
OEMUrl プロパティにより、プリンタの製造元の Web サイトへの World Wide Web リンクが提供されます。.
-
- (boolean) Started
readonly
Started はサービスが開始したか (TRUE)、または停止したか (FALSE) を示すブール値です。.
-
- (string) StartMode
readonly
StartMode は、サービスがオペレーティング システムによって自動的に開始するかどうか、または要求に応じて開始するだけなのかどうかを示す文字列の値です.
-
- (string) Status
readonly
Status プロパティはオブジェクトの現在の状態を示す文字列です。.
-
- (string) SupportedPlatform
SupportedPlatform プロパティにより、ドライバが意図しているオペレーティング環境が示されます。.
-
- (string) SystemCreationClassName
readonly
スコーピング システムの CreationClassName です。.
-
- (string) SystemName
readonly
このサービスのホストになるシステム名です.
-
- (uint16) Version
Version プロパティにより、ドライバが意図しているオペレーティング システム バージョンが示されます。.
Instance Method Summary (collapse)
-
- (uint32) AddPrinterDriver(DriverInfo)
AddPrinterDriver メソッドにより、プリンタ ドライバがインストールされます。 メソッドは次の値を返すことができます: 0 - 成功です。.
-
- (uint32) StartService
StartService 方法によって、開始された状態のサービスが置かれます。 サービスが正常に開始すると、整数 0 が返され、要求がサポートされない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。.
-
- (uint32) StopService
StopService 方法によって、停止された状態のサービスが置かれます。 サービスが正常に停止すると、整数 0 が返され、要求がサポートされていない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。.
Methods inherited from Base
#AddRef, #AssociatorsAsync_, #Associators_, #Clone_, #CompareTo_, #DeleteAsync_, #Delete_, #Derivation_, #ExecMethodAsync_, #ExecMethod_, #GetIDsOfNames, #GetObjectText_, #GetText_, #GetTypeInfo, #GetTypeInfoCount, #InstancesAsync_, #Instances_, #Invoke, #Methods_, #Path_, #Properties_, #PutAsync_, #Put_, #Qualifiers_, #QueryInterface, #ReferencesAsync_, #References_, #Refresh_, #Release, #Security_, #SetFromText_, #SpawnDerivedClass_, #SpawnInstance_, #SubclassesAsync_, #Subclasses_, #SystemProperties_
Instance Attribute Details
- (string) Caption (readonly)
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。
42 43 44 |
# File 'lib/Win32_PrinterDriver.rb', line 42 def Caption @Caption end |
- (string) ConfigFile (readonly)
ConfigFile プロパティには、このプリンタ ドライバの構成ファイルが含まれます、(例: pscrptui.dll)。
47 48 49 |
# File 'lib/Win32_PrinterDriver.rb', line 47 def ConfigFile @ConfigFile end |
- (string) CreationClassName (readonly)
CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。
53 54 55 |
# File 'lib/Win32_PrinterDriver.rb', line 53 def CreationClassName @CreationClassName end |
- (string) DataFile (readonly)
DataFile プロパティには、このプリンタ ドライバのデータ ファイルが含まれます、(例: qms810.ppd)。
58 59 60 |
# File 'lib/Win32_PrinterDriver.rb', line 58 def DataFile @DataFile end |
- (string) DefaultDataType (readonly)
DefaultDataType プロパティにより、このプリンタ ドライバの既定のデータの種類が示されます、 (例: EMF)。
63 64 65 |
# File 'lib/Win32_PrinterDriver.rb', line 63 def DefaultDataType @DefaultDataType end |
- (string) DependentFiles (readonly)
DependentFiles プロパティにはこのプリンタ ドライバの依存ファイルの一覧が含まれます。
68 69 70 |
# File 'lib/Win32_PrinterDriver.rb', line 68 def DependentFiles @DependentFiles end |
- (string) Description (readonly)
Description プロパティでオブジェクトの説明が提供されます。
74 75 76 |
# File 'lib/Win32_PrinterDriver.rb', line 74 def Description @Description end |
- (string) DriverPath (readonly)
DriverPath プロパティに は、このプリンタ ドライバのパスが含まれます、(例: C:\drivers\pscript.dll)。
79 80 81 |
# File 'lib/Win32_PrinterDriver.rb', line 79 def DriverPath @DriverPath end |
- (string) FilePath
FilePath プロパティには、使用されている INF ファイルへのパスが含まれます、(例: c:\temp\driver)。
84 85 86 |
# File 'lib/Win32_PrinterDriver.rb', line 84 def FilePath @FilePath end |
- (string) HelpFile (readonly)
HelpFile プロパティには、このプリンタ ドライバのヘルプ ファイルが含まれます、(例: pscrptui.hlp)。
89 90 91 |
# File 'lib/Win32_PrinterDriver.rb', line 89 def HelpFile @HelpFile end |
- (string) InfName
InfName プロパティには、使用されている INF ファイル名が含まれます。
96 97 98 |
# File 'lib/Win32_PrinterDriver.rb', line 96 def InfName @InfName end |
- (datetime) InstallDate (readonly)
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。
102 103 104 |
# File 'lib/Win32_PrinterDriver.rb', line 102 def InstallDate @InstallDate end |
- (string) MonitorName (readonly)
MonitorName プロパティには、このプリンタ ドライバのモニタ名が含まれます、 (例: PJL モニタ)。
107 108 109 |
# File 'lib/Win32_PrinterDriver.rb', line 107 def MonitorName @MonitorName end |
- (string) Name (readonly)
Name プロパティにより、このプリンタのドライバ名が示されます。
113 114 115 |
# File 'lib/Win32_PrinterDriver.rb', line 113 def Name @Name end |
- (string) OEMUrl (readonly)
OEMUrl プロパティにより、プリンタの製造元の Web サイトへの World Wide Web リンクが提供されます。
119 120 121 |
# File 'lib/Win32_PrinterDriver.rb', line 119 def OEMUrl @OEMUrl end |
- (boolean) Started (readonly)
Started はサービスが開始したか (TRUE)、または停止したか (FALSE) を示すブール値です。
124 125 126 |
# File 'lib/Win32_PrinterDriver.rb', line 124 def Started @Started end |
- (string) StartMode (readonly)
StartMode は、サービスがオペレーティング システムによって自動的に開始するかどうか、または要求に応じて開始するだけなのかどうかを示す文字列の値です
129 130 131 |
# File 'lib/Win32_PrinterDriver.rb', line 129 def StartMode @StartMode end |
- (string) Status (readonly)
Status プロパティはオブジェクトの現在の状態を示す文字列です。
142 143 144 |
# File 'lib/Win32_PrinterDriver.rb', line 142 def Status @Status end |
- (string) SupportedPlatform
SupportedPlatform プロパティにより、ドライバが意図しているオペレーティング環境が示されます。
148 149 150 |
# File 'lib/Win32_PrinterDriver.rb', line 148 def SupportedPlatform @SupportedPlatform end |
- (string) SystemCreationClassName (readonly)
スコーピング システムの CreationClassName です。
154 155 156 |
# File 'lib/Win32_PrinterDriver.rb', line 154 def SystemCreationClassName @SystemCreationClassName end |
- (string) SystemName (readonly)
このサービスのホストになるシステム名です
159 160 161 |
# File 'lib/Win32_PrinterDriver.rb', line 159 def SystemName @SystemName end |
- (uint16) Version
Version プロパティにより、ドライバが意図しているオペレーティング システム バージョンが示されます。
164 165 166 |
# File 'lib/Win32_PrinterDriver.rb', line 164 def Version @Version end |
Instance Method Details
- (uint32) AddPrinterDriver(DriverInfo)
AddPrinterDriver メソッドにより、プリンタ ドライバがインストールされます。 メソッドは次の値を返すことができます: 0 - 成功です。
5 - アクセスが拒否されました。
1797 - プリンタ ドライバが不明です。
その他 - 上の一覧以外の整数値については Win32 エラー コードのドキュメントを参照してください。
36 37 |
# File 'lib/Win32_PrinterDriver.rb', line 36 def AddPrinterDriver DriverInfo end |
- (uint32) StartService
StartService 方法によって、開始された状態のサービスが置かれます。 サービスが正常に開始すると、整数 0 が返され、要求がサポートされない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。
ValueMap
値の配置修飾子としてサブクラスで指定される場合もあります。
12 13 |
# File 'lib/Win32_PrinterDriver.rb', line 12 def StartService end |
- (uint32) StopService
StopService 方法によって、停止された状態のサービスが置かれます。 サービスが正常に停止すると、整数 0 が返され、要求がサポートされていない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。
20 21 |
# File 'lib/Win32_PrinterDriver.rb', line 20 def StopService end |