Results 1 to 4 of 4

Thread: Netapi

  1. #1

    Thread Starter
    Addicted Member matbrophy's Avatar
    Join Date
    Sep 1999
    Location
    Kent, United Kingdom
    Posts
    149

    Exclamation

    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

  2. #2
    Lively Member Surgeon's Avatar
    Join Date
    Oct 2000
    Posts
    121
    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

  3. #3

    Thread Starter
    Addicted Member matbrophy's Avatar
    Join Date
    Sep 1999
    Location
    Kent, United Kingdom
    Posts
    149

    Question Read Write Delete

    How do you read from the mailslots, write to them and delete them like you can in netapi.dll?

    Matthew

  4. #4

    Thread Starter
    Addicted Member matbrophy's Avatar
    Join Date
    Sep 1999
    Location
    Kent, United Kingdom
    Posts
    149
    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
  •  



Click Here to Expand Forum to Full Width