Class: WMI::Win32_PointingDevice

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

Overview

Win32_PointingDevice クラスは、Win32 コンピュータ システムの画面上で領域をポイントし選択するために使用される入力デバイスを表します。ポインタを操作する、または Win32 コンピュータ システムの画面をポイントするために使用されるデバイスは、このクラスのメンバです。 例: マウス、タッチ パッド、またはスタイラス/タブレットです。

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

- (uint16) Availability (readonly)

デバイスの利用可能性と状態です。

 

Returns:

  • (uint16)

    Availability



37
38
39
# File 'lib/Win32_PointingDevice.rb', line 37

def Availability
  @Availability
end

- (string) Caption (readonly)

Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



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

def Caption
  @Caption
end

- (uint32) ConfigManagerErrorCode (readonly)

Win32 構成マネージャのエラー コードを示します。

 

Returns:

  • (uint32)

    ConfigManagerErrorCode



115
116
117
# File 'lib/Win32_PointingDevice.rb', line 115

def ConfigManagerErrorCode
  @ConfigManagerErrorCode
end

- (boolean) ConfigManagerUserConfig (readonly)

デバイスがユーザー定義の構成を使用しているかどうかを示します。

Returns:

  • (boolean)

    ConfigManagerUserConfig



120
121
122
# File 'lib/Win32_PointingDevice.rb', line 120

def ConfigManagerUserConfig
  @ConfigManagerUserConfig
end

- (string) CreationClassName (readonly)

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

 

Returns:

  • (string)

    CreationClassName



126
127
128
# File 'lib/Win32_PointingDevice.rb', line 126

def CreationClassName
  @CreationClassName
end

- (string) Description (readonly)

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

Returns:

  • (string)

    Description



132
133
134
# File 'lib/Win32_PointingDevice.rb', line 132

def Description
  @Description
end

- (string) DeviceID (readonly)

DeviceID プロパティには、ポインティング デバイスをシステム上のほかのデバイスと一意に識別する文字列が含まれています。

Returns:

  • (string)

    DeviceID



137
138
139
# File 'lib/Win32_PointingDevice.rb', line 137

def DeviceID
  @DeviceID
end

- (uint16) DeviceInterface (readonly)

DeviceInterface プロパティは、ポインティング デバイスで使用されるインターフェイスの種類を示します。

Returns:

  • (uint16)

    DeviceInterface



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

def DeviceInterface
  @DeviceInterface
end

- (uint32) DoubleSpeedThreshold (readonly)

DoubleSpeedThreshold プロパティには、2 つの加速値のどちらかが含まれています。

 

Returns:

  • (uint32)

    DoubleSpeedThreshold



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

def DoubleSpeedThreshold
  @DoubleSpeedThreshold
end

- (boolean) ErrorCleared (readonly)

ErrorCleared は LastErrorCode プロパティで報告されたエラーが現在は消去されていることを示すブール値のプロパティです。

Returns:

  • (boolean)

    ErrorCleared



153
154
155
# File 'lib/Win32_PointingDevice.rb', line 153

def ErrorCleared
  @ErrorCleared
end

- (string) ErrorDescription (readonly)

ErrorDescription は LastErrorCode プロパティで記録されたエラーに関する情報および実行される可能性がある修正の情報を提供する自由形式の文字列です。

Returns:

  • (string)

    ErrorDescription



158
159
160
# File 'lib/Win32_PointingDevice.rb', line 158

def ErrorDescription
  @ErrorDescription
end

- (uint16) Handedness (readonly)

ポインティング デバイスが右手操作 (値 = 2) または左手操作 (値 = 3) のどちらで構成されているのかを示す整数です。

 

Returns:

  • (uint16)

    Handedness



164
165
166
# File 'lib/Win32_PointingDevice.rb', line 164

def Handedness
  @Handedness
end

- (string) HardwareType (readonly)

