Please help
I need a way either to call netapi.dll calls from 32-bit VB (6.0) or to know how to call the mailslot functions in netapi32.dll
Matthew
Visual Studio 6.0 Professional
Printable View
Please help
I need a way either to call netapi.dll calls from 32-bit VB (6.0) or to know how to call the mailslot functions in netapi32.dll
Matthew
Visual Studio 6.0 Professional
Matthew, the win32 mailslot function are in kernel32.dll and NOT in netapi32.dll. Check out the VB declarations :
Declare Function CreateMailslot Lib "kernel32" Alias "CreateMailslotA" (ByVal lpName As String, ByVal nMaxMessageSize As Long, ByVal lReadTimeout As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
Declare Function GetMailslotInfo Lib "kernel32" (ByVal hMailslot As Long, lpMaxMessageSize As Long, lpNextSize As Long, lpMessageCount As Long, lpReadTimeout As Long) As Long
Declare Function SetMailslotInfo Lib "kernel32" (ByVal hMailslot As Long, ByVal lReadTimeout As Long) As Long
You can get additional info on mailslots here :
http://msdn.microsoft.com/library/ps...lslot_7gj7.htm
I hope it helped you :-)
Surgeon
How do you read from the mailslots, write to them and delete them like you can in netapi.dll?
Matthew
Can anybody help, Please!