vxd deviceiocontrol hmm
R.J.Shearman at warwick.ac.uk
Fri Nov 28 15:11:03 CST 2003
> -----Original Message-----
> From: wine-devel-admin at winehq.org [mailto:wine-devel-admin at winehq.org]On
> Behalf Of Juan Lang
> Sent: 28 November 2003 20:18
> To: wine-devel at winehq.com
> 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
> 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.
More information about the wine-devel