WD_OpenDevice(PCSTR szDevPath,
HANDLE *phDevice,
HANDLE ahChannels[],
int *pnChannelNum,
int iVideoStandard = WD_VID_STD_PAL,
PCSTR szUser = NULL,
PCSTR szPswd = NULL);
is
[DllImport("WD_SDK.dll", SetLastError = true, CharSet = CharSet.Ansi)]
static extern int WD_OpenDevice(string szDevPath,
ref IntPtr phDevice,
IntPtr[] ahChannels,
ref int pnChannelNum,
int iVideoStandard = 1,
string szUser = null,
string szPswd = null);
Depending on what the function does, you might want to replace ref
with out
.