August 13th, 2007 at 10:08 pm
vc++操作word
转载请注明出处:(鼓手)http://www.cnitblog.com/lifw/articles/vcpp_officeword.html最近根据项目需要,需要我去用 vc++6.0 作一个 ActiveX web 组件。自己从来没有接触过这方面的编程,这次是头一遭!所以咱就做了,不过倒很出乎我的意料,比我想象的要快很多就完成了。现将 vc++6.0 操作 word 部分的关键代码部分帖出来,共享给大家。
因为我在开发的时候遇到了很多问题,并且网上的资料很少,基本都是最基本的操作。所以帖出来,希望能让大家在开发的过程少走些弯路!
Continue Reading »
August 13th, 2007 at 9:23 pm
July 18th, 2007 at 5:56 pm
1. History
HRESULT ClearHistory()
{
IUrlHistoryStg2 * pUrlHistoryStg2=NULL;
CoInitialize(NULL);
HRESULT hr=CoCreateInstance(CLSID_CUrlHistory,
NULL,
CLSCTX_INPROC,
IID_IUrlHistoryStg2,
(void*)&&pUrlHistoryStg2);
if(SUCCEEDED(hr))
{
hr=pUrlHistoryStg2->ClearHistory();
pUrlHistoryStg2->Release();
}
CoUninitialize();
return hr;
}
2. Cache
Continue Reading »
July 18th, 2007 at 5:09 pm
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
Continue Reading »
July 11th, 2007 at 12:19 pm
Went to Big Sur with my colleague. The sea is so beautiful …
1. China is on the other side
2. Sea 2

3. Sands

Continue Reading »
May 23rd, 2007 at 1:11 pm
SECURITY_LOGON_TYPE enumeration [Security]
The SECURITY_LOGON_TYPE enumeration indicates the type of logon requested by a logon process.
typedef enum _SECURITY_LOGON_TYPE
{
Interactive = 2,
Network,
Batch,
Service,
Proxy,
Unlock,
NetworkCleartext,
NewCredentials,
RemoteInteractive,
CachedInteractive,
CachedRemoteInteractive,
CachedUnlock
}SECURITY_LOGON_TYPE, *PSECURITY_LOGON_TYPE;
Continue Reading »
May 22nd, 2007 at 5:51 pm
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, // 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
}
Logon Events (interactive):
A successful logon event generates Event ID 528, Logon Type 2. A logoff event generates Event ID 538, Logon Type 2.
Connection Events (network):
A successful Net Use or File Manager connection or a successful Net View generates Event ID 528, Logon Type 3.
Continue Reading »
May 22nd, 2007 at 5:48 pm
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: Continue Reading »
May 22nd, 2007 at 5:46 pm
May 22nd, 2007 at 4:53 pm
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 to authenticate logon attempts.
Authentication Package Name: %1
Event ID: 515
Type: Success Audit
Description: A trusted logon process has registered with the Local
Security Authority. This logon process will be trusted to
submit logon requests.
Logon Process Name: %1
Continue Reading »