⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filter.mof

📁 This a sample Plug and Play filter driver that provides WMI data blocks. Typically, driver writers w
💻 MOF
📖 第 1 页 / 共 3 页
字号:
};

[WMI, 
 Dynamic,
 Provider("WmiProv"),
 Description("Description of Sample Class 4") : amended,
 DisplayName("Sample Class 4") : amended,
 Locale("MS\\0x409"),
 guid("{15D851F4-6539-11d1-A529-00A0C9062910}")]
class Vendor_SampleClass4
{
    [key, read] 
     string InstanceName;
    [read] boolean Active;

    [WmiDataId(1),
     read,
     DisplayName("Count of Elements") : amended,
     Description("Number of elements in array") : amended
    ] uint32 Count;

    [WmiDataId(2),
     read, write,
     DisplayName("Data") : amended,
     Description("Variable length array of embedded classes. Count specifies the number of elements in the array") : amended,
     WmiSizeIs("Count")] Vendor_EC1 EmbeddedClass1[];
    
};

[WMI, 
 Dynamic,
 Provider("WmiProv"),
 DisplayName("Sample Class 5") : amended,
 Description("Description of Sample Class 5") : amended,
 Locale("MS\\0x409"),
 guid("{15D851F5-6539-11d1-A529-00A0C9062910}")]
class Vendor_SampleClass5
{
    [key, read] 
     string InstanceName;
    [read] boolean Active;

    [WmiDataId(1),
     read, write,
     DisplayName("Data") : amended,
     Description("Embedded class data") : amended
    ] Vendor_EC2 EmbeddedClass2;
    
};


[WMI, 
 Dynamic,
 Provider("WmiProv"),
 Description("Description of Sample Class 6") : amended,
 DisplayName("Sample Class 6") : amended,
 Locale("MS\\0x409"),
 guid("{15D851F6-6539-11d1-A529-00A0C9062910}")]
class Vendor_SampleClass6
{
    [key, read] 
     string InstanceName;
    [read] boolean Active;

    [WmiDataId(1),
     read, write,
     DisplayName("Data") : amended,
     Description("Fixed length array of 4 embedded classes")
    ] Vendor_EC2 EmbeddedClass2[4];
    
};

[WMI, 
 Dynamic,
 Provider("WmiProv"),
 Description("Description of Sample Class 7") : amended,
 DisplayName("Sample Class 7") : amended,
 Locale("MS\\0x409"),
 guid("{15D851F7-6539-11d1-A529-00A0C9062910}")]
class Vendor_SampleClass7
{
    [key, read] 
     string InstanceName;
    [read] boolean Active;

    [WmiDataId(1),
     read, 
     DisplayName("Count of Elements") : amended,
     Description("Number of elements in array") : amended
    ] uint32 Count;
    [WmiDataId(2),
     read, write,
     DisplayName("Data") : amended,
     Description("Variable length array of embedded classes. Count specifies the number of elements in the array") : amended,
     WmiSizeIs("Count")] Vendor_EC2 EmbeddedClass2[];
    
};


[WMI, 
 Dynamic,
 Provider("WmiProv"),
 Locale("MS\\0x409"),
 DisplayName("Get Set Data") : amended,
 Description("Methods that can get and set data") : amended,
 guid("{15D851F8-6539-11d1-A529-00A0C9062910}")]
class Vendor_GetSetData
{
    [key, read] 
     string InstanceName;
    [read] boolean Active;

    [Implemented,
     Description("Change the contents of EC1") : amended,
     WmiMethodId(1)] void SetEC1([in, 
                                  Description("Index of block of data to fire") : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"} : amended
                                 ] uint32 BlockIndex,
                                 [in] uint32 pad,
                                 [in] boolean Xboolean,
                                 [in] uint8 Xuint8,
                                 [in] uint16 Xuint16,
                                 [in] uint32 Xuint32,
                                 [in] uint64 Xuint64,
                                 [in] sint8 Xint8,
                                 [in] sint16 Xint16,
                                 [in] sint32 Xint32,
                                 [in] sint64 Xint64,
                                 [in] datetime Xdatetime);
                           
    [Implemented,
     Description("Change the contents of EC2") : amended,
     WmiMethodId(2)] void SetEC2([in, 
                                  Description("Index of block of data to fire") : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"} : amended
                                 ] uint32 BlockIndex,
                                 [in] uint32 pad,
                                 [in] boolean Xboolean[8],
                                 [in] uint8 Xuint8[8],
                                 [in] uint16 Xuint16[4],
                                 [in] uint32 Xuint32[2],
                                 [in] uint64 Xuint64,
                                 [in] sint8 Xint8[8],
                                 [in] sint16 Xint16[4],
                                 [in] sint32 Xint32[2],
                                 [in] sint64 Xint64,
                                 [in] datetime Xdatetime);
                           
    [Implemented,
     Description("Get the contents of EC1") : amended,
     WmiMethodId(3)] void GetEC1([in, 
                                  Description("Index of block of data to fire") : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"} : amended
                                 ] uint32 BlockIndex,
                                 [out] boolean Xboolean,
                                 [out] uint8 Xuint8,
                                 [out] uint16 Xuint16,
                                 [out] uint32 Xuint32,
                                 [out] uint64 Xuint64,
                                 [out] sint8 Xint8,
                                 [out] sint16 Xint16,
                                 [out] sint32 Xint32,
                                 [out] sint64 Xint64,
                                 [out] datetime Xdatetime);
                           
    [Implemented,
     Description("Get the contents of EC2") : amended,
     WmiMethodId(4)] void GetEC2([in, 
                                  Description("Index of block of data to fire") : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"}  : amended
                                 ] uint32 BlockIndex,
                                 [out] boolean Xboolean[8],
                                 [out] uint8 Xuint8[8],
                                 [out] uint16 Xuint16[4],
                                 [out] uint32 Xuint32[2],
                                 [out] uint64 Xuint64,
                                 [out] sint8 Xint8[8],
                                 [out] sint16 Xint16[4],
                                 [out] sint32 Xint32[2],
                                 [out] sint64 Xint64,
                                 [out] datetime Xdatetime);
                           
    [Implemented,
     Description("Cause driver to update its registration to remove Vendor_SampleClass7")  : amended,
     WmiMethodId(5)] void DisableSampleClass7();

    [Implemented,
     Description("Cause driver to update its registration to include Vendor_SampleClass7")  : amended,
     WmiMethodId(6)] void EnableSampleClass7();

    [Implemented, 
     Description("Change the contents of Ec1")  : amended,
     WmiMethodId(7)] void SetEC1AsEc([in,
                                  Description("Index of block of data to fire")  : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"} : amended
                                     ] uint32 BlockIndex,
                                     [in] Vendor_EC1 Ec1
                                    );
                           
    [Implemented,
     Description("Change the contents of Ec2")  : amended,
     WmiMethodId(8)] void SetEC2AsEc([in, 
                                  Description("Index of block of data to fire") : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"}  : amended
                                     ] uint32 BlockIndex,
                                     [in] Vendor_EC2 Ec2);
                           
    [Implemented,
     Description("Get the contents of Ec1")  : amended,
     WmiMethodId(9)] void GetEC1AsEc([in, 
                                  Description("Index of block of data to fire") : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"}  : amended
                                     ] uint32 BlockIndex,
                                     [out] Vendor_EC1 Ec1);
                           
    [Implemented,
     Description("Get the contents of Ec2") : amended,
     WmiMethodId(10)] void GetEC2AsEc([in, 
                                  Description("Index of block of data to fire") : amended,
                                 Values{"0", "1", "2", "3"},
                                 ValueMap{"Block 1",
                                              "Block 2",
                                              "Block 3",
                                              "Block 4"} : amended
                                     ] uint32 BlockIndex,
                                      [out] Vendor_EC2 Ec2);

    [Implemented,
     Description("Cause driver to unregister device with WMI") : amended,
     WmiMethodId(11)] void UnregisterFromWmi();

};

[WMI, 
 Dynamic,
 Provider("WmiProv"),
 Locale("MS\\0x409"),
 Description("Event containing data") : amended,
 guid("{15D851E1-6539-11d1-A529-00A0C9062910}")]
class Vendor_EventClass1 : WmiEvent
{
    [key, read] 
     string InstanceName;
    [read] boolean Active;

    [WmiDataId(1),
     read, write, 
     DisplayName("BOOLEAN") : amended,
     Description("boolean data") : amended
    ] boolean Xboolean;

    [WmiDataId(2),
     read, write,
     DisplayName("UCHAR") : amended,
     Description("unsigned character data") : amended
    ] uint8 Xuint8;

    [WmiDataId(3),
     read, write,
     DisplayName("USHORT") : amended,
     Description("unsigned short data") : amended
    ] uint16 Xuint16;

    [WmiDataId(4),
     read, write,
     DisplayName("ULONG") : amended,
     Description("unsigned long data") : amended
    ] uint32 Xuint32;

    [WmiDataId(5),
     read, write,
     DisplayName("ULONGLONG") : amended,
     Description("unsigned long long data") : amended
    ] uint64 Xuint64;

    [WmiDataId(6),
     read, write,
     DisplayName("CHAR") : amended,
     Description("signed byte data") : amended
    ] sint8 Xint8;

    [WmiDataId(7),
     read, write,
     DisplayName("SHORT") : amended,
     Description("singed short data") : amended
    ] sint16 Xint16;

    [WmiDataId(8),
     read, write,
     DisplayName("LONG") : amended,
     Description("singed long data") : amended
    ] sint32 Xint32;

    [WmiDataId(9),
     read, write,
     DisplayName("LONGLONG") : amended,
     Description("signed long long data") : amended
    ] sint64 Xint64;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -