|
-
Nov 10th, 2000, 03:27 PM
#1
Thread Starter
Addicted Member
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
-
Nov 13th, 2000, 07:59 AM
#2
Lively Member
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
-
Nov 14th, 2000, 02:48 PM
#3
Thread Starter
Addicted Member
Read Write Delete
How do you read from the mailslots, write to them and delete them like you can in netapi.dll?
Matthew
-
Nov 18th, 2000, 08:39 AM
#4
Thread Starter
Addicted Member
Can anybody help, Please!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|