52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
ChannelConfig sample
|
|
|
|
Demonstrates some of the configuration capabilities of Windows Event Log.
|
|
This sample reads and sets an event log's maximum size.
|
|
|
|
|
|
Sample Language Implementations
|
|
===============================
|
|
This sample is available in the following language implementations:
|
|
C#
|
|
|
|
Files
|
|
=============================================
|
|
ReadMe.txt
|
|
ChannelConfig.cs
|
|
ChannelConfig.csproj
|
|
ChannelConfig.sln
|
|
|
|
Prerequisites
|
|
=============================================
|
|
1. Microsoft Windows Vista or later
|
|
2. Microsoft .NET3.5 or later
|
|
3. Visual Studio 2008 (for ChannelConfig.sln solution file)
|
|
|
|
|
|
To build the sample using the command prompt:
|
|
=============================================
|
|
1. Open Microsoft Windows SDK Command Prompt window and navigate to the sample directory.
|
|
2. Type msbuild ChannelConfig.csproj.
|
|
|
|
|
|
To build the sample using Visual Studio 2008:
|
|
================================================
|
|
1. Open Windows Explorer and navigate to the directory.
|
|
2. Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
|
|
3. In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.
|
|
|
|
|
|
To run the sample:
|
|
=================
|
|
NOTE: setting the maximum log size requires running with administrative privileges.
|
|
|
|
1. Navigate to the directory that contains the new executable using the command prompt running as Administrator.
|
|
2. Type ChannelConfig.exe at the command line.
|
|
|
|
|
|
Additional Run Steps:
|
|
=====================
|
|
1. Run ChannelConfig.exe /? for further instructions.
|
|
|
|
|