Class: WMI::Win32_CDROMDrive

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

Overview

Win32_CDROMDrive クラスは、Win32 コンピュータ システムの CD-ROM ドライブを表します。

注意: ドライブ名は、デバイスに割り当てられた論理ドライブ文字に対応していません。

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



38
39
40
# File 'lib/Win32_CDROMDrive.rb', line 38

def Availability
  @Availability
end

- (uint16) Capabilities (readonly)

メディア アクセス デバイスの機能です。

 

Returns:

  • (uint16)

    Capabilities



48
49
50
# File 'lib/Win32_CDROMDrive.rb', line 48

def Capabilities
  @Capabilities
end

- (string) CapabilityDescriptions (readonly)

Capabilities 配列で示されるアクセス デバイス機能の詳細説明を提供する自由形式の文字列の配列です。

 

Returns:

  • (string)

    CapabilityDescriptions



54
55
56
# File 'lib/Win32_CDROMDrive.rb', line 54

def CapabilityDescriptions
  @CapabilityDescriptions
end

- (string) Caption (readonly)

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

Returns:

  • (string)

    Caption



59
60
61
# File 'lib/Win32_CDROMDrive.rb', line 59

def Caption
  @Caption
end

- (string) CompressionMethod (readonly)

圧縮をサポートするデバイスによって使用されるアルゴリズムまたはツールを示す自由形式の文字列です。

 

Returns:

  • (string)

    CompressionMethod



65
66
67
# File 'lib/Win32_CDROMDrive.rb', line 65

def CompressionMethod
  @CompressionMethod
end

- (uint32) ConfigManagerErrorCode (readonly)

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

 

Returns:

  • (uint32)

    ConfigManagerErrorCode



138
139
140
# File 'lib/Win32_CDROMDrive.rb', line 138

def ConfigManagerErrorCode
  @ConfigManagerErrorCode
end

- (boolean) ConfigManagerUserConfig (readonly)

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

Returns:

  • (boolean)

    ConfigManagerUserConfig



143
144
145
# File 'lib/Win32_CDROMDrive.rb', line 143

def ConfigManagerUserConfig
  @ConfigManagerUserConfig
end

- (string) CreationClassName (readonly)

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

 

Returns:

  • (string)

    CreationClassName



149
150
151
# File 'lib/Win32_CDROMDrive.rb', line 149

def CreationClassName
  @CreationClassName
end

- (uint64) DefaultBlockSize (readonly)

このデバイスの既定ブロック サイズです (バイト)。

Returns:

  • (uint64)

    DefaultBlockSize



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

def DefaultBlockSize
  @DefaultBlockSize
end

- (string) Description (readonly)

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

Returns:

  • (string)

    Description



160
161
162
# File 'lib/Win32_CDROMDrive.rb', line 160

def Description
  @Description
end

- (string) DeviceID (readonly)

DeviceID プロパティには、この CD-ROM ドライブを一意に識別する文字列が含まれています。

Returns:

  • (string)

    DeviceID



165
166
167
# File 'lib/Win32_CDROMDrive.rb', line 165

def DeviceID
  @DeviceID
end

- (Object) Drive (readonly)

ドライブ
プロパティは CD ROM ドライブのドライブ文字を示します。
 


172
173
174
# File 'lib/Win32_CDROMDrive.rb', line 172

def Drive
  @Drive
end

- (boolean) DriveIntegrity (readonly)

DriveIntegrity プロパティは、ファイルが CD デバイスから正確に読み取られるかどうかを示します。

 

Returns:

  • (boolean)

    DriveIntegrity



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

def DriveIntegrity
  @DriveIntegrity
end

- (boolean) ErrorCleared (readonly)

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

Returns:

  • (boolean)

    ErrorCleared



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

def ErrorCleared
  @ErrorCleared
end

- (string) ErrorDescription (readonly)

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

Returns:

  • (string)

    ErrorDescription



188
189
190
# File 'lib/Win32_CDROMDrive.rb', line 188

def ErrorDescription
  @ErrorDescription
end

- (string) ErrorMethodology (readonly)

ErrorMethodology は、このデバイスでサポートされているエラー検出およびエラー修正の種類を説明する自由形式の文字列です。

Returns:

  • (string)

    ErrorMethodology



193
194
195
# File 'lib/Win32_CDROMDrive.rb', line 193

def ErrorMethodology
  @ErrorMethodology
end

- (uint16) FileSystemFlags (readonly)

FileSystemFlags プロパティは、FileSystemFlagsEx のために使用されていません。

Returns:

  • (uint16)

    FileSystemFlags



198
199
200
# File 'lib/Win32_CDROMDrive.rb', line 198

def FileSystemFlags
  @FileSystemFlags
end

