Click here to Skip to main content
15,906,625 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: Code commentor Pin
Bill Dean4-Sep-04 2:51
Bill Dean4-Sep-04 2:51 
Questionhow to reconstruct samples Pin
DawnYoshimura4-Aug-04 4:30
DawnYoshimura4-Aug-04 4:30 
GeneralJAVA source code Pin
3-Aug-04 9:35
suss3-Aug-04 9:35 
GeneralWindows Autherntication in ASP.NET Pin
R. Senthil Kumaran2-Aug-04 1:49
R. Senthil Kumaran2-Aug-04 1:49 
GeneralCustom EventLog Problem Pin
sayhigh29-Jul-04 23:42
sayhigh29-Jul-04 23:42 
GeneralRe: Custom EventLog Problem Pin
Blake Miller30-Jul-04 11:55
Blake Miller30-Jul-04 11:55 
GeneralRe: Custom EventLog Problem Pin
Sayhigh Soon31-Jul-04 4:44
sussSayhigh Soon31-Jul-04 4:44 
GeneralRe: Custom EventLog Problem Pin
cmk2-Aug-04 0:47
cmk2-Aug-04 0:47 
I do this in VC++.

To create a new log file you create an entry in the registry. The log event service will see this and create the appropriate log file and entry in the event log manager. The one thing to watch for is the difference between the display and file names. If you want them to be different then you will have a race with the event log service. As soon as you create the display name entry you are racing to add the 'File' subkey entry before the event log service reads the change and creates the file based on the specified display name key. If you get there first then the service will use the specified 'File' key to create the file.

So, in the registry under HKEY_LOCAL_MACHINE create :

SYSTEM\CurrentControlSet\Services\EventLog\<display name="">

Then right away set the following keys :
REG_EXPAND_SZ File = %SystemRoot%\system32\config\<file name="">.evt
REG_DWORD MaxSize = 0x00080000 (524288)
REG_DWORD Retention = 0x00000000 (0)

Next you have to create and register a source ... after that everything should work.


...cmk

Save the whales - collect the whole set
GeneralRags To Riches Pin
doctrane23-Jul-04 23:15
doctrane23-Jul-04 23:15 
GeneralRe: Rags To Riches Pin
Atilla Ozgur24-Jul-04 5:56
Atilla Ozgur24-Jul-04 5:56 
GeneralRe: Rags To Riches Pin
doctrane24-Jul-04 6:08
doctrane24-Jul-04 6:08 
GeneralRe: Rags To Riches Pin
Atilla Ozgur25-Jul-04 1:59
Atilla Ozgur25-Jul-04 1:59 
GeneralRe: Rags To Riches Pin
doctrane25-Jul-04 3:49
doctrane25-Jul-04 3:49 
GeneralRe: Rags To Riches Pin
Atilla Ozgur25-Jul-04 3:59
Atilla Ozgur25-Jul-04 3:59 
GeneralRe: Rags To Riches Pin
doctrane25-Jul-04 4:47
doctrane25-Jul-04 4:47 
GeneralRe: Rags To Riches Pin
STW16-Aug-04 3:24
STW16-Aug-04 3:24 
GeneralFireWall Application Pin
Anonymous20-Jul-04 18:29
Anonymous20-Jul-04 18:29 
GeneralWindows services &amp; GUI in .NET Pin
ma.poggi-cons19-Jul-04 3:06
ma.poggi-cons19-Jul-04 3:06 
GeneralRe: Windows services &amp; GUI in .NET Pin
Tim Kohler19-Jul-04 3:35
Tim Kohler19-Jul-04 3:35 
GeneralRe: Windows services &amp; GUI in .NET Pin
ma.poggi-cons19-Jul-04 4:23
ma.poggi-cons19-Jul-04 4:23 
GeneralRe: Windows services &amp; GUI in .NET Pin
Tim Kohler19-Jul-04 5:20
Tim Kohler19-Jul-04 5:20 
GeneralRe: Windows services &amp; GUI in .NET Pin
ma.poggi-cons19-Jul-04 5:30
ma.poggi-cons19-Jul-04 5:30 
Generalarticle req Pin
Saud AKhter18-Jul-04 21:20
Saud AKhter18-Jul-04 21:20 
GeneralRe: article req Pin
Steven Campbell19-Jul-04 3:43
Steven Campbell19-Jul-04 3:43 
Generalplease write a article for &quot;How to add Image to PDF File&quot; using Visual C++ Pin
pubududilena15-Jul-04 18:40
pubududilena15-Jul-04 18:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.