<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>James Finnigan : WMI</title><link>http://blogs.msdn.com/jamesfi/archive/tags/WMI/default.aspx</link><description>Tags: WMI</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Using WMIC to check for predicted disk failure (S.M.A.R.T. analysis)</title><link>http://blogs.msdn.com/jamesfi/archive/2007/01/15/using-wmic-to-check-for-predicted-disk-failure-s-m-a-r-t-analysis.aspx</link><pubDate>Tue, 16 Jan 2007 01:41:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1473198</guid><dc:creator>jamesfinnigan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jamesfi/comments/1473198.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jamesfi/commentrss.aspx?PostID=1473198</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jamesfi/rsscomments.aspx?PostID=1473198</wfw:comment><description>&lt;p&gt;I was looking at the Windows Vista Reliability and Performance Monitor and noticed that the data collector sets for System Diagnostics included a SMART disk check.&amp;nbsp; I've been waiting for Windows to make better use of SMART and hadn't noticed that there was &lt;a href="http://www.microsoft.com/whdc/archive/smartdrv.mspx"&gt;a WMI entry for it&lt;/a&gt;.&amp;nbsp; I took a look at it in WMIC to see what data was there.&amp;nbsp; You can also view the data and thresholds used to predict failure, etc.&lt;/p&gt;&lt;pre&gt;WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictStatus
Active InstanceName PredictFailure Reason&lt;br&gt;TRUE IDE\DiskWDC_WD1200BB-00CAA0_____________________16.06V16\5&amp;amp;134a4e1&amp;amp;0&amp;amp;1.0.0_0 FALSE 0&lt;br&gt;TRUE IDE\DiskWDC_WD740GD-00FLA1______________________27.08D27\5&amp;amp;14d2dd2b&amp;amp;0&amp;amp;0.0.0_0 FALSE 0&lt;br&gt;TRUE IDE\DiskST3250823AS_____________________________3.03____\5&amp;amp;278c8dd0&amp;amp;0&amp;amp;1.0.0_0 FALSE 0

WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictData
WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictThresholds
&lt;/pre&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1473198" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jamesfi/archive/tags/WMI/default.aspx">WMI</category><category domain="http://blogs.msdn.com/jamesfi/archive/tags/Tips/default.aspx">Tips</category></item><item><title>WMI Folder - codeplex project</title><link>http://blogs.msdn.com/jamesfi/archive/2007/01/10/wmi-folder-codeplex-project.aspx</link><pubDate>Thu, 11 Jan 2007 01:03:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1446110</guid><dc:creator>jamesfinnigan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jamesfi/comments/1446110.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jamesfi/commentrss.aspx?PostID=1446110</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jamesfi/rsscomments.aspx?PostID=1446110</wfw:comment><description>&lt;p&gt;&lt;img src="http://www.codeplex.com/App_Themes/CodePlex/images/banner_toplogo.jpg" align="left"&gt; Well, I've put the WMI folder code &lt;a href="http://www.codeplex.com/WMIFldr"&gt;up on codeplex&lt;/a&gt;.&amp;nbsp; Please remember that this code is very much pre-alpha.&amp;nbsp; I think that this will be a good way to share the code, allow others to contribute, etc.&amp;nbsp; If it works well, then I will probably create codeplex projects for some of the other things that I'm putting together.&lt;/p&gt; &lt;p&gt;If you're interested in contributing, leave a comment here or via the codeplex project.&lt;br clear="all"&gt;Happy new year!&lt;br&gt;James&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1446110" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jamesfi/archive/tags/shell/default.aspx">shell</category><category domain="http://blogs.msdn.com/jamesfi/archive/tags/WMI/default.aspx">WMI</category><category domain="http://blogs.msdn.com/jamesfi/archive/tags/CodePlex/default.aspx">CodePlex</category></item><item><title>WMI Shell Folder GetDisplayNameOf - untangling the flags</title><link>http://blogs.msdn.com/jamesfi/archive/2006/11/06/wmi-shell-folder-getdisplaynameof-untangling-the-flags.aspx</link><pubDate>Tue, 07 Nov 2006 00:24:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1004855</guid><dc:creator>jamesfinnigan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jamesfi/comments/1004855.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jamesfi/commentrss.aspx?PostID=1004855</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jamesfi/rsscomments.aspx?PostID=1004855</wfw:comment><description>&lt;div&gt;So I have a bit of a beef with&amp;nbsp;GetDisplayNameOf - I don't like the flags.&amp;nbsp; I understand that when it was created, the flexibility of flags made a ton of sense.&amp;nbsp; It wasn't well understood what potentially wildly different uses might be needed,&amp;nbsp;and flags are a good alternative to a giant enumeration.&amp;nbsp; But I think there are really only about 4 possibilities that matter most of the time (caveat: I'm still pretty new to shell programming).&amp;nbsp; It's a pain to figure out the flags and there are combinations that don't even make sense.&amp;nbsp; It seems to make a lot more sense to me to use an enumeration (like in &lt;a href="http://windowssdk.msdn.microsoft.com/en-us/library/ms649337.aspx"&gt;IShellItem&lt;/a&gt;).&lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt; &lt;div&gt;Anyway, I ended up liking a solution that very similar to the one that was put into the Registry sample that a few of us are putting together (more on that later).&amp;nbsp; I created four different functions for the different GetDisplayNameOf possibilities and hopefully the table that links them to the flags isn't too scary.&lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;HRESULT CWMIFldr::GetDisplayNameOf( &lt;?xml namespace="" ns="urn:schemas-microsoft-com:office:office" prefix="o" ?&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green"&gt;/* [in] */&lt;/span&gt; PCUITEMID_CHILD pidl,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green"&gt;/* [in] */&lt;/span&gt; SHGDNF uFlags,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green"&gt;/* [out] */&lt;/span&gt; STRRET *pName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;TRACEFNENTER();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;HRESULT hr;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;ZeroMemory(pName, &lt;span style="color: blue"&gt;sizeof&lt;/span&gt;(*pName));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (!ILIsEmpty(pidl))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: blue"&gt;static&lt;/span&gt; &lt;span style="color: blue"&gt;const&lt;/span&gt; DisplayNameFn s_rgSIGDNMapping[2][2] = &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: green"&gt;// unfriendly&lt;span style="mso-spacerun: yes"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;// friendly&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;{{&amp;amp;CWMIFldr::_GetAbsoluteParsingName}, {&amp;amp;CWMIFldr::_GetAbsoluteDisplayName}}, &lt;span style="color: green"&gt;// absolute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;{{&amp;amp;CWMIFldr::_GetRelativeParsingName}, {&amp;amp;CWMIFldr::_GetRelativeDisplayName}}, &lt;span style="color: green"&gt;// relative&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: blue"&gt;bool&lt;/span&gt; fRelative = (uFlags &amp;amp; SHGDN_INFOLDER) == SHGDN_INFOLDER;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: blue"&gt;bool&lt;/span&gt; fFriendly = (uFlags &amp;amp; SHGDN_FORPARSING) != SHGDN_FORPARSING &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;|| (uFlags &amp;amp; SHGDN_FORADDRESSBAR) == SHGDN_FORADDRESSBAR;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;PWSTR pszDisplay;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;hr = (&lt;span style="color: blue"&gt;this&lt;/span&gt;-&amp;gt;*s_rgSIGDNMapping[fRelative][fFriendly])(pidl, &amp;amp;pszDisplay);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (SUCCEEDED(hr))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;pName-&amp;gt;uType = STRRET_WSTR;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;pName-&amp;gt;pOleStr = pszDisplay;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: blue"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;hr = E_NOTIMPL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;TRACEFNEXIT();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; hr;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9pt; font-family: 'Courier New'; mso-bidi-language: he; mso-no-proof: yes"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;-- &lt;br&gt;This posting is provided "AS IS" with no warranties, and confers no rights. &lt;br&gt;Use of included script samples are subject to the terms specified at &lt;a href="http://www.microsoft.com/info/cpyright.htm"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;http://www.microsoft.com/info/cpyright.htm&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1004855" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jamesfi/archive/tags/shell/default.aspx">shell</category><category domain="http://blogs.msdn.com/jamesfi/archive/tags/WMI/default.aspx">WMI</category></item></channel></rss>