Friday, November 09, 2007

Create a lock on the Windows.

In the some programme we have to read/write  file(parameter etc) once at a time, so we need a lock to keep the data safe. So we create a event to simulation this lock.

CreateEvent()
PulseEvent()
ResetEvent()
SeteEvent()

WaitSingleObject()

We can simulation a lock throuth this function.

Labels:


No body will in this web

After I check the counter, it just 3.

This is my secrect web site.

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]

Scrape It
Free Hit Counters
Scrape It