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

📄 wmicore.moff

📁 书中的主要程序文件。在打开例题的.dsw文件后,请读者在 tools菜单下的 Options 的 Directories 标签中选择 Executable files
💻 MOFF
📖 第 1 页 / 共 5 页
字号:
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("Defines the attachment of the NIC to the network."),
                Values{"NdisFddiTypeIsolated",
                        "NdisFddiTypeLocalA",
                        "NdisFddiTypeLocalB",
                        "NdisFddiTypeLocalAB",
                        "NdisFddiTypeLocalS",
                        "NdisFddiTypeWrapA",
                        "NdisFddiTypeWrapB",
                        "NdisFddiTypeWrapAB",
                        "NdisFddiTypeWrapS",
                        "NdisFddiTypeCWrapA",
                        "NdisFddiTypeCWrapB",
                        "NdisFddiTypeCWrapS",
                        "NdisFddiTypeThrough"},
                ValueMap{"1",
                        "2",
                        "3",
                        "4",
                        "5",
                        "6",
                        "7",
                        "8",
                        "9",
                        "10",
                        "11",
                        "12",
                        "13"},
		WmiDataId(1)]    uint32    NdisFddiAttachmentType;

//
//	This can be of the following type:
//
//		typedef enum _NDIS_FDDI_ATTACHMENT_TYPE
//	    {
//	        NdisFddiTypeIsolated = 1,
//	        NdisFddiTypeLocalA,
//	        NdisFddiTypeLocalB,
//	        NdisFddiTypeLocalAB,
//	        NdisFddiTypeLocalS,
//	        NdisFddiTypeWrapA,
//	        NdisFddiTypeWrapB,
//	        NdisFddiTypeWrapAB,
//	        NdisFddiTypeWrapS,
//	        NdisFddiTypeCWrapA,
//	        NdisFddiTypeCWrapB,
//	        NdisFddiTypeCWrapS,
//	        NdisFddiTypeThrough
//	    } NDIS_FDDI_ATTACHMENT_TYPE, *PNDIS_FDDI_ATTACHMENT_TYPE;
//
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf1403e-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI Upstream Node Long")]
class  MSNdis_FddiUpstreamNodeLong : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("The long address of the station above this NIC on the ring or zero if the address is unknown."),
		WmiDataId(1)]    MSNdis_NetworkAddress  NdisFddiUpstreamNodeLong;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf1403f-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI Downstream Node Long")]
class  MSNdis_FddiDownstreamNodeLong : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("The long address of the station below this NIC on the ring or zero if the address is unknown."),
		WmiDataId(1)]    MSNdis_NetworkAddress  NdisFddiDownstreamNodeLong;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf14040-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI Frame Errors")]
class  MSNdis_FddiFrameErrors : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("The number of frames detected in error by this NIC that have not been detected in error by another device on the ring."),
		WmiDataId(1)]    uint32    NdisFddiFrameErrors;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf14041-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI Frames Lost")]
class  MSNdis_FddiFramesLost : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("The number of times this NIC detected a format error during frame reception such that the frame was stripped."),
		WmiDataId(1)]    uint32    NdisFddiFramesLost;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf14042-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI Ring Management State")]
class  MSNdis_FddiRingManagmentState : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("Defines the current state of the Ring Management state machine."),
                Values{"NdisFddiRingIsolated",
                        "NdisFddiRingNonOperational",
                        "NdisFddiRingOperational",
                        "NdisFddiRingDetect",
                        "NdisFddiRingNonOperationalDup",
                        "NdisFddiRingOperationalDup",
                        "NdisFddiRingDirected",
                        "NdisFddiRingTrac"},
                ValueMap{"1",
                        "2",
                        "3",
                        "4",
                        "5",
                        "6",
                        "7",
                        "8"},
		WmiDataId(1)]    uint32    NdisFddiRingManagmentState;

//
//	This can be of the following type:
//
//		typedef enum _NDIS_FDDI_RING_MGT_STATE
//      {
//          NdisFddiRingIsolated = 1,
//          NdisFddiRingNonOperational,
//          NdisFddiRingOperational,
//          NdisFddiRingDetect,
//          NdisFddiRingNonOperationalDup,
//          NdisFddiRingOperationalDup,
//          NdisFddiRingDirected,
//          NdisFddiRingTrace
//      } NDIS_FDDI_RING_MGT_STATE, *PNDIS_FDDI_RING_MGT_STATE;
//
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf14043-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI LCT Failures")]
class  MSNdis_FddiLctFailures : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("The count of the consecutive times the link confidence test (LCT) has failed during connection management."),
		WmiDataId(1)]    uint32    NdisFddiLctFailures;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf14044-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI LEM Rejects")]
class  MSNdis_FddiLemRejects : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("The link error monitor (LEM) count of times that a link was rejected."),
		WmiDataId(1)]    uint32    NdisFddiLemRejects;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{acf14045-a61c-11d0-8dd4-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS FDDI LConnect State")]
class  MSNdis_FddiLConnectionState : MSNdis
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("Defines the state of this port's Physical Connection Management (PCM) state machine."),
                Values{"NdisFddiStateOff",
                        "NdisFddiStateBreak",
                        "NdisFddiStateTrace",
                        "NdisFddiStateConnect",
                        "NdisFddiStateNext",
                        "NdisFddiStateSignal",
                        "NdisFddiStateJoin",
                        "NdisFddiStateVerify",
                        "NdisFddiStateActive",
                        "NdisFddiStateMaintenance"},
                ValueMap{"1",
                        "2",
                        "3",
                        "4",
                        "5",
                        "6",
                        "7",
                        "8",
                        "9",
                        "10"},
		WmiDataId(1)]    uint32    NdisFddiLConnectionState;
//
//	This can be of the following type:
//
//		typedef enum _NDIS_FDDI_LCONNECTION_STATE
//      {
//          NdisFddiStateOff = 1,
//          NdisFddiStateBreak,
//          NdisFddiStateTrace,
//          NdisFddiStateConnect,
//          NdisFddiStateNext,
//          NdisFddiStateSignal,
//          NdisFddiStateJoin,
//          NdisFddiStateVerify,
//          NdisFddiStateActive,
//          NdisFddiStateMaintenance
//      } NDIS_FDDI_LCONNECTION_STATE, *PNDIS_FDDI_LCONNECTION_STATE;
//

};


///
///
/// 	NDIS status specific GUIDs
///
///


[WMI, Dynamic, Provider("WMIProv"), guid("{981f2d76-b1f3-11d0-8dd7-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Status Reset Start")]
class  MSNdis_StatusResetStart : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{981f2d77-b1f3-11d0-8dd7-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Status Reset End")]
class  MSNdis_StatusResetEnd  : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{981f2d7d-b1f3-11d0-8dd7-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Status Media Connect")]
class  MSNdis_StatusMediaConnect : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{981f2d7e-b1f3-11d0-8dd7-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Status Media Disconnect")]
class  MSNdis_StatusMediaDisconnect : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
};

[WMI, Dynamic, Provider("WMIProv"), guid("{981f2d84-b1f3-11d0-8dd7-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Status Media Specific Indication")]
class  MSNdis_StatusMediaSpecificIndication  : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("Number of bytes for media specific status indication"),
		WmiDataId(1)]    uint32    NumberElements;
    [read,
		Description("Media specific status information."),
		WmiDataId(2), WmiSizeIs("NumberElements")]    uint8    NdisStatusMediaSpecificIndication[];
};

[WMI, Dynamic, Provider("WMIProv"), guid("{981f2d85-b1f3-11d0-8dd7-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Status Link Speed Change")]
class  MSNdis_StatusLinkSpeedChange  : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
		Description("New inbound and outbound link speeds for the adapter."),
		WmiDataId(1)]    MSNdis_NetworkLinkSpeed	NdisStatusLinkSpeedChange;
};

