在Windows CE下,coredll.dll的作用相当于Win32的kernel32.dll
查看API方法,在在命令行下进入dumpbin.exe 所在文件夹,输入 dumpbin /EXPORTS coredll.dll > coredlldef.txt
[DllImport("CoreDll.dll")]
public static extern uint CreateFile(string lpFileName, uint dwDesiredAccess, int dwShareMode,
int lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, int hTemplateFile);
[DllImport("CoreDll.dll")]
public static extern bool DeviceIoControl(uint hDevice, uint dwIoControlCode, ref Command_par lpInBuffer,
int nInBufferSize, ref CanStatusPar_t lpOutBuffer, int nOutBufferSize, ref int lpBytesReturned,
ref OVERLAPPED lpOverlapped);