Windows API Reference - CreateFile Function

Create File Icon

This page details the function CreateFile within the Windows API.

Function Name: CreateFile

Purpose: Creates a new file handle, establishing a connection for writing to the specified file.

Parameters:

  1. file (O): The file to be created (required).
  2. mode (O): The file mode to use (required, can be 0 for default).
  3. attributes (O): A dictionary of attributes to be set on the new file (optional).

Return Value: A FileHandle object representing the newly created file.