[WMI, Dynamic, Provider("WMIProv"), 
 guid("{5413531c-b1f3-11d0-d78d-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Protocol Bind Notification")]
class  MSNdis_StatusProtocolBind  : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
     Description("Name of transport bound"),
     WmiDataId(1)]    string Transport;
};

[WMI, Dynamic, Provider("WMIProv"), 
 guid("{6e3ce1ec-b1f3-11d0-d78d-00c04fc3358c}"),
 locale("MS\\0x409"),
 WmiExpense(1),
 Description("NDIS Protocol Unbind Notification")]
class  MSNdis_StatusProtocolUnbind  : WMIEvent
{
	[key, read]
	string		InstanceName;
	
	[read]
	boolean		Active;
	
    [read,
     Description("Name of transport unbound"),
     WmiDataId(1)]    string Transport;
};

//
// Keyboard and Mouse

[abstract]
class MSKeyboard
{
};

class MSMouse
{
};

[Dynamic, Provider("WMIProv"),
 WMI,
 Description("Keyboard port driver information"),
 guid("{4731F89A-71CB-11d1-A52C-00A0C9062910}"),
 GuidName1("KEYBOARD_PORT_WMI_STD_DATA_GUID"),
 HeaderName("KEYBOARD_PORT_WMI_STD_DATA"),
 locale("MS\\0x409")]
class MSKeyboard_PortInformation : MSKeyboard
{
    [key, read]
     string InstanceName;
    [read] boolean Active;

    [WmiDataId(1),
     read,
     Values{"I8042 Connector"
             "Serial Connector",
             "USB Connector" },
     ValueMap{"0",
             "1",
             "2" },
     DefineValues{"KEYBOARD_PORT_WMI_STD_I8042",
                  "KEYBOARD_PORT_WMI_STD_SERIAL",
                  "KEYBOARD_PORT_WMI_STD_USB"},
     Description("How the keyboard is connected to the computer")]
    uint32 ConnectorType;

    [WmiDataId(2),
     read,
     Description("The DataQueueSize property indicates the size of the data queue.")]
    uint32   DataQueueSize;

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

    [WmiDataId(4),
     read,
     Description("The NumberOfFunctionKeys property indicates the number of function keys on the keyboard.")]
    uint32   FunctionKeys;

    [WmiDataId(5),
     read,
     Description("The NumberOfIndicators property indicates the number of indicator leds on the keyboard.")]
    uint32   Indicators;
};

[Dynamic, Provider("WMIProv"),
 WMI,
 Description("Mouse port driver information"),
 guid("{4731F89C-71CB-11d1-A52C-00A0C9062910}"),
 GuidName1("POINTER_PORT_WMI_STD_DATA_GUID"),
 HeaderName("POINTER_PORT_WMI_STD_DATA"),
 locale("MS\\0x409")]
class MSMouse_PortInformation : MSMouse
{
    [key, read]
     string InstanceName;
    [read] boolean Active;

    [WmiDataId(1),
     read,
     Values{"I8042 Connector"
             "Serial Connector",
             "USB Connector" },
     ValueMap{"0",
             "1",
             "2" },
     DefineValues{"POINTER_PORT_WMI_STD_I8042",
                  "POINTER_PORT_WMI_STD_SERIAL",
                  "POINTER_PORT_WMI_STD_USB"},
     Description("How the mouse is connected to the computer")]
    uint32 ConnectorType;

    [WmiDataId(2),
     read,
     Description("The DataQueueSize property indicates the size of the data queue.")]
    uint32   DataQueueSize;

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

    [WmiDataId(4),
     read,
     Description("The NumberOfButtons property indicates the number of buttons on the pointing device.")]
    uint32   Buttons;

    [WmiDataId(5),
     read,
     Values{"Standard Mouse",
          "Standard Pointer",
          "Standard Absolute Pointer",

⌨️ 快捷键说明

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