Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WaitForSingleObject on child of shelled application

Status
Not open for further replies.

OraMs

Programmer
Feb 12, 2000
40
US

I wrote a DLL in VB6 that launches (opens) an application. This external application opens a main form and then a login dialog box. After user logs in, the external application displays another form. I then SendKeys from the DLL.

What I need is to be able to pause all VB activity until the user logs in. Apparently the WaitForSingleObject call applies to the shelled app. only. I tried using it by passing the handle to the login process but it did not work.

I have read FAQs and all threads found on a "WAIT" keyword search.

Anyone have any suggestions?
 
Hi,
WaitForSingleObject applies to Process, Thread, Semaphore,..
So, how can i get LOGIN process? i think Login is thread?
Jimmy Le
nhan_tiags@yahoo.com
 

Thanks Jimmy.

I am using the handle to the login window, not the handle to the main form. API does not pause VB. I'm in a Win98 OS environment. Here's part of the code I use:

'wait until login has completed
lngRetVal = WaitForSingleObjectEx(LoginWndHndl, INFINITE, 0)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top