The equivalent of
DWORD
is
Integer
in VB.NET; it would have been
Long
in VB6, which was still rooted in the 16-bit world.
Also, I don't think
CallingConvention.Cdecl
matches your
__stdcall
declaration.
Try:
Friend Class HiTiDLL
<DllImport("PavoApi.dll")> _
Public Shared Function PAVO_MoveCard(ByVal szPrinter As String, ByVal dwPosition As Integer) As Integer
End Function
Public Function HitiMoveCard(ByVal PrinterName As String, ByVal Position As Integer) As Integer
Return PAVO_MoveCard(PrinterName, Position)
End Function
End Class