And the prize goes to:

Milo van der Linden!

I found that not using define but coding the values
into the createProcessA statement did the trick. So
no;
 > > Define NORMAL_PRIORITY_CLASS = &H20&
 > > Define INFINITE = -1&
 
but:

'nRetVal = CreateProcessA(0, cmdLine, 0, 0, 1,
NORMAL_PRIORITY_CLASS, 0, 0, NameStart, NameOfProc)
nRetVal = CreateProcessA(0, cmdLine, 0, 0, 1, &H20 ,
0, 0, NameStart, NameOfProc)
nRetVal = NameOfProc.hProcess
'nRetVal = WaitForSingleObject(NameOfProc.hProcess,
INFINITE)
nRetVal = WaitForSingleObject(NameOfProc.hProcess, -1)

Thanks Martin for putting the ball on the dot, I only
needed to kick it into the goal!

regards,


=====
Ing. M.F. (Milo) van der Linden
NetGIS
kvk. 30166407
ABN Amro 57.64.10.535
NL - 3437TT  NIEUWEGEIN
+31(0)616598808

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to