>Could it be going to the spooler and hanging? Try opening the spooler window (Go to the Settings|Printers and double click on the printer's icon). See if a print job shows up when you try to print the screen.
>
>Try explicitly selecting the printer, instead of just clicking OK for the default printer.
I believe the last problem was that this code
cJobName = 'My Application'
nRetVal = PrintWindow(128,1,1,0,0,@cJobName) && 128 is valid Win95 desktop
gives a GDI.EXE fatal error crash. So it's running, but has some major conflict with GDI exe or dll. Other 1st-parameter values than 128 cause normal nRetVals, but do not print, of course. So I believe that both GetDesktopWindow and PrintWindow are working fine.
Michel, can you test this on a machine with an English version of Windows & GDI?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.