I am running NT Workstation 4.0, w/SP3, and Vis. Basic EE w/SP3.
The following code should simply print the Window handle of the process matching both the class name and or the caption parameter.
lpClassName$ = "SciCalc"
lpCaption$ = "Calculator"
Debug.Print "Handle = "; FindWindow(lpClassName$, 0&)
Debug.Print "Handle = "; FindWindow(0&, lpCaption$)
Debug.Print "Handle = "; FindWindow(lpClassName$, lpCaption$)
This is code taken directly from Microsoft's Knowledge Base. Yet the first encounter with the API FindWindow causes an err = 53,
error= "File not found: User"
The same error occurs if you call GetDesktopWindow() - an API to return the handle of the desktop's window.
I have never encountered this problem before, but the last time I needed it, I was not running NT 4.0. We thought it might be a policies issue, and we modified the policies of the user logged into the workstation, along with simply trying to run the program from the "Administrator" logon.
Any of you out there who might have encountered this problem and have a suggestion or solution, please respond.
Thanks,
Jeff
:-<)
Jeffrey B. Hamlin
:-<)