Y
Y. Sivaram
I want to P/Invoke the following API
extern "C" __declspec(dllexport) BOOL SDIOCamData(HANDLE hCom, Imagecolor
&imgclr,UCHAR *ScreenBufShow,DWORD &ll) ;
typedef struct imgcolor_struct {
UCHAR avRed;
UCHAR avGreen;
UCHAR avBlue;
UCHAR avY;
}Imagecolor;
Is the following VB.NET equivalent is correct??
Private Declare Function SDIOCamData Lib "SDIOCam.dll" (ByVal hCom As
IntPtr, ByRef imgclr As ImageColor, ByRef ScreenBufShow As Byte(), ByRef ll
As IntPtr)
Public Structure ImageColor
Dim avRed As Byte
Dim avGreen As Byte
Dim avBlue As Byte
Dim avY As Byte
End Structure
extern "C" __declspec(dllexport) BOOL SDIOCamData(HANDLE hCom, Imagecolor
&imgclr,UCHAR *ScreenBufShow,DWORD &ll) ;
typedef struct imgcolor_struct {
UCHAR avRed;
UCHAR avGreen;
UCHAR avBlue;
UCHAR avY;
}Imagecolor;
Is the following VB.NET equivalent is correct??
Private Declare Function SDIOCamData Lib "SDIOCam.dll" (ByVal hCom As
IntPtr, ByRef imgclr As ImageColor, ByRef ScreenBufShow As Byte(), ByRef ll
As IntPtr)
Public Structure ImageColor
Dim avRed As Byte
Dim avGreen As Byte
Dim avBlue As Byte
Dim avY As Byte
End Structure