📄 easywmilibrary.aspx.htm
字号:
<div class="MI" id="Section57"><a href="http://www.codeproject.com/KB/recipes/">Algorithms & Recipes</a></div>
<div class="MI" id="Section64"><a href="http://www.codeproject.com/KB/bugs/">Bugs & Workarounds</a></div>
<div class="MI" id="Section79"><a href="http://www.codeproject.com/KB/collections/">Collections</a></div>
<div class="MI" id="Section56"><a href="http://www.codeproject.com/KB/security/">Cryptography & Security</a></div>
<div class="MI" id="Section50"><a href="http://www.codeproject.com/KB/datetime/">Date and Time</a></div>
<div class="MI" id="Section52"><a href="http://www.codeproject.com/KB/DLL/">DLLs & Assemblies</a></div>
<div class="MI" id="Section80"><a href="http://www.codeproject.com/KB/exception/">Exception Handling</a></div>
<div class="MI" id="Section81"><a href="http://www.codeproject.com/KB/locale/">Localisation</a></div>
<div class="MI" id="Section53"><a href="http://www.codeproject.com/KB/macros/">Macros and Add-ins</a></div>
<div class="MI" id="Section54"><a href="http://www.codeproject.com/KB/tips/">Programming Tips</a></div>
<div class="MI" id="Section55"><a href="http://www.codeproject.com/KB/string/">String handling</a></div>
<div class="MI" id="Section58"><a href="http://www.codeproject.com/KB/threads/">Threads, Processes & IPC</a></div>
<div class="MI" id="Section59"><a href="http://www.codeproject.com/KB/winhelp/">WinHelp / HTMLHelp</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chapterId=10" onclick="return ToggleMenu('Chapter10');">Graphics / Design</a></div>
<div class="MenuSectionBlock" id="Chapter10" style="display: none;">
<div class="MI" id="Section40"><a href="http://www.codeproject.com/KB/expression/">Expression</a></div>
<div class="MI" id="Section114"><a href="http://www.codeproject.com/KB/usability/">Usability</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chapterId=11" onclick="return ToggleMenu('Chapter11');">Development Lifecycle</a></div>
<div class="MenuSectionBlock" id="Chapter11" style="display: none;">
<div class="MI" id="Section51"><a href="http://www.codeproject.com/KB/debug/">Debug Tips</a></div>
<div class="MI" id="Section39"><a href="http://www.codeproject.com/KB/architecture/">Design and Architecture</a></div>
<div class="MI" id="Section112"><a href="http://www.codeproject.com/KB/install/">Installation</a></div>
<div class="MI" id="Section41"><a href="http://www.codeproject.com/KB/work/">Work Issues</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chapterId=7" onclick="return ToggleMenu('Chapter7');">General Reading</a></div>
<div class="MenuSectionBlock" id="Chapter7" style="display: none;">
<div class="MI" id="Section60"><a href="http://www.codeproject.com/KB/books/">Book Chapters</a></div>
<div class="MI" id="Section61"><a href="http://www.codeproject.com/KB/book-reviews/">Book Reviews</a></div>
<div class="MI" id="Section109"><a href="http://www.codeproject.com/KB/hardware-review/">Hardware Reviews</a></div>
<div class="MI" id="Section63"><a href="http://www.codeproject.com/KB/interviews/">Interviews</a></div>
<div class="MI" id="Section65"><a href="http://www.codeproject.com/KB/showcase/">Product Showcase</a></div>
<div class="MI" id="Section62"><a href="http://www.codeproject.com/KB/scrapbook/">Scrapbook</a></div>
</div>
</div>
<br>
<div class="MenuCat">Feature Zones</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/kb/showcase/">Product Showcase</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/Install">Install</a></div>
<br>
<iframe src="EasyWMILibrary.aspx_files/ServeHTML.htm" border="0" frameborder="0" height="600" scrolling="no" width="160"></iframe>
<img src="EasyWMILibrary.aspx_files/t.gif" alt="" height="1" width="160">
</td>
<td class="ArticlePane" valign="top">
<table class="SearchHeaderBar" cellspacing="0" width="100%">
<tbody><tr>
<td style="white-space: nowrap; width: 60%;" align="right" valign="middle">
<form method="get" action="/info/search.aspx" name="Search" style="margin: 0pt;">
<b>Search </b>
<input class="SmallText" name="artkw" style="width: 200px;">
<select class="SmallText" style="font-weight: bold;" name="sbo">
<option value="kw">Articles</option>
<!--<option value="au">Authors</option>-->
<option value="fm">Messages</option>
</select>
<input class="SmallText" style="font-weight: bold;" value=" Go! " type="submit">
</form>
</td>
<td class="TinyText" style="white-space: nowrap;">
<a href="http://www.codeproject.com/info/search.aspx">Advanced Search</a><br>
<a href="http://www.codeproject.com/script/Content/SiteMap.aspx">Sitemap</a>
</td>
</tr>
</tbody></table>
<span id="ctl00_ResultMessage"></span>
<div id="ctl00_ArtDiv">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr valign="top">
<td valign="top">
<table border="0" cellpadding="3" cellspacing="1" width="1">
<tbody><tr class="smalltext" valign="middle">
<td style="white-space: nowrap;">
<img src="EasyWMILibrary.aspx_files/print.gif" style="border: 0px none ; vertical-align: middle;" alt="print" height="16" width="16">
<a id="ctl00_ArticleHeaderLinks_PrintLnk" href="http://www.codeproject.com/KB/dotnet/EasyWMILibrary.aspx?display=Print">Print</a>
</td>
<td style="white-space: nowrap;">
<img src="EasyWMILibrary.aspx_files/broken.gif" style="border: 0px none ; vertical-align: middle;" alt="Broken Article?" height="16" width="16">
<a id="ctl00_ArticleHeaderLinks_BrokenLnk" href="http://www.codeproject.com/script/Articles/Report.aspx?aid=21971">Broken Article?</a>
</td>
<td style="white-space: nowrap;">
<img id="ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkImg" src="EasyWMILibrary.aspx_files/link.png" style="border: 0px none ; height: 16px; width: 16px; vertical-align: middle;">
<a id="ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkLnk" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?&obid=21971&obtid=2">Add Bookmark</a>
<span id="ctl00_ArticleHeaderLinks_ArticleBmk_Message"></span>
</td>
<td style="white-space: nowrap;">
<img src="EasyWMILibrary.aspx_files/discuss.gif" style="border: 0px none ; vertical-align: middle;" alt="Discuss" height="16" width="15">
<a href="#_comments">Discuss</a>
</td>
<td style="white-space: nowrap;">
<img src="EasyWMILibrary.aspx_files/mail.gif" style="border: 0px none ; vertical-align: middle;" alt="Recommend Article" height="16" width="16">
<a id="ctl00_ArticleHeaderLinks_Recommend" href="http://www.codeproject.com/script/common/TellFriend.aspx?obtid=2&obid=21971">Send to a friend</a>
</td>
</tr>
</tbody></table>
</td>
<td align="right">
<table>
<tbody><tr>
<td style="white-space: nowrap;" class="SmallText" align="right">
<span id="ctl00_ArticleRating_VoteLabel">21 votes for this Article.</span>
</td>
<td>
<table border="1" cellpadding="0" cellspacing="0">
<tbody><tr>
<td bgcolor="White" height="5" width="20"><img src="EasyWMILibrary.aspx_files/red.gif" border="0" height="5" width="20"></td>
<td bgcolor="White" height="5" width="20"><img src="EasyWMILibrary.aspx_files/red.gif" border="0" height="5" width="20"></td>
<td bgcolor="White" height="5" width="20"><img src="EasyWMILibrary.aspx_files/red.gif" border="0" height="5" width="20"></td>
<td bgcolor="White" height="5" width="20"><img src="EasyWMILibrary.aspx_files/red.gif" border="0" height="5" width="20"></td>
<td bgcolor="White" height="5" nowrap="nowrap" width="20"><img src="EasyWMILibrary.aspx_files/red.gif" border="0" height="5" width="19"></td>
</tr>
</tbody></table>
</td>
</tr>
<tr id="ctl00_ArticleRating_PopularityRow">
<td colspan="2" class="SmallText" align="right">
<a id="ctl00_ArticleRating_PopularityLnk" title="Calculated as rating x Log10(# votes)" href="http://www.codeproject.com/script/Articles/TopArticles.aspx?ta_so=1">Popularity: 6.56</a><span id="ctl00_ArticleRating_PopularityLbl"></span>
Rating: <b>4.96</b> out of 5
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<div id="ctl00_UneditedRow" class="SmallText" style="border-top: 1px dashed rgb(255, 153, 0); border-bottom: 1px dashed rgb(255, 153, 0); margin: 5px; padding: 5px;">
<b>Note:</b> This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
<a id="ctl00_ReportProblem" href="http://www.codeproject.com/script/Articles/Report.aspx?aid=21971">Report This Article</a>
</div>
<span id="intelliTXT">
<div id="contentdiv">
<!-- Main Page Contents Start -->
<!-- Article Starts -->
<ul class="Download">
<li><a href="http://www.codeproject.com/KB/dotnet/EasyWMILibrary/EasyWMIDemo.zip">Download EasyWMIDemo - 878 KB</a></li>
</ul>
<img alt="Screenshot - EasyWMIDemo" src="EasyWMILibrary.aspx_files/ss1.jpg" height="343" width="851">
<h2>Introduction</h2>
<p style="margin: 0in 0in 10pt;">I鈥檝e been writing small WMI
applications off and on for the past few years and have always found
that writing such an application in .NET has always seemed somewhat
cumbersome. I couldn鈥檛 help but think there was a better way to write a
WMI application in .NET. So I started out to search the Internet for
anything I could find that might help speed up the development process.
Everywhere I turned I found article after article showing people how to
use the System.Management namespace within .NET to accomplish their
goals. Some of these writings were very good, and some could probably
use a little more work. But one thing they always had in common, were
the strings of comments after the article asking 鈥淗ow do I do 鈥榯his鈥欌
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -