Thread: Is WM_COMPACTING obsolete?

  1. #1
    jasondoucette.com JasonD's Avatar
    Join Date
    Mar 2003
    Posts
    278

    Is WM_COMPACTING obsolete?

    Is the WM_COMPACTING notification obsolete? Its MSDN page states that the message is provided "only for compatibility with 16-bit Microsoft® Windows®-based applications".

    Should it be processed, or does the OS even send it anymore? It is hard to find information on this message. The MSDN does not state any notification that has superseded it.

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    interesting message. I don't recall ever seeing that message used in code. It would appear that it doesn't get sent in 32 bit windows. I think you can safely not use it.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    84
    "This message is provided only for compatibility with 16-bit Microsoft® Windows®-based applications."
    "Minimum operating systems: Windows 95, Windows NT 3.1"

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    I think it will be sent by an OS >= 95/NT3.1, but I'm not writting a test app to find out

    I've used other "provided on for 16-bit compatibility" stuff in the past on 2000/XP boxes.

    gg

  5. #5
    jasondoucette.com JasonD's Avatar
    Join Date
    Mar 2003
    Posts
    278
    I see that I am not the only one perplexed by this. Note that the MSDN page states: "...message is sent to all top-level windows when the system detects more than 12.5 percent of system time over a 30- to 60-second interval is being spent compacting memory." Do the latest OS's 'compact memory', anymore? If they do not, then the message is useless. It seems to me if there were a need for it, it would have been superseded by another message.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Warning: -malign-functions is obsolete ?
    By serge in forum C++ Programming
    Replies: 1
    Last Post: 05-15-2008, 03:46 AM
  2. Errors: ISO scoping, obsolete binding??
    By -JM in forum C++ Programming
    Replies: 3
    Last Post: 10-28-2005, 08:56 PM
  3. obsolete compiler vs new
    By Tommaso in forum Game Programming
    Replies: 7
    Last Post: 11-01-2002, 12:19 AM
  4. Will MFC become obsolete?
    By Manitoadlet in forum C++ Programming
    Replies: 6
    Last Post: 09-09-2002, 02:06 PM
  5. programming obsolete status...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 12-19-2001, 02:57 AM