<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Oops! The lab ...</title>
	<link>http://mykernelspace.com/oopslab</link>
	<description></description>
	<pubDate>Tue, 21 Aug 2007 14:17:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>
	<language>en</language>
			<item>
		<title>FW:How to use Word</title>
		<link>http://mykernelspace.com/oopslab/?p=35</link>
		<comments>http://mykernelspace.com/oopslab/?p=35#comments</comments>
		<pubDate>Tue, 14 Aug 2007 05:08:24 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[COM]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=35</guid>
		<description><![CDATA[vc++操作word
转载请注明出处：(鼓手)http://www.cnitblog.com/lifw/articles/vcpp_officeword.html最近根据项目需要，需要我去用 vc++6.0 作一个 ActiveX web 组件。自己从来没有接触过这方面的编程，这次是头一遭！所以咱就做了，不过倒很出乎我的意料，比我想象的要快很多就完成了。现将 vc++6.0 操作 word 部分的关键代码部分帖出来，共享给大家。

因为我在开发的时候遇到了很多问题，并且网上的资料很少，基本都是最基本的操作。所以帖出来，希望能让大家在开发的过程少走些弯路！ 
]]></description>
			<content:encoded><![CDATA[<p class="postTitle"><a href="http://www.cnitblog.com/lifw/articles/vcpp_officeword.html" id="viewpost1_TitleUrl" class="postTitle2">vc++操作word</a></p>
<p><font size="2"><span style="font-family: 宋体">转载请注明出处：(鼓手)<a href="http://www.cnitblog.com/lifw/articles/vcpp_officeword.html">http://www.cnitblog.com/lifw/articles/vcpp_officeword.html</a></span></font><font size="2"><span style="font-family: 宋体">最近根据项目需要，需要我去用 <span lang="EN-US">vc++6.0</span> <span style="font-family: 宋体">作一个</span> <span lang="EN-US">ActiveX web</span> <span style="font-family: 宋体">组件。自己从来没有接触过这方面的编程，这次是头一遭！所以咱就做了，不过倒很出乎我的意料，比我想象的要快很多就完成了。现将</span> <span lang="EN-US">vc++6.0</span> <span style="font-family: 宋体">操作</span> <span lang="EN-US">word</span> <span style="font-family: 宋体">部分的关键代码部分帖出来，共享给大家。</span></p>
<p></span></font></p>
<p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: 宋体"><font size="2">因为我在开发的时候遇到了很多问题，并且网上的资料很少，基本都是最基本的操作。所以帖出来，希望能让大家在开发的过程少走些弯路！</font> </span></p>
<p> <a href="http://mykernelspace.com/oopslab/?p=35#more-35" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=35</wfw:commentRss>
		</item>
		<item>
		<title>How to get Document Properties</title>
		<link>http://mykernelspace.com/oopslab/?p=34</link>
		<comments>http://mykernelspace.com/oopslab/?p=34#comments</comments>
		<pubDate>Tue, 14 Aug 2007 04:23:09 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[COM]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=34</guid>
		<description><![CDATA[Refer to these two link
http://support.microsoft.com/kb/179494/EN-US/
http://support.microsoft.com/kb/238393
]]></description>
			<content:encoded><![CDATA[<p>Refer to these two link</p>
<p><a href="http://support.microsoft.com/kb/179494/EN-US/">http://support.microsoft.com/kb/179494/EN-US/</a></p>
<p><a href="http://support.microsoft.com/kb/238393">http://support.microsoft.com/kb/238393</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=34</wfw:commentRss>
		</item>
		<item>
		<title>How to clean IE history</title>
		<link>http://mykernelspace.com/oopslab/?p=33</link>
		<comments>http://mykernelspace.com/oopslab/?p=33#comments</comments>
		<pubDate>Thu, 19 Jul 2007 00:56:59 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Skills and Tools]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=33</guid>
		<description><![CDATA[1. History
 HRESULT   ClearHistory()   
{
    IUrlHistoryStg2   *   pUrlHistoryStg2=NULL;  
    CoInitialize(NULL);   
    HRESULT   hr=CoCreateInstance(CLSID_CUrlHistory,
                NULL,
                CLSCTX_INPROC,
                IID_IUrlHistoryStg2,
                (void*)&#38;&#38;pUrlHistoryStg2);   
    if(SUCCEEDED(hr))   
    {
        hr=pUrlHistoryStg2-&#62;ClearHistory();   
        pUrlHistoryStg2-&#62;Release();   
    }
    CoUninitialize();   
    return   hr;  
}  
2. Cache
]]></description>
			<content:encoded><![CDATA[<p>1. History</p>
<p> HRESULT   ClearHistory()   <br />
{<br />
    IUrlHistoryStg2   *   pUrlHistoryStg2=NULL;  </p>
<p>    CoInitialize(NULL);   <br />
    HRESULT   hr=CoCreateInstance(CLSID_CUrlHistory,<br />
                NULL,<br />
                CLSCTX_INPROC,<br />
                IID_IUrlHistoryStg2,<br />
                (void*)&amp;&amp;pUrlHistoryStg2);   <br />
    if(SUCCEEDED(hr))   <br />
    {<br />
        hr=pUrlHistoryStg2-&gt;ClearHistory();   <br />
        pUrlHistoryStg2-&gt;Release();   <br />
    }</p>
<p>    CoUninitialize();   <br />
    return   hr;  <br />
}  </p>
<p>2. Cache</p>
<p> <a href="http://mykernelspace.com/oopslab/?p=33#more-33" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=33</wfw:commentRss>
		</item>
		<item>
		<title>Some common directory we can find in the registry</title>
		<link>http://mykernelspace.com/oopslab/?p=32</link>
		<comments>http://mykernelspace.com/oopslab/?p=32#comments</comments>
		<pubDate>Thu, 19 Jul 2007 00:09:09 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Skills and Tools]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=32</guid>
		<description><![CDATA[1. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
AppData
Cache
CD Burning
Cookies
Desktop
Favorites
Fonts
History
Local AppData
Local Settings
My Music
My Pictures
My Video
NetHood
Programs
Recent
SendTo
Start Menu
Startup
templates
2. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
AppData
Cache
CD Burning
Cookies
Desktop
Favorites
Fonts
History
Local AppData
Local Settings
My Music
My Pictures
My Video
NetHood
Programs
Recent
SendTo
Start Menu
Startup
templates
]]></description>
			<content:encoded><![CDATA[<p>1. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders</p>
<p>AppData<br />
Cache<br />
CD Burning<br />
Cookies<br />
Desktop<br />
Favorites<br />
Fonts<br />
History<br />
Local AppData<br />
Local Settings<br />
My Music<br />
My Pictures<br />
My Video<br />
NetHood<br />
Programs<br />
Recent<br />
SendTo<br />
Start Menu<br />
Startup<br />
templates</p>
<p>2. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders</p>
<p>AppData<br />
Cache<br />
CD Burning<br />
Cookies<br />
Desktop<br />
Favorites<br />
Fonts<br />
History<br />
Local AppData<br />
Local Settings<br />
My Music<br />
My Pictures<br />
My Video<br />
NetHood<br />
Programs<br />
Recent<br />
SendTo<br />
Start Menu<br />
Startup<br />
templates</p>
<p> <a href="http://mykernelspace.com/oopslab/?p=32#more-32" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=32</wfw:commentRss>
		</item>
		<item>
		<title>Big Sur</title>
		<link>http://mykernelspace.com/oopslab/?p=31</link>
		<comments>http://mykernelspace.com/oopslab/?p=31#comments</comments>
		<pubDate>Wed, 11 Jul 2007 19:19:07 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=31</guid>
		<description><![CDATA[Went to Big Sur with my colleague. The sea is so beautiful &#8230;
1. China is on the other side

 
2. Sea 2


3. Sands


]]></description>
			<content:encoded><![CDATA[<p>Went to Big Sur with my colleague. The sea is so beautiful &#8230;</p>
<p>1. China is on the other side<br />
<a target="_blank" href="http://mykernelspace.com/oopslab/data/album/bigsur/1.jpg"><br />
<img align="baseline" width="1083" src="http://mykernelspace.com/oopslab/data/album/bigsur/1.jpg" alt="Sea 1" height="240" style="width: 361px; height: 240px" title="Sea 1" /> </a></p>
<p>2. Sea 2<br />
<a target="_blank" href="http://mykernelspace.com/oopslab/data/album/bigsur/2.jpg"><br />
<img align="baseline" width="1083" src="http://mykernelspace.com/oopslab/data/album/bigsur/2.jpg" alt="Sea 2" height="240" style="width: 361px; height: 240px" title="Sea 2" /></a></p>
<p>3. Sands<br />
<a target="_blank" href="http://mykernelspace.com/oopslab/data/album/bigsur/3.jpg"><br />
<img align="baseline" width="720" src="http://mykernelspace.com/oopslab/data/album/bigsur/3.jpg" alt="sands" height="361" style="width: 240px; height: 361px" title="Sands" /></a></p>
<p> <a href="http://mykernelspace.com/oopslab/?p=31#more-31" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=31</wfw:commentRss>
		</item>
		<item>
		<title>FW: SECURITY_LOGON_TYPE enumeration [Security]</title>
		<link>http://mykernelspace.com/oopslab/?p=30</link>
		<comments>http://mykernelspace.com/oopslab/?p=30#comments</comments>
		<pubDate>Wed, 23 May 2007 20:11:44 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Skills and Tools]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=30</guid>
		<description><![CDATA[SECURITY_LOGON_TYPE enumeration [Security]

The SECURITY_LOGON_TYPE enumeration indicates the type of logon requested by a logon process.
&#160;
typedef enum _SECURITY_LOGON_TYPE
{
   Interactive = 2,
   Network,
   Batch,
   Service,
   Proxy,
   Unlock,
   NetworkCleartext,
   NewCredentials,
   RemoteInteractive,
   CachedInteractive,
   CachedRemoteInteractive,
   CachedUnlock
}SECURITY_LOGON_TYPE, [...]]]></description>
			<content:encoded><![CDATA[<p class="title"><a href="http://msdn2.microsoft.com/en-us/library/aa380129.aspx">SECURITY_LOGON_TYPE enumeration [Security]</a></p>
<p><!--Content type: HTML. Transform: psdk2mtps.xslt.--></p>
<p class="clsServerSDKContent">The <strong>SECURITY_LOGON_TYPE</strong> enumeration indicates the type of logon requested by a logon process.</p>
<p class="CodeSnippetTitleBar">&nbsp;</p>
<pre space="preserve" id="ctl00_LibFrame_ctl01" class="code">typedef enum _SECURITY_LOGON_TYPE
{
   Interactive = 2,
   Network,
   Batch,
   Service,
   Proxy,
   Unlock,
   NetworkCleartext,
   NewCredentials,
   RemoteInteractive,
   CachedInteractive,
   CachedRemoteInteractive,
   CachedUnlock
}SECURITY_LOGON_TYPE, *PSECURITY_LOGON_TYPE;</pre>
<p> <a href="http://mykernelspace.com/oopslab/?p=30#more-30" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=30</wfw:commentRss>
		</item>
		<item>
		<title>FW: Security Events Logon Type Definitions</title>
		<link>http://mykernelspace.com/oopslab/?p=29</link>
		<comments>http://mykernelspace.com/oopslab/?p=29#comments</comments>
		<pubDate>Wed, 23 May 2007 00:51:51 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Skills and Tools]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=29</guid>
		<description><![CDATA[Taken from ntsecapi.h in the security subdirectory on the Win32 SDK CD. Used by a logon process to indicate what type of logon is being requested. 
typedef enum _SECURITY_LOGON_TYPE
{
    Interactive = 2,   // Interactively logged on (locally or remotely)
    Network = 3,      [...]]]></description>
			<content:encoded><![CDATA[<p>Taken from <font color="#0000ff">ntsecapi.h</font> in the security subdirectory on the Win32 SDK CD. Used by a logon process to indicate what type of logon is being requested. <font color="#008000"></p>
<pre>typedef enum _SECURITY_LOGON_TYPE
{
    Interactive = 2,   // Interactively logged on (locally or remotely)
    Network = 3,       // Accessing system via network
    Batch = 4,         // Started via a batch queue
    Service = 5,       // Service started by service controller
    Proxy = 6,         // Proxy logon
    Unlock = 7         // Unlock workstation
}</pre>
<p>Logon Events (interactive):<br />
A successful logon event generates <font color="#0000ff">Event ID 528</font>, <font color="#008000">Logon Type 2</font>. A logoff event generates <font color="#0000ff">Event ID 538</font>, <font color="#008000">Logon Type 2</font>.</p>
<p>Connection Events (network):<br />
A successful <font color="#a52a2a">Net Use</font> or <font color="#a52a2a">File Manager</font> connection or a successful <font color="#a52a2a">Net View</font> generates <font color="#0000ff">Event ID 528</font>, <font color="#008000">Logon Type 3</font>.</p>
<p> <a href="http://mykernelspace.com/oopslab/?p=29#more-29" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=29</wfw:commentRss>
		</item>
		<item>
		<title>W2K and NT Security Event Log Descriptions</title>
		<link>http://mykernelspace.com/oopslab/?p=28</link>
		<comments>http://mykernelspace.com/oopslab/?p=28#comments</comments>
		<pubDate>Wed, 23 May 2007 00:48:06 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=28</guid>
		<description><![CDATA[All successful logons are Event ID 528 entries in the security log, assuming auditing is turned on and you are auditing successful logons. Unsuccessful logons have various event ids which categorize the type of logon failure.Event ID 528 entries list the:

user name
domain
logon id
logon type
logon process
authenication package
workstation name

The types of successful logon types:
]]></description>
			<content:encoded><![CDATA[<p id="art-content" class="text-block">All successful logons are <font color="#0000ff">Event ID 528 </font>entries in the security log, assuming auditing is turned on and you are auditing successful logons. Unsuccessful logons have various event ids which categorize the type of logon failure.<font color="#0000ff">Event ID 528 </font>entries list the:</p>
<ul>
<li>user name</li>
<li>domain</li>
<li>logon id</li>
<li>logon type</li>
<li>logon process</li>
<li>authenication package</li>
<li>workstation name</li>
</ul>
<p>The types of successful logon types: <a href="http://mykernelspace.com/oopslab/?p=28#more-28" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=28</wfw:commentRss>
		</item>
		<item>
		<title>WindowsNT Admin Tips: EentLogs</title>
		<link>http://mykernelspace.com/oopslab/?p=27</link>
		<comments>http://mykernelspace.com/oopslab/?p=27#comments</comments>
		<pubDate>Wed, 23 May 2007 00:46:11 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Skills and Tools]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=27</guid>
		<description><![CDATA[http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/AdminTips/EventLogs/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/AdminTips/EventLogs/">http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/AdminTips/EventLogs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=27</wfw:commentRss>
		</item>
		<item>
		<title>FW:Security Event Descriptions</title>
		<link>http://mykernelspace.com/oopslab/?p=26</link>
		<comments>http://mykernelspace.com/oopslab/?p=26#comments</comments>
		<pubDate>Tue, 22 May 2007 23:53:59 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
		
		<category><![CDATA[Skills and Tools]]></category>

		<guid isPermaLink="false">http://mykernelspace.com/oopslab/?p=26</guid>
		<description><![CDATA[http://support.microsoft.com/kb/q174074/
   Event ID: 512
       Type: Success Audit
Description: Windows NT is starting up.
   Event ID: 513
       Type: Success Audit
Description: Windows NT is shutting down. All logon sessions will be
             terminated by this shutdown.
   Event ID: 514
       Type: Success Audit
Description: An authentication package has been loaded by the Local
             Security Authority. This authentication package will be
             used [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://support.microsoft.com/kb/q174074/">http://support.microsoft.com/kb/q174074/</a></p>
<p>   Event ID: 512<br />
       Type: Success Audit<br />
Description: Windows NT is starting up.</p>
<p>   Event ID: 513<br />
       Type: Success Audit<br />
Description: Windows NT is shutting down. All logon sessions will be<br />
             terminated by this shutdown.</p>
<p>   Event ID: 514<br />
       Type: Success Audit<br />
Description: An authentication package has been loaded by the Local<br />
             Security Authority. This authentication package will be<br />
             used to authenticate logon attempts.<br />
             Authentication Package Name: %1</p>
<p>   Event ID: 515<br />
       Type: Success Audit<br />
Description: A trusted logon process has registered with the Local<br />
             Security Authority. This logon process will be trusted to<br />
             submit logon requests.<br />
             Logon Process Name: %1</p>
<p> <a href="http://mykernelspace.com/oopslab/?p=26#more-26" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mykernelspace.com/oopslab/?feed=rss2&amp;p=26</wfw:commentRss>
		</item>
	</channel>
</rss>
