>When i try to put 128 in PrintWindow, i got the same error...
Hmmm...I wonder if it's a language-version problem of some sort in your GDI, where the error shows up - I see my GDI EXE and DLL are English versions, are yours?. Also, have you tried downloading Steven Ruhl's "Print Screens from VFP" from the files section here, and unzipping and running it?
It has all the DIB files, why don't you do that and see if it works? After all, my FAQ is really just a simplified version of part of that, except for the GetDesktopWindow(), and that seems to be working fine for you.
If Steven sees this post (I'll cc him), maybe he can jump in if he knows anyone that has tried the DIB stuff in a non-English environment, or has any other ideas. Steven?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.