Class: WMI::Win32_PrinterDriver

Inherits:
Base
  • Object
show all
Defined in:
lib/Win32_PrinterDriver.rb

Overview

Win32_PrinterDriver クラスにより、Win32_Printe のドライバが表されます。

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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 行分の文字列) です。

Returns:

  • (string)

    Caption



42
43
44
# File 'lib/Win32_PrinterDriver.rb', line 42

def Caption
  @Caption
end

- (string) ConfigFile (readonly)

ConfigFile プロパティには、このプリンタ ドライバの構成ファイルが含まれます、(例: pscrptui.dll)。

Returns:

  • (string)

    ConfigFile



47
48
49
# File 'lib/Win32_PrinterDriver.rb', line 47

def ConfigFile
  @ConfigFile
end

- (string) CreationClassName (readonly)

CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。

 

Returns:

  • (string)

    CreationClassName



53
54
55
# File 'lib/Win32_PrinterDriver.rb', line 53

def CreationClassName
  @CreationClassName
end

- (string) DataFile (readonly)

DataFile プロパティには、このプリンタ ドライバのデータ ファイルが含まれます、(例: qms810.ppd)。

Returns:

  • (string)

    DataFile



58
59
60
# File 'lib/Win32_PrinterDriver.rb', line 58

def DataFile
  @DataFile
end

- (string) DefaultDataType (readonly)

DefaultDataType プロパティにより、このプリンタ ドライバの既定のデータの種類が示されます、 (例: EMF)。

Returns:

  • (string)

    DefaultDataType



63
64
65
# File 'lib/Win32_PrinterDriver.rb', line 63

def DefaultDataType
  @DefaultDataType
end

- (string) DependentFiles (readonly)

DependentFiles プロパティにはこのプリンタ ドライバの依存ファイルの一覧が含まれます。

Returns:

  • (string)

    DependentFiles



68
69
70
# File 'lib/Win32_PrinterDriver.rb', line 68

def DependentFiles
  @DependentFiles
end

- (string) Description (readonly)

Description プロパティでオブジェクトの説明が提供されます。

Returns:

  • (string)

    Description



74
75
76
# File 'lib/Win32_PrinterDriver.rb', line 74

def Description
  @Description
end

- (string) DriverPath (readonly)

DriverPath プロパティに は、このプリンタ ドライバのパスが含まれます、(例: C:\drivers\pscript.dll)。

Returns:

  • (string)

    DriverPath



79
80
81
# File 'lib/Win32_PrinterDriver.rb', line 79

def DriverPath
  @DriverPath
end

- (string) FilePath

FilePath プロパティには、使用されている INF ファイルへのパスが含まれます、(例: c:\temp\driver)。

Returns:

  • (string)

    FilePath



84
85
86
# File 'lib/Win32_PrinterDriver.rb', line 84

def FilePath
  @FilePath
end

- (string) HelpFile (readonly)

HelpFile プロパティには、このプリンタ ドライバのヘルプ ファイルが含まれます、(例: pscrptui.hlp)。

Returns:

  • (string)

    HelpFile



89
90
91
# File 'lib/Win32_PrinterDriver.rb', line 89

def HelpFile
  @HelpFile
end

- (string) InfName

InfName プロパティには、使用されている INF ファイル名が含まれます。

 

Returns:

  • (string)

    InfName



96
97
98
# File 'lib/Win32_PrinterDriver.rb', line 96

def InfName
  @InfName
end

- (datetime) InstallDate (readonly)

InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。

 

Returns:

  • (datetime)

    InstallDate



102
103
104
# File 'lib/Win32_PrinterDriver.rb', line 102

def InstallDate
  @InstallDate
end

- (string) MonitorName (readonly)

MonitorName プロパティには、このプリンタ ドライバのモニタ名が含まれます、 (例: PJL モニタ)。

Returns:

  • (string)

    MonitorName



107
108
109
# File 'lib/Win32_PrinterDriver.rb', line 107

def MonitorName
  @MonitorName
end

- (string) Name (readonly)

Name プロパティにより、このプリンタのドライバ名が示されます。

 

Returns:

  • (string)

    Name



113
114
115
# File 'lib/Win32_PrinterDriver.rb', line 113

def Name
  @Name
end

- (string) OEMUrl (readonly)

OEMUrl プロパティにより、プリンタの製造元の Web サイトへの World Wide Web リンクが提供されます。

 

Returns:

  • (string)

    OEMUrl



119
120
121
# File 'lib/Win32_PrinterDriver.rb', line 119

def OEMUrl
  @OEMUrl
end

- (boolean) Started (readonly)

Started はサービスが開始したか (TRUE)、または停止したか (FALSE) を示すブール値です。

Returns:

  • (boolean)

    Started



124
125
126
# File 'lib/Win32_PrinterDriver.rb', line 124

def Started
  @Started
end

- (string) StartMode (readonly)

StartMode は、サービスがオペレーティング システムによって自動的に開始するかどうか、または要求に応じて開始するだけなのかどうかを示す文字列の値です

Returns:

  • (string)

    StartMode



129
130
131
# File 'lib/Win32_PrinterDriver.rb', line 129

def StartMode
  @StartMode
end

- (string) Status (readonly)

Status プロパティはオブジェクトの現在の状態を示す文字列です。

 

Returns:

  • (string)

    Status



142
143
144
# File 'lib/Win32_PrinterDriver.rb', line 142

def Status
  @Status
end

- (string) SupportedPlatform

SupportedPlatform プロパティにより、ドライバが意図しているオペレーティング環境が示されます。

 

Returns:

  • (string)

    SupportedPlatform



148
149
150
# File 'lib/Win32_PrinterDriver.rb', line 148

def SupportedPlatform
  @SupportedPlatform
end

- (string) SystemCreationClassName (readonly)

スコーピング システムの CreationClassName です。

Returns:

  • (string)

    SystemCreationClassName



154
155
156
# File 'lib/Win32_PrinterDriver.rb', line 154

def SystemCreationClassName
  @SystemCreationClassName
end

- (string) SystemName (readonly)

このサービスのホストになるシステム名です

Returns:

  • (string)

    SystemName



159
160
161
# File 'lib/Win32_PrinterDriver.rb', line 159

def SystemName
  @SystemName
end

- (uint16) Version

Version プロパティにより、ドライバが意図しているオペレーティング システム バージョンが示されます。

Returns:

  • (uint16)

    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 エラー コードのドキュメントを参照してください。

Parameters:

  • (Win32_PrinterDriver, #read) DriverInfo

    DriverInfo パラメータにより、プリンタ ドライバを作成するのに必要な情報が指定されます。

Returns:

  • (uint32)


36
37
# File 'lib/Win32_PrinterDriver.rb', line 36

def AddPrinterDriver DriverInfo
end

- (uint32) StartService

StartService 方法によって、開始された状態のサービスが置かれます。 サービスが正常に開始すると、整数 0 が返され、要求がサポートされない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。

 ValueMap 

値の配置修飾子としてサブクラスで指定される場合もあります。

Returns:

  • (uint32)


12
13
# File 'lib/Win32_PrinterDriver.rb', line 12

def StartService 
end

- (uint32) StopService

StopService 方法によって、停止された状態のサービスが置かれます。 サービスが正常に停止すると、整数 0 が返され、要求がサポートされていない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。

Returns:

  • (uint32)


20
21
# File 'lib/Win32_PrinterDriver.rb', line 20

def StopService 
end