- (uint32) FileSystemFlagsEx (readonly)

FileSystemFlagsEx プロパティは、Win32 CD-ROM ドライブに関連付けられているファイル システム フラグを示します。

 

Returns:

  • (uint32)

    FileSystemFlagsEx



207
208
209
# File 'lib/Win32_CDROMDrive.rb', line 207

def FileSystemFlagsEx
  @FileSystemFlagsEx
end

- (string) Id (readonly)

ID
プロパティはこの CD-ROM ドライブを一意に識別するドライブ文字を示します。
 

Returns:

  • (string)

    Id



214
215
216
# File 'lib/Win32_CDROMDrive.rb', line 214

def Id
  @Id
end

- (datetime) InstallDate (readonly)

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

 

Returns:

  • (datetime)

    InstallDate



220
221
222
# File 'lib/Win32_CDROMDrive.rb', line 220

def InstallDate
  @InstallDate
end

- (uint32) LastErrorCode (readonly)

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

Returns:

  • (uint32)

    LastErrorCode



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

def LastErrorCode
  @LastErrorCode
end

- (string) Manufacturer (readonly)

製造元
プロパティは Win32 CD-ROM ドライブの製造元を示します。
 

Returns:

  • (string)

    Manufacturer



232
233
234
# File 'lib/Win32_CDROMDrive.rb', line 232

def Manufacturer
  @Manufacturer
end

- (uint64) MaxBlockSize (readonly)

このデバイスでアクセスされるメディアの最大ブロック サイズです (バイト)。

Returns:

  • (uint64)

    MaxBlockSize



237
238
239
# File 'lib/Win32_CDROMDrive.rb', line 237

def MaxBlockSize
  @MaxBlockSize
end

- (uint32) MaximumComponentLength (readonly)

MaximumComponentLength プロパティは、Win32 CD-ROM ドライブでサポートされているファイル名のコンポーネントの最大長を示します。

 

Returns:

  • (uint32)

    MaximumComponentLength



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

def MaximumComponentLength
  @MaximumComponentLength
end

- (uint64) MaxMediaSize (readonly)

このデバイスにサポートされているメディアの最大サイズ (KB) です。

 KB 

Returns:

  • (uint64)

    MaxMediaSize



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

def MaxMediaSize
  @MaxMediaSize
end

- (boolean) MediaLoaded (readonly)

MediaLoaded プロパティは CD-ROM がドライブに入っているかどうかを示します。

 

Returns:

  • (boolean)

    MediaLoaded



262
263
264
# File 'lib/Win32_CDROMDrive.rb', line 262

def MediaLoaded
  @MediaLoaded
end

- (string) MediaType (readonly)

MediaType プロパティは、このデバイスで使用されるか、またはアクセスされるメディアの種類です。

 

Returns:

  • (string)

    MediaType



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

def MediaType
  @MediaType
end

- (string) MfrAssignedRevisionLevel (readonly)

MfrAssignedRevisionLevel プロパティにより、製造元に割り当てられた CDROM ドライブのファームウェア リビジョン レベルが示されます。

Returns:

  • (string)

    MfrAssignedRevisionLevel



274
275
276
# File 'lib/Win32_CDROMDrive.rb', line 274

def MfrAssignedRevisionLevel
  @MfrAssignedRevisionLevel
end

- (uint64) MinBlockSize (readonly)

このデバイスでアクセスされるメディアの最小ブロック サイズです (バイト)。

Returns:

  • (uint64)

    MinBlockSize



279
280
281
# File 'lib/Win32_CDROMDrive.rb', line 279

def MinBlockSize
  @MinBlockSize
end

- (string) Name (readonly)

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

 

Returns:

  • (string)

    Name



285
286
287
# File 'lib/Win32_CDROMDrive.rb', line 285

def Name
  @Name
end

- (boolean) NeedsCleaning (readonly)

クリーニングが必要なメディア アクセス デバイスを示すブール値です。

 

Returns:

  • (boolean)

    NeedsCleaning



292
293
294
# File 'lib/Win32_CDROMDrive.rb', line 292

def NeedsCleaning
  @NeedsCleaning
end

- (uint32) NumberOfMediaSupported (readonly)

メディア アクセス デバイスによって複数のメディアがそれぞれサポートされているとき、このプロパティにより、サポートされる、または挿入される最大数が定義されます。

Returns:

  • (uint32)

    NumberOfMediaSupported



297
298
299
# File 'lib/Win32_CDROMDrive.rb', line 297

def NumberOfMediaSupported
  @NumberOfMediaSupported
end

- (string) PNPDeviceID (readonly)

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

 

Returns:

  • (string)

    PNPDeviceID



303
304
305
# File 'lib/Win32_CDROMDrive.rb', line 303

