| 
 
			
			1) Create temporary in_addr type structure;
 InAddr.s_addr = ulClientIp;
 strcpy(ip, inet_ntoa(InAddr));
 
 2) Yes, open the userfile (one should create local cache, so you don't have to open same userfile more than once [it's possible, but uses more resources])
 
 3)  dwSharedMemorySize contains amount of memory your shared memory chunk contains (you must fill it yourself). If you have too little memory & paths don't fit, dwReturn value will be equal to amount of memory required to complete action successfully.
 
 4) WM_KILL message is executed instantly by message handler thread (it's not dispatched to worker threads like datacopy messages are) - it returns 0 if client was killed, 1 on error
 |