Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <wdefwin.h>
    int _dwShutDown( void );

Description:
    The _dwShutDown function shuts down the default windowing I/O system.
     The application will continue to execute but no windows will be
    available for output.  Care should be exercised when using this function
    since any subsequent output may cause unpredictable results.

    When the application terminates, it will not be necessary to manually
    close the main window.

Returns:
    The _dwShutDown function returns 1 if it was successful and 0 if not.

See Also:
    _dwDeleteOnClose, _dwSetAboutDlg, _dwSetAppTitle, _dwSetConTitle,
    _dwYield

Example:
    #include <wdefwin.h>
    #include <stdio.h>

    void main()
      {
        FILE *sec;

        _dwSetAboutDlg( "Hello World About Dialog",
                        "About Hello World\n"
                        "Copyright 1994 by WATCOM\n" );
        _dwSetAppTitle( "Hello World Application Title" );
        _dwSetConTitle( 0, "Hello World Console Title" );
        printf( "Hello World\n" );
        sec = fopen( "CON", "r+" );
        _dwSetConTitle( fileno( sec ),
                        "Hello World Second Console Title" );
        _dwDeleteOnClose( fileno( sec ) );
        fprintf( sec, "Hello to second console\n" );
        fprintf( sec, "Press Enter to close this console\n" );
        fflush( sec );
        fgetc( sec );
        fclose( sec );
        _dwShutDown();
        /*
          do more computing that does not involve
          console input/output
        */
      }

Classification:
    WATCOM

Systems:
    Win, OS/2 2.x, NT

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson