Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run perl.exe in Interactive WindowStation?

Status
Not open for further replies.

sebastiannielsen

Programmer
Jun 1, 2003
25
SE
Im trying to build a own VNC client.
Here is it:

But when im click anywhere on image, the DLL file User32.dll returns "1459", which on google "1459 system error codes" is:

ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION
This operation requires an interactive window station.


How i do to run this script (set.cgi) or the perl.exe engine in Interactive windowstation (winsta0)?
 
hmmmm

What does Win Terminal Server do when you click on an image? Can you trace the operation and tell what DLL it's calling?


Mike

You cannot really appreciate Dilbert unless you've read it in the
original Klingon.

Want great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Im using SetCursorPos from user32.dll

When clicking anywhere on the image, 2 coordinates are passed to the server (The image is the screen of my server). Then an perl script calls SetCursorPos to set the cursor pos to the given coordinates. But the problem is still that it returns 1459.
 
I have solved the problem partially:

If i run the apache from command-line, the function returns "1" and suceed. (mouse pos changes)

But when im running the apache from the apache control (so its started as service), the script returns 1459 (Requires interactive windowstation)

Can I in the script add some API-functions, so the script runs in Winsta0?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top