> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Juan Lang > Sent: 28 November 2003 20:18 > To: [EMAIL PROTECTED] > Subject: vxd deviceiocontrol hmm > > > Folks, I'm looking for advice on implementing > DeviceIoControl for vnetbios. It's pretty simple, > lpvInBuffer is a pointer to an NCB, the only parameter > to Netbios(). > > Trouble is, I implemented Netbios() with some state, > all maintained in netapi32.dll. I need to load > netapi32.dll, and keep it open as long as the handle > to vnetbios is open (if I close netapi32, the state is > lost). > > I could: > - use a static HANDLE to netapi32.dll in kernel
Yes. Other DLLs do it this way. > - store the handle in the server No. The server has no concept of a DLL and shouldn't need to. > - move all the netbios code to kernel, and use > DeviceIoControl to call it from netapi32 No. You should keep all of the code in netapi32. There is no need for it to be in kernel32. Rob
