flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > How to know the window´s widht

Author
Thread Post new topic Reply to topic
Anton Galitch



Joined: 12 Oct 2004
Posts: 2
Location: inet
Anton Galitch 12 Oct 2004, 14:28
Helo.
How can I know the window´s width in program?
Post 12 Oct 2004, 14:28
View user's profile Send private message MSN Messenger Reply with quote
drh3xx



Joined: 11 Sep 2004
Posts: 34
drh3xx 12 Oct 2004, 15:03
You either need to use this system call:
Code:
09 = PROCESS INFO
   
     ebx pointer to 1024 bytes table
     ecx process number or -1 = who am I
     ret: eax number of processes
          table :  +00  dword   cpu usage
                   +04   word   processes position in windowing stack
                   +06   word   window stack value at ecx
                   +10  12 db   name of the process
                   +22  dword   start of processes memory
                   +26  dword   memory used by process
                   +30  dword   PID of the process
                   +34  dword   window x start
                   +38  dword   window y start
                   +42  dword   window x size
                   +46  dword   window y size
                   +50   word   process slot state
    
Or keep track of it in a local variable.
Hope that helps.
Post 12 Oct 2004, 15:03
View user's profile Send private message Reply with quote
Anton Galitch



Joined: 12 Oct 2004
Posts: 2
Location: inet
Anton Galitch 12 Oct 2004, 21:32
drh3xx wrote:
You either need to use this system call:
Code:
09 = PROCESS INFO
   
     ebx pointer to 1024 bytes table
     ecx process number or -1 = who am I
     ret: eax number of processes
          table :  +00  dword   cpu usage
                   +04   word   processes position in windowing stack
                   +06   word   window stack value at ecx
                   +10  12 db   name of the process
                   +22  dword   start of processes memory
                   +26  dword   memory used by process
                   +30  dword   PID of the process
                   +34  dword   window x start
                   +38  dword   window y start
                   +42  dword   window x size
                   +46  dword   window y size
                   +50   word   process slot state
    
Or keep track of it in a local variable.
Hope that helps.


thanx Smile
Post 12 Oct 2004, 21:32
View user's profile Send private message MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.