--- q_a/samples/event/asyn_io.c 2018/08/09 18:29:19 1.1.1.1 +++ q_a/samples/event/asyn_io.c 2018/08/09 18:29:40 1.1.1.2 @@ -1,3 +1,33 @@ +/****************************************************************************\ +** ** +** Microsoft Developer Support ** +** Copyright (c) 1992 Microsoft Corporation ** +** ** +** MODULE: IO.C ** +** ** +** ** +** PURPOSE: Demonstrates the basic concepts envolved when using ** +** asynchronous IO. In particular the main advantage is your ** +** app more correctly thread can go about doing useful work ** +** while waiting for IO. The main disadvantage is you must keep ** +** track of the file pointer. ** +** ** +** INPUT: Both the File to read and File to write to must be entered ** +** on via the command line. Note the file to write to must be ** +** unique. ** +** ** +** FUNCTIONS: ** +** ** +** Do_BackgroundTask() ** +** ** +** ** +** COMMENTS: Reads a file asynchronously writes to another synchronously ** +** ** +** ** +\***************************************************************************/ + + + #define STRICT #define NOMINMAX #include @@ -27,31 +57,6 @@ VOID Do_BackgroundTask ( VOID ) ; -/***************************************************************************\ -** ** -** PROGRAM: IO.C ** -** ** -** PURPOSE: Demonstrates the basic concepts envolved when using ** -** asynchronous IO. In particular the main advantage is your ** -** app more correctly thread can go about doing useful work ** -** while waiting for IO. The main disadvantage is you must keep ** -** track of the file pointer. ** -** ** -** INPUT: Both the File to read and File to write to must be entered ** -** on via the command line. Note the file to write to must be ** -** unique. ** -** ** -** FUNCTIONS: ** -** ** -** Do_BackgroundTask() ** -** ** -** ** -** COMMENTS: Reads a file asynchronously writes to another synchronously ** -** ** -** ** -\***************************************************************************/ - - void main ( int argc, char *argv[] ) {