UltraVNC Users,
I have a fix for sending ctrl-alt-del sequences on Vista with UAC disabled. The trick is use the commercial SasLibEx library. It's quite easy to change the source code to work with that library. I have tested this on Vista and it works exactly as expected.
You can license the SasLibEx library from here:
http://www.remkoweijnen.nl/blog/2009/03 ... ows-vista/
Here is a diff of vnckeymap.cpp to use SasLibEx, this is all you need to change to make it work.
Index: vnckeymap.cpp
===================================================================
@@ -728,10 +731,11 @@
"Vista and runnning as system -> CAD\n");
// Try to run the special Vista cad.exe file...
- HANDLE ThreadHandle2;
- DWORD dwTId;
- ThreadHandle2 = CreateThread(NULL, 0, Cadthread, NULL, 0, &dwTId);
- CloseHandle(ThreadHandle2);
+// HANDLE ThreadHandle2;
+// DWORD dwTId;
+// ThreadHandle2 = CreateThread(NULL, 0, Cadthread, NULL, 0, &dwTId);
+// CloseHandle(ThreadHandle2);
+ DoSAS();
}
else if (vncService::VersionMajor()>=6)
{
@@ -828,3 +832,23 @@
SetShiftState(VK_MENU, FALSE);
}
}
+
+bool DoSAS()
+{
+ //init the library
+ static bool bdoneinit = false;
+ if (!bdoneinit)
+ {
+ if (!SASLibEx_Init()) {
+ return false;
+ }
+ bdoneinit = true;
+ }
+
+ //create CAD request on physical console
+ if (!SASLibEx_SendSAS(SAS_CONSOLE_SESSION)) {
+ return false;
+ }
+ return true;
+}
+