createfile (coredll)
Last changed: -202.167.40.101

.
Summary
TODO - a short description

C# Signature:

[DllImport("coredll", SetLastError = true)]
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" (ByVal lpFileName As String, ByVal dwDesiredAccess As Integer, ByVal dwShareMode As Integer, ByVal lpSecurityAttributes As Integer, ByVal dwCreationDisposition As Integer, ByVal dwFLagsAndAttributes As Integer, ByVal hTemplateFile As Integer) As Integer

User-Defined Types:

None.

Notes:

lpSecurityAttributes can be left as an IntPtr - CE doesn't use it. Set this to be IntPtr.Zero.

You'll need this API if you're doing serial comms.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

N/A

Documentation
CreateFile on MSDN