View Single Post
Old 10-09-2004, 03:20 AM  
Junior Member
Join Date: Jun 2004
Posts: 25

Thanks for the code,but I got some questions about the code above.

1.what is the initial count and max count for CreateSemaphore()
2.Buffer.len = min(1024, lSize); is it too small to send 1K
data every time?
3.I don't quiet understand the code
if (WaitForSingleObject(hSemaphore, 2000) == WAIT_OBJECT_0) {
/* ???? */
return FALSE;

if doesn't get signal in 2 second,why don't keep it in the loop but return FALSE;
Syrinx is offline