Also, what is the proper way to use .Connect with Vm Server2.0?
I'm not having any success with this:
I'm not having any success with this:
Dim err As Integer = VixDiskLib_Init(1, 0, Nothing, Nothing, Nothing, Nothing)
' MsgBox("init " & err.ToString)
Dim cnxParams As New VixDiskLibConnectParams
cnxParams.serverName = "pc279"
cnxParams.credType = VixDiskLibCredType.VIXDISKLIB_CRED_UID
cnxParams.creds.uid.userName = "user"
cnxParams.creds.uid.password = ""
cnxParams.port = 0
Dim connPtr As IntPtr = IntPtr.Zero
err = VixDiskLib_Connect(cnxParams, connPtr)
'MsgBox(VixDiskLib_GetErrorText(err, Nothing))
MsgBox("conn " & err.ToString & " : connPtr " & connPtr.ToString)
VixDiskLib_Exit()
Attachments:
- Wrapper.vb (12.4 K)