def PNPDeviceID
  @PNPDeviceID
end

- (uint16) PowerManagementCapabilities (readonly)

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

 0="不明"

Returns:

  • (uint16)

    PowerManagementCapabilities



314
315
316
# File 'lib/Win32_CDROMDrive.rb', line 314

def PowerManagementCapabilities
  @PowerManagementCapabilities
end

- (boolean) PowerManagementSupported (readonly)

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

 

Returns:

  • (boolean)

    PowerManagementSupported



322
323
324
# File 'lib/Win32_CDROMDrive.rb', line 322

def PowerManagementSupported
  @PowerManagementSupported
end

- (string) RevisionLevel (readonly)

RevisionLevel プロパティは Win32 CD-ROM ドライブのファームウェア リビジョン レベルを示します。

Returns:

  • (string)

    RevisionLevel



327
328
329
# File 'lib/Win32_CDROMDrive.rb', line 327

def RevisionLevel
  @RevisionLevel
end

- (uint32) SCSIBus (readonly)

SCSIBus プロパティはディスク ドライブの SCSI バス番号を示します。

 

Returns:

  • (uint32)

    SCSIBus



334
335
336
# File 'lib/Win32_CDROMDrive.rb', line 334

def SCSIBus
  @SCSIBus
end

- (uint16) SCSILogicalUnit (readonly)

SCSILogicalUnit プロパティは、ディスク ドライブの SCSI 論理ユニット番号 (LUN) を示します。

 LUN 

Returns:

  • (uint16)

    SCSILogicalUnit



343
344
345
# File 'lib/Win32_CDROMDrive.rb', line 343

def SCSILogicalUnit
  @SCSILogicalUnit
end

- (uint16) SCSIPort (readonly)

SCSIPort プロパティはディスク ドライブの SCSI ポート番号を示します。

 

Returns:

  • (uint16)

    SCSIPort



350
351
352
# File 'lib/Win32_CDROMDrive.rb', line 350

def SCSIPort
  @SCSIPort
end

- (uint16) SCSITargetId (readonly)

SCSITargetId プロパティは Win32 CD-ROM ドライブの SCSI ID 番号を示します。

 

Returns:

  • (uint16)

    SCSITargetId



357
358
359
# File 'lib/Win32_CDROMDrive.rb', line 357

def SCSITargetId
  @SCSITargetId
end

- (uint64) Size (readonly)

サイズ
プロパティはディスク ドライブのサイズを示します。

Returns:

  • (uint64)

    Size



362
363
364
# File 'lib/Win32_CDROMDrive.rb', line 362

def Size
  @Size
end

- (string) Status (readonly)

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

 

Returns:

  • (string)

    Status



375
376
377
# File 'lib/Win32_CDROMDrive.rb', line 375

def Status
  @Status
end

- (uint16) StatusInfo (readonly)

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

 

Returns:

  • (uint16)

    StatusInfo



381
382
383
# File 'lib/Win32_CDROMDrive.rb', line 381

def StatusInfo
  @StatusInfo
end

- (string) SystemCreationClassName (readonly)

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

Returns:

  • (string)

    SystemCreationClassName



387
388
389
# File 'lib/Win32_CDROMDrive.rb', line 387

def SystemCreationClassName
  @SystemCreationClassName
end

- (string) SystemName (readonly)

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

Returns:

  • (string)

    SystemName



392
393
394
# File 'lib/Win32_CDROMDrive.rb', line 392

def SystemName
  @SystemName
end

- (Real64) TransferRate (readonly)

TransferRate プロパティは、CD-ROM ドライブの転送速度を示します。

 

Returns:

  • (Real64)

    TransferRate



399
400
401
# File 'lib/Win32_CDROMDrive.rb', line 399

def TransferRate
  @TransferRate
end

- (string) VolumeName (readonly)

VolumeName プロパティは Win32 CD-ROM ドライブのボリューム名を示します。

Returns:

  • (string)

    VolumeName



404
405
406
# File 'lib/Win32_CDROMDrive.rb', line 404

def VolumeName
  @VolumeName
end

- (string) VolumeSerialNumber (readonly)

VolumeSerialNumber プロパティは CD-ROM ドライブにあるメディアのボリューム シリアル番号を識別します。

 : A8C3-D032

Returns:

  • (string)

    VolumeSerialNumber



410
411
412
# File 'lib/Win32_CDROMDrive.rb', line 410

def VolumeSerialNumber
  @VolumeSerialNumber
end

Instance Method Details

- (uint32) Reset

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

Returns:

  • (uint32)


27
28
# File 'lib/Win32_CDROMDrive.rb', line 27

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)


19
20
# File 'lib/Win32_CDROMDrive.rb', line 19

def SetPowerState PowerState, Time
end