Class: WMI::Win32_MemoryDevice

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

Overview

Win32_MemoryDevice クラスは、関連するマップされたアドレスと共にコンピュータ システムのメモリ デバイスのプロパティを表します。

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) Access (readonly)

Access はメディアが読み取り可能 (値 = 1) かどうか、書き込み可能 (値 = 2) かどうか、またはその両方 (値 = 3) かどうかを説明します。

 "不明" (0) 

Returns:

  • (uint16)

    Access



32
33
34
# File 'lib/Win32_MemoryDevice.rb', line 32

def Access
  @Access
end

- (uint8) AdditionalErrorData (readonly)

AdditionalErrorData プロパティには、エラー情報がさらに含まれています。

 

Returns:

  • (uint8)

    AdditionalErrorData



41
42
43
# File 'lib/Win32_MemoryDevice.rb', line 41

def AdditionalErrorData
  @AdditionalErrorData
end

- (uint16) Availability (readonly)

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

 

Returns:

  • (uint16)

    Availability



51
52
53
# File 'lib/Win32_MemoryDevice.rb', line 51

def Availability
  @Availability
end

- (uint64) BlockSize (readonly)

この StorageExtent を形成するブロックのサイズ (バイト) です。

 

Returns:

  • (uint64)

    BlockSize



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

def BlockSize
  @BlockSize
end

- (string) Caption (readonly)

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

Returns:

  • (string)

    Caption



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

def Caption
  @Caption
end

- (uint32) ConfigManagerErrorCode (readonly)

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

 

Returns:

  • (uint32)

    ConfigManagerErrorCode



136
137
138
# File 'lib/Win32_MemoryDevice.rb', line 136

def ConfigManagerErrorCode
  @ConfigManagerErrorCode
end

- (boolean) ConfigManagerUserConfig (readonly)

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

Returns:

  • (boolean)

    ConfigManagerUserConfig



141
142
143
# File 'lib/Win32_MemoryDevice.rb', line 141

def ConfigManagerUserConfig
  @ConfigManagerUserConfig
end

- (boolean) CorrectableError (readonly)

CorrectableError プロパティは、最新のエラーが修正可能であるかどうかを示します。

 

Returns:

  • (boolean)

    CorrectableError



150
151
152
# File 'lib/Win32_MemoryDevice.rb', line 150

def CorrectableError
  @CorrectableError
end

- (string) CreationClassName (readonly)

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

 

Returns:

  • (string)

    CreationClassName



156
157
158
# File 'lib/Win32_MemoryDevice.rb', line 156

def CreationClassName
  @CreationClassName
end

- (string) Description (readonly)

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

Returns:

  • (string)

    Description



162
163
164
# File 'lib/Win32_MemoryDevice.rb', line 162

def Description
  @Description
end

- (string) DeviceID (readonly)

DeviceID プロパティには、メモリ デバイスを一意に識別する文字列が含まれています。

 

Returns:

  • (string)

    DeviceID



169
170
171
# File 'lib/Win32_MemoryDevice.rb', line 169

def DeviceID
  @DeviceID
end

- (uint64) EndingAddress (readonly)

EndingAddress プロパティにより、アプリケーションまたはオペレーティング システムによって参照される終了アドレスが指定されます。

 

Returns:

  • (uint64)

    EndingAddress



175
176
177
# File 'lib/Win32_MemoryDevice.rb', line 175

def EndingAddress
  @EndingAddress
end

- (uint16) ErrorAccess (readonly)

ErrorAccess プロパティは、前回のエラーを発生させたメモリ アクセス操作を示します。

 

Returns:

  • (uint16)

    ErrorAccess



181
182
183
# File 'lib/Win32_MemoryDevice.rb', line 181

def ErrorAccess
  @ErrorAccess
end

- (uint64) ErrorAddress (readonly)

ErrorAddress プロパティにより、前回のメモリ エラーのアドレスが指定されます。

 

Returns:

  • (uint64)

    ErrorAddress



187
188
189
# File 'lib/Win32_MemoryDevice.rb', line 187

def ErrorAddress
  @ErrorAddress
end

- (boolean) ErrorCleared (readonly)

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

Returns:

  • (boolean)

    ErrorCleared



192
193
194
# File 'lib/Win32_MemoryDevice.rb', line 192

def ErrorCleared
  @ErrorCleared
end

- (uint8) ErrorData (readonly)

ErrorData プロパティには、エラーが発生した前回のメモリ アクセスから取得されたデータが含まれています。

 ErrorTransferSize 

Returns:

  • (uint8)

    ErrorData



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

def ErrorData
  @ErrorData
end

- (uint16) ErrorDataOrder (readonly)

ErrorDataOrder プロパティは、ErrorData プロパティに保存されたデータの順序を示します。

 

Returns:

  • (uint16)

    ErrorDataOrder



205
206
207
# File 'lib/Win32_MemoryDevice.rb', line 205

def ErrorDataOrder
  @ErrorDataOrder
end

- (string) ErrorDescription (readonly)

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

Returns:

  • (string)

    ErrorDescription



210
211
212
# File 'lib/Win32_MemoryDevice.rb', line 210

def ErrorDescription
  @ErrorDescription
end

- (uint16) ErrorGranularity (readonly)

ErrorGranularity プロパティは、エラーを解決できるレベルを示します。

 

Returns:

  • (uint16)

    ErrorGranularity



217
218
219
# File 'lib/Win32_MemoryDevice.rb', line 217

def ErrorGranularity
  @ErrorGranularity
end

- (uint16) ErrorInfo (readonly)