ハードウェアの種類
プロパティは、Win32 ポインティング デバイスで使用されるハードウェアの種類を示します。
 

Returns:

  • (string)

    HardwareType



171
172
173
# File 'lib/Win32_PointingDevice.rb', line 171

def HardwareType
  @HardwareType
end

- (string) InfFileName (readonly)

InfFileName プロパティは、Win32 ポインティング デバイスで使用される .inf ファイル名を示します。

 

Returns:

  • (string)

    InfFileName



178
179
180
# File 'lib/Win32_PointingDevice.rb', line 178

def InfFileName
  @InfFileName
end

- (string) InfSection (readonly)

InfSection プロパティは、Win32 ポインティング デバイスの構成情報を保持する .inf ファイルのセクションを示します。

Returns:

  • (string)

    InfSection



183
184
185
# File 'lib/Win32_PointingDevice.rb', line 183

def InfSection
  @InfSection
end

- (datetime) InstallDate (readonly)

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

 

Returns:

  • (datetime)

    InstallDate



189
190
191
# File 'lib/Win32_PointingDevice.rb', line 189

def InstallDate
  @InstallDate
end

- (boolean) IsLocked (readonly)

ユーザーが入力または出力できないようにデバイスがロックされるかどうかを示します。

Returns:

  • (boolean)

    IsLocked



194
195
196
# File 'lib/Win32_PointingDevice.rb', line 194

def IsLocked
  @IsLocked
end

- (uint32) LastErrorCode (readonly)

論理デバイスで報告されたエラー コードが LastErrorCode によってキャプチャされます。

Returns:

  • (uint32)

    LastErrorCode



199
200
201
# File 'lib/Win32_PointingDevice.rb', line 199

def LastErrorCode
  @LastErrorCode
end

- (string) Manufacturer (readonly)

製造元
プロパティにより、プロセッサの製造元名が指定されます。
 

Returns:

  • (string)

    Manufacturer



206
207
208
# File 'lib/Win32_PointingDevice.rb', line 206

def Manufacturer
  @Manufacturer
end

- (string) Name (readonly)

Name プロパティで、オブジェクトを認識するラベルを定義します。

 

Returns:

  • (string)

    Name



212
213
214
# File 'lib/Win32_PointingDevice.rb', line 212

def Name
  @Name
end

- (uint8) NumberOfButtons (readonly)

NumberOfButtons プロパティは、ポインティング デバイスのボタンの数を示します。

  

Returns:

  • (uint8)

    NumberOfButtons



219
220
221
# File 'lib/Win32_PointingDevice.rb', line 219

def NumberOfButtons
  @NumberOfButtons
end

- (string) PNPDeviceID (readonly)

論理デバイスの Win32 プラグ アンド プレイ デバイス ID を示します。

 

Returns:

  • (string)

    PNPDeviceID



225
226
227
# File 'lib/Win32_PointingDevice.rb', line 225

def PNPDeviceID
  @PNPDeviceID
end

- (uint16) PointingType (readonly)

ポインティング デバイスの種類です。

Returns:

  • (uint16)

    PointingType



230
231
232
# File 'lib/Win32_PointingDevice.rb', line 230

def PointingType
  @PointingType
end

- (uint16) PowerManagementCapabilities (readonly)

論理デバイスの特定の電源関連機能を示します。

 0="不明"

Returns:

  • (uint16)

    PowerManagementCapabilities



241
242
243
# File 'lib/Win32_PointingDevice.rb', line 241

def PowerManagementCapabilities
  @PowerManagementCapabilities
end

- (boolean) PowerManagementSupported (readonly)

デバイスを電源管理できることを示すブール値です - 例、省電力状態にする。

 

Returns:

  • (boolean)

    PowerManagementSupported



249
250
251
# File 'lib/Win32_PointingDevice.rb', line 249

def PowerManagementSupported
  @PowerManagementSupported
end

- (uint32) QuadSpeedThreshold (readonly)

