www.pudn.com > ComputerInformation.zip > SystemHDisk.idl
// SystemHDisk.idl : IDL source for SystemHDisk.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (SystemHDisk.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(5F3FE68C-CB10-11D2-8C78-000000000000),
dual,
helpstring("IHDiskInformation Interface"),
pointer_default(unique)
]
interface IHDiskInformation : IDispatch
{
[propget, id(1), helpstring("property NumberOfPartitions")] HRESULT NumberOfPartitions([out, retval] long *pVal);
[propget, id(2), helpstring("property Bootable")] HRESULT Bootable([out, retval] VARIANT *pVal);
[propget, id(3), helpstring("property Letter")] HRESULT Letter([out, retval] VARIANT *pVal);
[propget, id(4), helpstring("property PartitionType")] HRESULT PartitionType([out, retval] VARIANT *pVal);
[propget, id(5), helpstring("property PartitionNumber")] HRESULT PartitionNumber([out, retval] VARIANT *pVal);
[propget, id(6), helpstring("property PartitionLength")] HRESULT PartitionLength([out, retval] VARIANT *pVal);
[propget, id(7), helpstring("property HiddenSectors")] HRESULT HiddenSectors([out, retval] VARIANT *pVal);
[id(8), helpstring("method GetHDiskInformation")] HRESULT GetHDiskInformation(long *plNumberOfPartitions, VARIANT *pbstrDriveLetterArr, VARIANT *pbBootableArr, VARIANT *pbstrTypeArr, VARIANT *plPartitionNumberArr, VARIANT *plLengthArr, VARIANT *plHiddenSectorsArr);
};
[
uuid(5F3FE680-CB10-11D2-8C78-000000000000),
version(1.0),
helpstring("SystemHDisk 1.0 Type Library")
]
library SYSTEMHDISKLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(5F3FE68D-CB10-11D2-8C78-000000000000),
helpstring("HDiskInformation Class")
]
coclass HDiskInformation
{
[default] interface IHDiskInformation;
};
};