summaryrefslogtreecommitdiff
path: root/general/toaster/toastDrv/kmdf/func/featured/toaster.mof
blob: c828eb4bcc6196ec6065e00386857f757d7b8dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#PRAGMA AUTORECOVER

[Dynamic, Provider("WMIProv"),
 WMI,
 Description("Toaster driver information"),
 guid("{BBA21300-6DD3-11d2-B844-00C04FAD5171}"),
 locale("MS\\0x409")]
class ToasterDeviceInformation
{
    [key, read]
    string InstanceName;

    [read]
    boolean Active;

    [WmiDataId(1),
     read,
     WmiEnum{"0=I8042 Connector"
             "1=Serial Connector",
             "2=Parallel Connector",
             "3=USB Connector" },
     Description("How the toaster is connected to the computer")]
    uint32 ConnectorType;

    [WmiDataId(2),
     read,
     Description("This indicates the capacity in Kilo Watts of the toaster device.")]
    uint32 Capacity;

    [WmiDataId(3),
     read,
     Description("Number of errors that occurred on this device")]
    uint32 ErrorCount;

    [WmiDataId(4),
     read,
     Description("Indicates the number of controls on the toaster device.")]
    uint32 Controls;

    [WmiDataId(5),
     read,
     write,
     Description("The DebugPrintLevel property indicates the debug output level of toaster device.")]
    uint32 DebugPrintLevel;

    [WmiDataId(6),
     read,
     Description("The Toaster Model Name.")]
    string ModelName;

};


[WMI, Dynamic, Provider("WMIProv"),
 guid("{01CDAFF1-C901-45b4-B359-B5542725E29C}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("Notify Toaster Arrival")]
class ToasterNotifyDeviceArrival : WMIEvent
{
    [key, read]
    string InstanceName;

    [read]
    boolean Active;

    [read,
     Description("Device Model Name"),
     WmiDataId(1)]
    string ModelName;
};


[WMI,
 Dynamic,
 Provider("WmiProv"),
 Locale("MS\\0x409"),
 Description("WMI method") : amended,
 guid("CAAE7D9F-ACF7-4737-A4E9-01C29D3FE194")]
class ToasterControl
{
    [key, read]
    string InstanceName;

    [read]
    boolean Active;

    [WmiDataId(1),
     read,
     write,
     Description("Toaster Control Property")]
    uint32 ControlValue;

    [Implemented, WmiMethodId(1)]
    void ToasterControl1([in]  uint32 InData,
                         [out] uint32 OutData);

    [Implemented, WmiMethodId(2)]
    void ToasterControl2([in]  uint32 InData1,
                         [in]  uint32 InData2,
                         [out] uint32 OutData);

    [Implemented, WmiMethodId(3)]
    void ToasterControl3([in]  uint32 InData1,
                         [in]  uint32 InData2,
                         [out] uint32 OutData1,
                         [out] uint32 OutData2);

};