I'm trying to load this structure for a call to DeviceIoControl :
typedef struct _NDISUIO_QUERY_ OID {
NDIS_OID Oid;
PTCHAR ptcDeviceName;
UCHAR Data[sizeof(ULONG)];
} NDISUIO_QUERY_O ID, *PNDISUIO_QUERY _OID;
I created the equivalent in VB:
<StructLayout(L ayoutKind.Seque ntial)_
Public Class NDISUIO_QUERY_O ID ' nuiouser.h
Public Oid As Int32
Public ptcDeviceName As IntPtr
<MarshalAs(Unma nagedType.ByVal TStr, SizeConst:=4)_
Public Data As String
End Class
What I need to proceed is: How do I get the pointer to my DeviceName string
to plug into ptcDeviceName? If it was C, I could just do ptcDeviceName =
&DeviceName -- I don't know how to do this in VB.
Thanks for any help,
Steve
typedef struct _NDISUIO_QUERY_ OID {
NDIS_OID Oid;
PTCHAR ptcDeviceName;
UCHAR Data[sizeof(ULONG)];
} NDISUIO_QUERY_O ID, *PNDISUIO_QUERY _OID;
I created the equivalent in VB:
<StructLayout(L ayoutKind.Seque ntial)_
Public Class NDISUIO_QUERY_O ID ' nuiouser.h
Public Oid As Int32
Public ptcDeviceName As IntPtr
<MarshalAs(Unma nagedType.ByVal TStr, SizeConst:=4)_
Public Data As String
End Class
What I need to proceed is: How do I get the pointer to my DeviceName string
to plug into ptcDeviceName? If it was C, I could just do ptcDeviceName =
&DeviceName -- I don't know how to do this in VB.
Thanks for any help,
Steve
Comment