IMDSPStorageGlobals 接口 (mswmdm.h)

IMDSPStorage 接口获取的 IMDSPStorageGlobals 接口提供了检索有关存储介质的全局信息的方法。 这可能包括可用空间量、介质的序列号等。

继承

IMDSPStorageGlobals 接口继承自 IUnknown 接口。 IMDSPStorageGlobals 还具有以下类型的成员:

方法

IMDSPStorageGlobals 接口包含以下方法。

 
IMDSPStorageGlobals::GetCapabilities

GetCapabilities 方法检索与此接口的实例关联的存储介质的功能。
IMDSPStorageGlobals::GetDevice

GetDevice 方法检索指向已装载与此接口关联的存储介质的设备的指针。
IMDSPStorageGlobals::GetRootStorage

GetRootStorage 方法检索指向存储介质根存储的 IMDSPStorage 接口的指针。
IMDSPStorageGlobals::GetSerialNumber

GetSerialNumber 方法检索唯一标识存储介质的序列号。 必须针对受保护的内容传输实现此方法,否则它是可选的。 有关详细信息,请参阅必需接口和可选接口。
IMDSPStorageGlobals::GetStatus

GetStatus 方法检索存储介质的当前状态。
IMDSPStorageGlobals::GetTotalBad

GetTotalBad 方法检索存储介质上不可用空间的总量(以字节为单位)。 (IMDSPStorageGlobals.GetTotalBad)
IMDSPStorageGlobals::GetTotalFree

GetTotalFree 方法检索存储介质上的总可用空间(以字节为单位)。
IMDSPStorageGlobals::GetTotalSize

GetTotalSize 方法检索与此 IMDSPStorageGlobals 接口关联的介质的总大小(以字节为单位)。
IMDSPStorageGlobals::Initialize

Initialize 方法格式化存储介质。 (IMDSPStorageGlobals.Initialize)

要求

要求
目标平台 Windows
标头 mswmdm.h

另请参阅

IMDSPStorage 接口

服务提供程序的接口