summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2013-03-18 15:38:20 +0200
committerArnon Gilboa <agilboa@redhat.com>2013-03-18 15:38:20 +0200
commitdd9d1f41cace5e73bfd847ff8d0cfa303e141b1c (patch)
treeee9ff1191591b352082d16f0662f7d83d5ebfa48 /common
parent136c8d3c9467326b5cd47bfb47241e065a7c72d2 (diff)
vdagent: add vdagent_helper to support mouse when UAC dialog takes focus
Running the helper with ShellExecute(..."runas"...) is the way to SendInput() to the UAC dialog in Windows Vista and above. http://stackoverflow.com/questions/2426594/starting-a-uac-elevated-process- from-a-non-interactive-service-win32-net-power http://www.microsoft-questions.com/microsoft/Platform-SDK-Security/29620442/ how-to-proper-use-sendinput-to-a-elevated-window-from-a-service.aspx rhbz #908422
Diffstat (limited to 'common')
-rw-r--r--common/vdcommon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/vdcommon.h b/common/vdcommon.h
index 177721c..5099fdc 100644
--- a/common/vdcommon.h
+++ b/common/vdcommon.h
@@ -34,6 +34,7 @@ typedef CRITICAL_SECTION mutex_t;
#define VD_AGENT_REGISTRY_KEY "SOFTWARE\\Red Hat\\Spice\\vdagent\\"
#define VD_AGENT_STOP_EVENT TEXT("Global\\vdagent_stop_event")
+#define VD_AGENT_NAMED_PIPE TEXT("\\\\.\\pipe\\vdagent")
#if defined __GNUC__
#define ALIGN_GCC __attribute__ ((packed))