CreateFile (coredll)
Last changed: -202.167.40.101

.
Summary
TODO - a short description

C# Signature:

[DllImport("coredll.dll")]
static extern IntPtr CreateFile(String lpFileName, UInt32 dwDesiredAccess, UInt32 dwShareMode, IntPtr lpSecurityAttributes, UInt32 dwCreationDisposition, UInt32 dwFlagsAndAttributes, IntPtr hTemplateFile);

VB .NET Signature:

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

User-Defined Types:

None.

Notes:

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.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

TODO

Documentation
CreateFile on MSDN