📄 8.2 windows management instrumentation.htm
字号:
Compiler,如图8-6所示。</FONT></P>
<P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000
size=2>因为您已经将MOF编译器设定为Visual
Studio的一个工具,所以您可以开启任何MOF文件并编译它。由于已经核取了Use Output
Window核取方块,所以任何的编译错误皆会显示在Output视窗中。</FONT></P>
<P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000
size=2>您可以在Output视窗中双按显示错讯息的内容,Visual
Studio会自动地移到原始码中产生错误的那一行。</FONT></P>
<P><BR style="LINE-HEIGHT: 25px"> </P>
<CENTER style="LINE-HEIGHT: 25px">
<P><INPUT id=6 style="LINE-HEIGHT: 25px" type=image height=360
width=581 src="8.2 Windows Management Instrumentation.files/8-6.gif"
border=0 onclick="imgclick"></P></CENTER>
<CENTER style="LINE-HEIGHT: 25px">
<TABLE style="LINE-HEIGHT: 25px" border=0>
<TBODY style="LINE-HEIGHT: 25px">
<TR style="LINE-HEIGHT: 25px">
<TD style="LINE-HEIGHT: 25px" align=middle><FONT
style="LINE-HEIGHT: 25px" face=arial color=#000000
size=2><FONT style="LINE-HEIGHT: 25px" face=arial
color=#3e80d7 size=2><B
style="LINE-HEIGHT: 25px"> 图8-6 </B></FONT>将MOF
Compiler加至Visual Studio
Tools功能表之Customize对话方块的Tools页签</FONT></TD></TR></TBODY></TABLE></CENTER>
<P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000
size=2>在您编译TimeServiceStart.mof文件后,请执行CIM
Studio并开启CIMV2命名空间。此时您应该会在以下的节点中看到新的类别。如果CIM
Studio已经开启,您就必须更新显示内容。</FONT></P>
<DIV style="LINE-HEIGHT: 25px; BACKGROUND-COLOR: #d7d7d7"><FONT
style="LINE-HEIGHT: 25px" face=Arial size=3><PRE style="LINE-HEIGHT: 25px">CIM_ManagedSystemElement\CIM_LogicalElement\CIM_Service\ <BR> Win32_BaseService\Win32_Service\Richter_TimeServiceProvider</PRE></FONT></DIV>
<P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000
size=2>图8-7显示了CIM
Studio应该显示的内容。反白的部份为新的PipeName属性,您可以容易地察看这个类别的部份。</FONT></P>
<P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000
size=2>为了存放这个新的Richter_TimeServiceProvider类别,提供者必须被定义并且与类别定义关联。这就是Windows
Management Service(WinMgmt.exe)呼叫提供者以取得实例资料的方法。建立提供者的最简单方法即是让CIM
Studio工具为您产生DLL的原始码。</FONT></P>
<P><FONT style="LINE-HEIGHT: 25px" face=arial color=#3e72d7
size=4><B style="LINE-HEIGHT: 25px">使用WMI Provider Code
Generator精灵<BR style="LINE-HEIGHT: 25px"> </B></FONT></P>
<P><FONT style="LINE-HEIGHT: 25px" face=arial color=#000000
size=2>想要为Richter_TimeServiceProvider类别产生提供者之DLL,您必须先在左窗格中透过左边的核取方块选择类别名称(如图8-7所示),然后在CIM
Studio上面双按Provider Code Generator按钮,以呼叫WMI Provider Code
Generator精灵。</FONT></P>
<P><BR style="LINE-HEIGHT: 25px"> </P>
<CENTER style="LINE-HEIGHT: 25px">
<P><INPUT id=7 style="LINE-HEIGHT: 25px" type=image height=422
width=610 src="8.2 Windows Management Instrumentation.files/8-7.gif"
border=0 onclick="imgclick"></P></CENTER>
<CENTER style="LINE-HEIGHT: 25px">
<P></P>
<P class=content_page><A
href="http://www.acejoy.com/Html/Article/network/5920061023091939.html">上一页</A> <A
href="http://www.acejoy.com/Html/Article/network/5920061023091939.html">[1]</A> <STRONG><FONT
color=#ff0033>[2]</FONT></STRONG> <A
href="http://www.acejoy.com/Html/Article/network/5920061023091939_P3.html">[3]</A> <A
href="http://www.acejoy.com/Html/Article/network/5920061023091939_P4.html">[4]</A> <A
href="http://www.acejoy.com/Html/Article/network/5920061023091939_P3.html">下一页</A></P></DIV><BR><BR></CENTER></TD></TR></TBODY></TABLE>
<TABLE style="CLEAR: both" cellSpacing=0 cellPadding=0 width="97%">
<TBODY>
<TR>
<TD align=right>
<TABLE>
<TBODY>
<TR>
<TD>阅读:<SPAN id=news_hits></SPAN>
<SCRIPT
src="8.2 Windows Management Instrumentation.files/GetHits.htm"
type=text/JavaScript></SCRIPT>
次<BR>录入:<A
href="http://www.acejoy.com/User/Info.Asp?UserName=winston">winston</A><BR><BR></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=right>【 <A
href="http://www.acejoy.com/Comment.asp?ChannelID=1&Action=Write&InfoID=59">评论</A>
】 【 <A
href="http://www.acejoy.com/User/SendMail.asp?Title=Windows2000 服务器端应用程序开发设计指南-Windows Management Instrumentation"
target=_blank>推荐</A> 】 【 <A href="javascript:window.print()">打印</A>
】 </TD></TR></TBODY></TABLE>
<TABLE style="CLEAR: both" width="97%" align=center>
<TBODY>
<TR>
<TD>上一篇:<A
title="标题:Windows2000 服务器端应用程序开发设计指南-效能监视 作者:Jeffrey Richter Jason D. Clark 更新:2006-10-17 12:32:58 点击:648"
href="http://www.acejoy.com/Html/Article/network/5820061017123258.html">Windows2000
服务器端应用程序开发设计指南-效能监视</A><BR>下一篇:<A
title="标题:Windows2000 服务器端应用程序开发设计指南-信任成员的管理(1) 作者:Jeffrey Richter Jason D. Clark 更新:2006-10-26 9:29:05 点击:409"
href="http://www.acejoy.com/Html/Article/network/6020061026092905.html">Windows2000
服务器端应用程序开发设计指南-信任成员的管理(1)</A> </TD></TR></TBODY></TABLE></TD>
<TD class=mr></TD></TR></TBODY></TABLE></DIV></DIV>
<DIV class=mframe>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
<TBODY>
<TR>
<TD class=tl></TD>
<TD class=tm><SPAN class=tt>相关新闻</SPAN> </TD>
<TD class=tr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
<TBODY>
<TR>
<TD class=ml></TD>
<TD class=mm>
<TABLE height="100%" cellSpacing=5 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top>
<SCRIPT language=javascript
src="8.2 Windows Management Instrumentation.files/GetCorrelative.htm"></SCRIPT>
</TD></TR></TBODY></TABLE></TD>
<TD class=mr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
<TBODY>
<TR>
<TD class=tl></TD>
<TD class=tm><SPAN class=tt>本文评论</SPAN> </TD>
<TD class=tr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
<TBODY>
<TR>
<TD class=ml></TD>
<TD class=mm>
<P> </P>
<TABLE height="100%" cellSpacing=5 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top>
<SCRIPT language=javascript
src="8.2 Windows Management Instrumentation.files/Comment.htm"></SCRIPT>
</TD></TR></TBODY></TABLE></TD>
<TD class=mr></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center>
<TBODY>
<TR>
<TD class=ml></TD>
<TD class=mm></TD>
<TD class=mr></TD></TR></TBODY></TABLE></DIV>
<TABLE id=footer cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR style="LINE-HEIGHT: 130%" align=middle>
<TD height=23> <A
href='javascript:window.external.addFavorite("http://www.acejoy.com","ACE开发者")'><FONT
color=#000000>加入收藏</FONT></A> - <A
href="http://www.acejoy.com/Help.asp?Action=aboutweb" target=_blank><FONT
color=#000000>关于本站</FONT></A> - <A class=Bottom
href="http://www.acejoy.com/Help.asp?Action=Copyright" target=_blank><FONT
color=#000000>版权申明</FONT></A> - <A class=Bottom
href="http://www.acejoy.com/Help.asp?Action=aboutweb" target=_blank><FONT
color=#000000>联系站长</FONT></A> - <A class=Bottom
href="http://www.acejoy.com/LinkSite.asp" target=_blank><FONT
color=#000000>友情链接</FONT></A> </TD></TR>
<TR align=middle>
<TD height=23>Copyright© 2004-2006 <A
href="http://www.acejoy.com/">http://www.acejoy.com/</A> .All Rights
Reserved <A href="http://www.miibeian.gov.cn/" target=_blank>京ICP备06055248
</A>
<SCRIPT language=JavaScript
src="8.2 Windows Management Instrumentation.files/stat.htm"
charset=gb2312></SCRIPT>
</TD></TR></TBODY></TABLE>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV><!--Powered by:CreateLive CMS Version 3.1(www.acejoy.com) CreateDate:2007-3-4 10:50:39--></DIV></DIV></DIV></DIV></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -