Click to See Complete Forum and Search --> : Netapi
matbrophy
Nov 10th, 2000, 02:27 PM
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
Surgeon
Nov 13th, 2000, 06:59 AM
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/psdk/winbase/mailslot_7gj7.htm
I hope it helped you :-)
Surgeon
matbrophy
Nov 14th, 2000, 01:48 PM
How do you read from the mailslots, write to them and delete them like you can in netapi.dll?
Matthew
matbrophy
Nov 18th, 2000, 07:39 AM
Can anybody help, Please!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.