ErrorInfo プロパティには、最近発生したエラーの種類を説明する整数の列挙が含まれています。

 

Returns:

  • (uint16)

    ErrorInfo



224
225
226
# File 'lib/Win32_MemoryDevice.rb', line 224

def ErrorInfo
  @ErrorInfo
end

- (string) ErrorMethodology (readonly)

ErrorMethodology プロパティにより、メモリ ハードウェアによって使用されるエラー チェックの種類が指定されます。

Returns:

  • (string)

    ErrorMethodology



229
230
231
# File 'lib/Win32_MemoryDevice.rb', line 229

def ErrorMethodology
  @ErrorMethodology
end

- (uint64) ErrorResolution (readonly)

ErrorResolution プロパティにより、実際にエラーを発生させるデータの量が指定されます。

 

Returns:

  • (uint64)

    ErrorResolution



235
236
237
# File 'lib/Win32_MemoryDevice.rb', line 235

def ErrorResolution
  @ErrorResolution
end

- (datetime) ErrorTime (readonly)

ErrorTime プロパティには、前回のメモリ エラーが発生した時間が含まれています。

 

Returns:

  • (datetime)

    ErrorTime



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

def ErrorTime
  @ErrorTime
end

- (uint32) ErrorTransferSize (readonly)

ErrorTransferSize プロパティにより、転送されるデータのサイズが指定されます。

 

Returns:

  • (uint32)

    ErrorTransferSize



248
249
250
# File 'lib/Win32_MemoryDevice.rb', line 248

def ErrorTransferSize
  @ErrorTransferSize
end

- (datetime) InstallDate (readonly)

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

 

Returns:

  • (datetime)

    InstallDate



254
255
256
# File 'lib/Win32_MemoryDevice.rb', line 254

def InstallDate
  @InstallDate
end

- (uint32) LastErrorCode (readonly)

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

Returns:

  • (uint32)

    LastErrorCode



259
260
261
# File 'lib/Win32_MemoryDevice.rb', line 259

def LastErrorCode
  @LastErrorCode
end

- (string) Name (readonly)

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

 

Returns:

  • (string)

    Name



265
266
267
# File 'lib/Win32_MemoryDevice.rb', line 265

def Name
  @Name
end

- (string) OtherErrorDescription (readonly)

OtherErrorDescription プロパティで、ErrorInfo プロパティが 1 に設定されているときの情報が提供されます。

Returns:

  • (string)

    OtherErrorDescription



277
278
279
# File 'lib/Win32_MemoryDevice.rb', line 277

def OtherErrorDescription
  @OtherErrorDescription
end

- (string) PNPDeviceID (readonly)

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

 

Returns:

  • (string)

    PNPDeviceID



283
284
285
# File 'lib/Win32_MemoryDevice.rb', line 283

def PNPDeviceID
  @PNPDeviceID
end

- (uint16) PowerManagementCapabilities (readonly)

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

 0="不明"

Returns:

  • (uint16)

    PowerManagementCapabilities



294
295
296
# File 'lib/Win32_MemoryDevice.rb', line 294

def PowerManagementCapabilities
  @PowerManagementCapabilities
end

- (boolean) PowerManagementSupported (readonly)

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

 

Returns:

  • (boolean)

    PowerManagementSupported



302
303
304
# File 'lib/Win32_MemoryDevice.rb', line 302

def PowerManagementSupported
  @PowerManagementSupported
end

- (string) Purpose (readonly)

メディアおよび (または) その使用を説明する自由形式の文字列です。

Returns:

  • (string)

    Purpose



307
308
309
# File 'lib/Win32_MemoryDevice.rb', line 307

def Purpose
  @Purpose
end

- (uint64) StartingAddress (readonly)

StartingAddress プロパティにより、アプリケーションまたはオペレーティング システムに参照される先頭アドレスが指定されます。

 

Returns:

  • (uint64)

    StartingAddress



313
314
315
# File 'lib/Win32_MemoryDevice.rb', line 313

def StartingAddress
  @StartingAddress
end

- (string) Status (readonly)

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

 

Returns:

  • (string)

    Status



326
327
328
# File 'lib/Win32_MemoryDevice.rb', line 326

def Status
  @Status
end

- (uint16) StatusInfo (readonly)

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

 

Returns:

  • (uint16)

    StatusInfo



332
333
334
# File 'lib/Win32_MemoryDevice.rb', line 332

def StatusInfo
  @StatusInfo
end

- (string) SystemCreationClassName (readonly)

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

Returns:

  • (string)

    SystemCreationClassName



338
339
340
# File 'lib/Win32_MemoryDevice.rb', line 338

def SystemCreationClassName
  @SystemCreationClassName
end

- (boolean) SystemLevelAddress (readonly)

SystemLevelAddress プロパティは、ErrorAddress プロパティのアドレス情報がシステム レベル アドレス (TRUE) か物理アドレス (FALSE) かを示します。

  

Returns:

  • (boolean)

    SystemLevelAddress



347
348
349
# File 'lib/Win32_MemoryDevice.rb', line 347

def SystemLevelAddress
  @SystemLevelAddress
end

- (string) SystemName (readonly)

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

Returns:

  • (string)

    SystemName



352
353
354
# File 'lib/Win32_MemoryDevice.rb', line 352

def SystemName
  @SystemName
end

Instance Method Details

- (uint32) Reset

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

Returns:

  • (uint32)


25
26
# File 'lib/Win32_MemoryDevice.rb', line 25

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)


17
18
# File 'lib/Win32_MemoryDevice.rb', line 17

def SetPowerState PowerState, Time
end