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 Library Reference - <u>synopsis:</u> 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.

    The _dwShutDown function is one of the support functions that can be
    called from an application using Watcom's default windowing support.

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

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:
    Windows, Win386, Win32, OS/2-32

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

See Also: _dwDeleteOnClose _dwSetAboutDlg

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