TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andreas Just
from: hugo landsman
date: 1996-11-05 16:52:36
subject: window allways on top

hi Andreas,

 AJ> With DosQProcStatus I get the Session ID, but not the window
 AJ> handle, and it seems there are no Toolkit (better IOCL) functions
 AJ> to reach the HWND ?

Have a look at WinQuerySwitchList: somewhere deep down there is a
 
 Switch-list control block structure. 

 typedef struct _SWCNTRL {
   HWND         hwnd;                   /*  Window handle. */
   HWND         hwndIcon;               /*  Window-handle icon. */
   HPROGRAM     hprog;                  /*  Program handle. */
   PID          idProcess;              /*  Process identity. */
   ULONG        idSession;              /*  Session identity. */
   ULONG        uchVisibility;          /*  Visibility: */
   ULONG        fbJump;                 /*  Jump indicator: */
   CHAR         szSwtitle[MAXNAMEL+4];  /*  Switch-list control block title
(null-terminated). */
   ULONG        bProgType;              /*  Program type. */
 } SWCNTRL;
 
 typedef SWCNTRL *PSWCNTRL;
 

for all.

groetjes,
	  hugo
--
E-mail: huug{at}telebyte.nl
* Origin: Yet Another Nightfly Point (2:283/608.5)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 283/608 6 1 280/801 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.