home bbs files messages ]

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

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

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

   Message 9,091 of 10,840   
   Alan Barker to Steen Gellett   
   Re: Shell   
   18 Dec 04 13:30:09   
   
   From: AlanDOTBarker@bcs.org   
      
   steen,   
   the windows API call   
       WaitForSingleObject   
   waits for a process before continuing.   
      
   not exactly trivial as there is a few structures and other API calls:   
   CreateProcessA, Closehandle etc.   
   plenty of examples on the net (google for "WaitForSingleObject Visual   
   Basic")   
      
   if you cant find anything suitable I'll dig out some code.   
      
   HTH   
   Al.   
      
   VB declare:   
   Public Declare Function WaitForSingleObject Lib "Kernel32" (ByVal hProcess   
   As Long, ByVal dwMilliseconds As Long) As Long   
      
      
   "Steen Gellett"  wrote in message   
   news:41c416c9$0$307$edfadb0f@dread12.news.tele.dk...   
   > How can I make a program halt, so when shell command is finished my   
   program   
   > continues, but as long as the shell is running it must be on "hold" ??   
   >   
   >   
      
   --- 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