Matt,
Why would you want to lock the desktop window anyway? You really only want to lock the VFP window. In VFP7 you could use the _vfp.hWnd property. In earlier versions you can use a function from foxtools to get the hwnd of the VFP window.
>This classic trick below doesn't seem to work on our new computers running Win XP Pro. I t worked fine on Win NT 4.
>
>Am I missing something?
>
>Of course, I want to hide the "Printing page x..." window that pops up. I found this code on UT a long time ago, and it was working fine. It does'nt give any errors, it just does not hide the window like it used to.
>
>
>
>DECLARE INTEGER GetDesktopWindow IN WIN32API
>DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle
>
>hWin = GetDeskTopWindow()
>LockWindowUpdate(hWin)
>
>*report form ...*
>
>LockWindowUpdate(0)