views:

910

answers:

2

I have a problem, I have an application which has a toolbar icon to launch the system onscreen keyboard. This all works fine with the exception of Windows Vista and Windows 7 beta. The UAC appears to be getting in the way and preventing the osk.exe from running.

I have read that because it is used on the logon screen it will not prompt the user for authentication. If I turn the UAC off it works, however this is not an option as the customer wants it to run out of the box.

Is there anything I can do to get around this?

+1  A: 

Isn't a possibility to try to implement your own OSK so it runs with the same privilegies as your application?

Manuel Ferreria
I do not really want to reinvent the wheel, plus localised keyboards are a requirement, with 20 layouts that will be a royal pain.
Phil Hannent
+2  A: 

OK, it was more about specifics it turned out.

I was using Qt's QProcess::startDetached which I believe uses the CreateProcess function call on windows.

I changed the code to use the ShellExecute() function call and it works like a charm.

Strangely...

Phil Hannent