Trying to write a wrapper for a C DLL.
The C Native signature is:
BOOL WINAPI PBM_OpenCard (DWORD* CardHandle, TCHAR* CardName, void* Module,
DWORD ModuleId, WORD ShareFlags, WORD LoadFlags)
To which documentation says: "Module
set to NULL
- reserved"
This what my c# signature looks like:
public static extern bool PBM_OpenCard(ref uint CardHandle,
StringBuilder CardName, System.IntPtr Module, uint ModuleId,
ushort ShareFlags, ushort LoadFlags)
What do i pass in for the Module argument in my C# App? I tried using System.IntPrt.Zero
and it compiled, but not sure if that is the right way to do it since I can't interface with the hardware at this point.