Thread: shutting down windows

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743

    Question shutting down windows

    Whenever you shut down Windows, that message comes up that says, "It is now safe to shut off your computer."

    That message is simply a BMP file (actually a .sys file, but in BMP format, you can open it using Paint).

    However, I am wondering how this message gets up there and stays up there if Windows is shut down. When the message comes up that says, "Please wait while Windows shuts down", that message is shutting off power to the hard drive, and closing stuff down.

    So how would that "It is now safe to shut off your computer" message stay on the screen. I assume it is one of the last things they do before the end of the main() function in Windows...and therefore, shortly after they display the message, the end of the main function comes. When the main function ends, all memory allocated by that program is cleared, therefore shouldnt the video memory be cleared and the screen become black?

    And Windows couldnt still be running while that message is up, because then when you pressed the power off button on your computer, that would be doing a hard shut down and it would not reach the end of the main function in Windows.

    So exactly how does that message stay up there, AFTER Windows shuts down?


    On a totally unrelated note: I heard somewhere that a bird egg is just one cell large. Is that true?
    My Website

    "Circular logic is good because it is."

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    And Windows couldnt still be running while that message is up, because then when you pressed the power off button on your computer, that would be doing a hard shut down and it would not reach the end of the main function in Windows.
    So? It doesn't need to reach the end of main. Rebooting clears the memory for it.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    > I heard somewhere that a bird egg is just one cell large. Is that true?

    Sure is - ostriches have the largest, making an ostrich egg the largest single cell out there.

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> I heard somewhere that a bird egg is just one cell large. Is that true?

    Like all true fertilized eggs, they start out as a single cell, however they begin dividing. So yes, it is true to say that a birds egg is a single cell initially, or a frogs egg, or a human egg.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 08:05 AM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  3. Dos differences in Windows NT and Windows XP
    By Ruchikar in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-17-2003, 11:36 PM
  4. Shutting Down windows
    By DirX in forum C++ Programming
    Replies: 2
    Last Post: 09-14-2003, 11:08 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM