home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 41,674 of 42,547   
   Paul to pyotr filipivich   
   Re: how to get the title into task mange   
   21 Sep 18 12:10:25   
   
   XPost: alt.windows7.general   
   From: nospam@needed.invalid   
      
   pyotr filipivich wrote:   
   > Herbert Kleebauer  on Thu, 20 Sep 2018 21:58:37 +0200   
   > typed in alt.windows7.general  the following:   
   >> The source code:   
   >>   
   >> winmain::   
   >>   
   >>         jsr.l   (GetCommandLine)   
   >>                                 ; skip program name   
   >>         eor.l   r1,r1           ; not within "" flag   
   >>         dec.l   r0   
   >> _20:    inc.l   r0   
   >>         cmp.b   #0,(r0)   
   >>         beq.b   _10   
   >>         cmp.b   #'"',(r0)   
   >>         bne.b   _30   
   >>         not.l   r1   
   >> _30:    or.l    r1,r1   
   >>         bne.b   _20   
   >>         cmp.b   #' ',(r0)   
   >>         bne.b   _20   
   >>         inc.l   r0   
   >>   
   >> _10:    move.l  r0,-(sp)   
   >>         jsr.l   (GetConsoleWindow)   
   >>         move.l  r0,-(sp)   
   >>         jsr.l   (SetWindowTextA)   
   >>         moveq.l #0,-(sp)   
   >>         jsr.l   (ExitProcess)   ; exit program   
   >   
   > 	Hmmm - where/how do I put/use/invoke this?   
      
   That looks like asm country (assembler).   
      
   Herbert mentions "SetWindowTextA" and user32.dll,   
   so you'll at least need to link those in.   
      
   https://stackoverflow.com/questions/34467592/how-to-assemble-and   
   link-asm-files-to-a-win32-executable   
      
   HTH,   
       Paul   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca