Tim,
>a) Close another program (I tried:
>DECLARE SHORT CloseHandle IN WIN32API INTEGER hHandle
>DECLARE INTEGER FindWindow IN Win32API STRING, STRING
>hWnd = FindWindow(0,'Print Controller')
>=CloseHandle(hWnd)
>
Check out the API section for the SendMessage WinAPI function. The example shows sending a WM_CLOSE message.
>b) Run a program in the background. (I tried the LaunchApp via
>CreateProcess the ShowWindow which works but the screen jumps around a lot..)
>
>but I would like the program to startup run in the background or hidden
>from the calling EXE.)
>
>c) Check the Print Queue if all jobs are completed...
>
Check out
www.foxprinter.com. It provides a wrapper for the Printer API functions.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao