Use whllapi.dll in vb.net

J

jagat

I tried using this dll which connects to mainframe and it works fine
while when i tried using the same for VB.net it gives an error
"System.Nullreference exception".

Here is the piece of code:

<DllImport("Whllapi.dll")> _
Private Function WinHLLAPIStartup(ByVal wVersionRequired As
Integer, ByVal lpData As LPWHLLAPIDATA) As Integer
End Function

Private Structure LPWHLLAPIDATA
Private b1 As Byte
Private b2 As Byte
Private s As String ' * 128
End Structure

Dim lpData As LPWHLLAPIDATA
Dim iFuncResult As Integer

Sub Main()

iFuncResult = WinHLLAPIStartup(257, lpData)

End Sub


Any help will be appreciated.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top