This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[Patch]: winsup/w32api/include
- From: "Pierre A. Humblet" <pierre at phumblet dot no-ip dot org>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 10 Oct 2003 21:02:15 -0400
- Subject: [Patch]: winsup/w32api/include
For the SM_REMOTESESSION in winuser.h,
see
<http://vbvbvb.com/jp/gtips/1051/gGetSystemMetricsSmRemotesession.html>
<http://tdg.lsi.us.es/pipermail/csharp-dist/2003-March/002832.html>
For SE_CREATE_GLOBAL_NAME in winnt.h, that name is an educated guess
from its value.
I don't know if guards depending on the Windows version are needed.
Pierre
2003-10-11 Pierre Humblet <pierre.humblet@ieee.org>
* include/winnt.h (SM_REMOTESESSION): Add define.
* include/winuser.h (SE_CREATE_GLOBAL_NAME): Ditto.
Index: winnt.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winnt.h,v
retrieving revision 1.72
diff -u -p -r1.72 winnt.h
--- winnt.h 26 Sep 2003 08:19:30 -0000 1.72
+++ winnt.h 10 Oct 2003 23:54:44 -0000
@@ -470,6 +470,7 @@ typedef DWORD FLONG;
#define SE_SYSTEM_ENVIRONMENT_NAME TEXT("SeSystemEnvironmentPrivilege")
#define SE_CHANGE_NOTIFY_NAME TEXT("SeChangeNotifyPrivilege")
#define SE_REMOTE_SHUTDOWN_NAME TEXT("SeRemoteShutdownPrivilege")
+#define SE_CREATE_GLOBAL_NAME TEXT("SeCreateGlobalPrivilege")
#define SE_GROUP_MANDATORY 1
#define SE_GROUP_ENABLED_BY_DEFAULT 2
#define SE_GROUP_ENABLED 4
Index: winuser.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winuser.h,v
retrieving revision 1.73
diff -u -p -r1.73 winuser.h
--- winuser.h 30 Sep 2003 07:51:25 -0000 1.73
+++ winuser.h 10 Oct 2003 23:54:51 -0000
@@ -918,6 +918,7 @@ extern "C" {
#else
#define SM_CMETRICS 83
#endif
+#define SM_REMOTESESSION 0X1000
#define ARW_BOTTOMLEFT 0
#define ARW_BOTTOMRIGHT 1
#define ARW_HIDE 8