[DllImport("coredll.dll")]
static extern IntPtr CreateFile(String lpFileName, UInt32 dwDesiredAccess, UInt32 dwShareMode, IntPtr lpSecurityAttributes, UInt32 dwCreationDisposition, UInt32 dwFlagsAndAttributes, IntPtr hTemplateFile);
Declare Function CreateFile Lib "coredll.dll" (lpFileName as String, dwDesiredAccess As Int32, dwShareMode As Int32, lpSecurityAttributes As IntPtr, dwCreationDisposition As Int32, dwFlagsAndAttributes As Int32, hTemplateFile as IntPtr) As IntPtr
None.
lpSecurityAttributes can be left as an IntPtr - CE doesn't use it. Set this to be 0
.
The VB .NET declaration uses Int32 rather than UInt32 as the latter is not CLS-Compliant. You may need to check the usage.
You will need this API if you are doing serial comms.
Please add some!
Please add some!
TODO