Jayce Ooi’s Paradise

Photography, gaming, programming, technology, finance, anything

How to modify Windows System Registry Values with C#? As usual, you need to use Microsoft.Win32 Namespace ~ using Microsoft.Win32;. Let’s take Windows Application Event Logs values as an example. I want to change the MaxSize and Retention values in Application Event Log file by using C#.

Codes to change Windows System Registry values

RegistryKey TestEventLog = Registry.LocalMachine.OpenSubKey(“System\\CurrentControlSet\\Services\\EventLog\\Application”,true);
TestEventLog.SetValue(“MaxSize”, “102367232″, RegistryValueKind.DWord);
TestEventLog.SetValue(“Retention”, “0″, RegistryValueKind.DWord);

Above codes open Application event log and with write permission (,true). It changes both MaxSize and Retention values.
Just change the codes to suit your need. ;)

Warning, Seagate Barracuda 7200.11, DiamondMax 22, Barracuda ES.2 SATA hard drive owners. Yes, this is a very serious warning coming out from Seagate itself. Because your hard drive might become inaccessible when you power up your PC system. I got an error comment from an anonymous on January 11th, 2009. At first, I thought just an anti-Seagate wondering around and doing some damages to Seagate branding. However, I changed my mind after seeing this announcement.

seagate_7200_11.jpg
Oh no… My hard drive is on the list!

(more…)

Microsoft System Center Operations Manager 2007 (SCOM). Do you ever hear these words? Microsoft System Center Operations Manager 2007 is new to me. After doing some research at Microsoft website, I just know that Microsoft System Center Operations Manager 2007 is the replacement for Microsoft Operations Manager 2005 (MOM). What are SCOM and MOM anyway? There are management tool for IT build by Microsoft. SCOM has more features than MOM.

scom.gif
Microsoft System Center Operations Manager 2007

(more…)

CPU-Z is one of the tools for overclocker. CPU-Z displays CPU, mainboard, memory, system information. CPU-Z can detect information as below…

CPU

  • Name and number.
  • Core stepping and process.
  • Package.
  • Core voltage.
  • Internal and external clocks, clock multiplier.
  • Supported instructions sets.
  • Cache information.

Mainboard

  • Vendor, model and revision.
  • BIOS model and date.
  • Chipset (northbridge and southbridge) and sensor.
  • Graphic interface.

Memory

  • Frequency and timings.
  • Module(s) specification using SPD (Serial Presence Detect) : vendor, serial number, timings table.

System

  • Windows and DirectX version.

(more…)



Hot Topic

HTC HD2 Dell UltraSharp U2410 Review