Results 1 to 3 of 3

Thread: Creating a window before the main foreground window

  1. #1

    Creating a window before the main foreground window

    Hello,

    I need to create a window before the main window in order to 'grab' the focus, then i destroy it and let the main window do all the work.

    My problem is - does window treat the 'second window' as the main app foreground window, or does it assign a slightly lower priority i.e. it runs slower?

    Since the main window is usually a DX window, I am a bit scared about...

    Does anyone know something about?
    (there are alternatives to this solution, but... well if this one works it's ok for me)


    Thanks in advance,
    Maximus
    I want to know God's thoughts ...the rest are details.
    (A. Einstein)
    --------
    ..."a shellcode is a command you do at the linux shell"...

  2. #2
    Teach, Not Flame Kayaker's Avatar
    Join Date
    Oct 2000
    Posts
    4,114
    Blog Entries
    5
    Hiya,

    As a guess I'd assume that all maximized foreground windows would have the same default process priority, or as set with something like SetPriorityClass.

    Hm, there's something about Priority Boosts...

    • When a process that uses NORMAL_PRIORITY_CLASS is brought to the foreground, the scheduler boosts the priority class of the process associated with the foreground window, so that it is greater than or equal to the priority class of any background processes. The priority class returns to its original setting when the process is no longer in the foreground.
    • When a window receives input, such as timer messages, mouse messages, or keyboard input, the scheduler boosts the priority of the thread that owns the window.



    http://msdn.microsoft.com/en-us/library/ms684828(VS.85).aspx

    Kayaker

  3. #3
    ...well, I were finally able to fix the root error that caused my problem... a bad developer performing a poor DX implementation and, worse of all, the discovery that M$ relies on your application to be 'fast enough' to do certain things, otherwise "bad things" happens.

    It is always nice to discover that Windows XP relies on your good luck to run DX applications...
    I want to know God's thoughts ...the rest are details.
    (A. Einstein)
    --------
    ..."a shellcode is a command you do at the linux shell"...

Similar Threads

  1. ascii window
    By nofx in forum OllyDbg Support Forums
    Replies: 2
    Last Post: November 29th, 2005, 00:59
  2. Change the window name
    By MagMa in forum OllyDbg Support Forums
    Replies: 4
    Last Post: November 14th, 2005, 16:47
  3. Dumping exe window
    By kittmaster in forum OllyDbg Support Forums
    Replies: 3
    Last Post: February 23rd, 2005, 05:24
  4. Changing the ID of a window , how to ?
    By Neitsa in forum OllyDbg Support Forums
    Replies: 3
    Last Post: July 29th, 2003, 09:59
  5. Patches window
    By helloword in forum Bugs
    Replies: 2
    Last Post: July 22nd, 2003, 00:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •