CreateFile

the parameters must follow the subsequent scheme:

CreateFile(
    "\\\\.\\farc",                 // handlename of the driver
                                   //    (fixed to \\\\.\\sharcaly with SH ARCALYZER)
    GENERIC_READ | GENERIC_WRITE,  // Access
    0,                             // ShareMode
    NULL,                          // Security_Attributes
    OPEN_EXISTING,                 // Create
    FILE_FLAG_OVERLAPPED,          // File Attributes
    NULL                           // Template
    );

FILE_FLAG_OVERLAPPED means, that the driver is used in asynchronous mode
if replaced with FILE_ATTRIBUTE_NORMAL, the driver is used in synchronous mode.
For a detailed reflection of asynchronous/synchronous mode see also here.

The other parameters must not be changed!

Possible errors (see also Error codes):
E_FARC_DRIVER_NOT_STARTED

Programmers Guide
Contents