Hi,
i need help about custom marshaling..i have a native DLL..the parameters of the some DLL functions is defined with unsigned char*
for example;
typedef short apiStatus;
apiStatus __declspec(dllexport) __stdcall DrfGetFirmwareVersion (HANDLE hCom, unsigned char *major,unsigned char *minor, unsigned char ReaderAddr = 0xff);
the documentation that i have describing the arguments of the function as follows;
Input parameter:
- hCom-Serial port handle
- major-main version No. of firmware program
- minor-subversion No. of firmware program
- ReaderAddr- reader address, for fixed reader RS485 net application, default value “0XFF”(not applicable for handheld and module)
how can i declare this function into C#..??
Any help at all would be really appreciated