QuadSpeedThreshold プロパティには、2 つの加速しきい値の 1 つが含まれています。

 

Returns:

  • (uint32)

    QuadSpeedThreshold



256
257
258
# File 'lib/Win32_PointingDevice.rb', line 256

def QuadSpeedThreshold
  @QuadSpeedThreshold
end

- (uint32) Resolution (readonly)

Resolution プロパティはトラッキング解像度を示します。

  

Returns:

  • (uint32)

    Resolution



263
264
265
# File 'lib/Win32_PointingDevice.rb', line 263

def Resolution
  @Resolution
end

- (uint32) SampleRate (readonly)

SampleRate プロパティはポインティング デバイスが入力情報にポーリングされるときの速度を示します。

Returns:

  • (uint32)

    SampleRate



268
269
270
# File 'lib/Win32_PointingDevice.rb', line 268

def SampleRate
  @SampleRate
end

- (string) Status (readonly)

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

 

Returns:

  • (string)

    Status



281
282
283
# File 'lib/Win32_PointingDevice.rb', line 281

def Status
  @Status
end

- (uint16) StatusInfo (readonly)

StatusInfo は、論理デバイスが有効 (値 = 3)、無効 (値 = 4) またはその他 (1) または不明 (2) 状態であるかどうかを示す文字列です。

 

Returns:

  • (uint16)

    StatusInfo



287
288
289
# File 'lib/Win32_PointingDevice.rb', line 287

def StatusInfo
  @StatusInfo
end

- (uint32) Synch (readonly)

Synch プロパティにより、次の割り込みが新しいデバイス パケットの開始 (部分パケットは破棄) を示す後の時間の長さが指定されます。

 

Returns:

  • (uint32)

    Synch



293
294
295
# File 'lib/Win32_PointingDevice.rb', line 293

def Synch
  @Synch
end

- (string) SystemCreationClassName (readonly)

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

Returns:

  • (string)

    SystemCreationClassName



299
300
301
# File 'lib/Win32_PointingDevice.rb', line 299

def SystemCreationClassName
  @SystemCreationClassName
end

- (string) SystemName (readonly)

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

Returns:

  • (string)

    SystemName



304
305
306
# File 'lib/Win32_PointingDevice.rb', line 304

def SystemName
  @SystemName
end

Instance Method Details

- (uint32) Reset

論理デバイスのリセットを要求します。 要求が正常に実行された場合、返される値は 0 で、要求がサポートされない場合は 1 です。 また、エラーが発生した場合は、ほかの値となります。

Returns:

  • (uint32)


26
27
# File 'lib/Win32_PointingDevice.rb', line 26

def Reset 
end

- (uint32) SetPowerState(PowerState, Time)

SetPowerState により、論理デバイスの電源状態およびデバイスがいつその状態に入るかが定義されます。 電源状態は、PowerState パラメータを次の整数値の 1 つに設定することによって指定されます: 1="通常の電力"、2="省電力- 低電力モード"、3="省電力 - スタンバイ"、4="省電力 - その他"、5="電源サイクル" または 6="電源オフ"。 時間パラメータ (5 の "Power Cycle" を除くすべての状態の変更用) は、通常の日付値または間隔値 (メソッド実行の受信時に間隔が開始される) のどちらかにいつ電源状態が設定される必要があるかを示します。 PowerState パラメータが 5 ("Power Cycle") であるとき、時間パラメータはいつデバイスが再度電源オンになるかを示します。 直ちに電源をオフにします。 成功の場合、SetPowerState は 0 を返し、指定された PowerState および要求時間がサポートされていない場合は、1 を返し、ほかのエラーが発生する場合はほかの値が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。

 ValueMap 

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

Parameters:

  • (uint16, #read) PowerState
  • (datetime, #read) Time

Returns:

  • (uint32)


18
19
# File 'lib/Win32_PointingDevice.rb', line 18

def SetPowerState PowerState, Time
end