Simple API Question
Posted on 2003-11-20
I am using an API for some mail server software. I dont have much experience of VB APIs and the documentation with the API is poor. I have managed to get some stuff working but I dont understand it.
The API is Decalred as follows:
Public Declare Function AddDomain Lib "api" (ByVal Name As String, ByRef Buffer As Any, ByVal Size As Long) As Long
I understand that the Function returns a Long with 0 indicating sucess and any other number indicating an error message. I understand that Name is the domain name to add. What I dont understand is what the Buffer is and what the keyword Any means. The code below does work I just dont understand the buffer stuff. Any explanations please?
Dim abBuffer(1 To 1024) As Byte
MsgBox (AddDomain("psllllllsssasdasdsadsoo.homeip.net", abBuffer(1), 1024))