Austin English : kernel32: Add a stub for GetSystemDEPPolicy.

Alexandre Julliard julliard at winehq.org
Wed Sep 22 14:47:53 CDT 2010


Module: wine
Branch: master
Commit: e99612c4c843ac28c6e29ec3dd0bf78546d92646
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e99612c4c843ac28c6e29ec3dd0bf78546d92646

Author: Austin English <austinenglish at gmail.com>
Date:   Tue Sep 21 21:17:29 2010 -0700

kernel32: Add a stub for GetSystemDEPPolicy.

---

 dlls/kernel32/kernel32.spec |    1 +
 dlls/kernel32/process.c     |    9 +++++++++
 include/winbase.h           |    7 +++++++
 3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 8a33013..43e339b 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -624,6 +624,7 @@
 @ stdcall GetSystemDefaultLCID()
 @ stdcall GetSystemDefaultLangID()
 @ stdcall GetSystemDefaultUILanguage()
+@ stdcall GetSystemDEPPolicy()
 @ stdcall GetSystemDirectoryA(ptr long)
 @ stdcall GetSystemDirectoryW(ptr long)
 @ stdcall GetSystemInfo(ptr)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index c1816a8..d4c2063 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -3385,3 +3385,12 @@ DWORD WINAPI WTSGetActiveConsoleSessionId(void)
     FIXME("stub\n");
     return 0;
 }
+
+/**********************************************************************
+ *           GetSystemDEPPolicy     (KERNEL32.@)
+ */
+DEP_SYSTEM_POLICY_TYPE WINAPI GetSystemDEPPolicy(void)
+{
+    FIXME("stub\n");
+    return OptIn;
+}
diff --git a/include/winbase.h b/include/winbase.h
index 2c4b5d5..24f6f33 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1234,6 +1234,13 @@ typedef struct tagHW_PROFILE_INFOW {
 DECL_WINELIB_TYPE_AW(HW_PROFILE_INFO)
 DECL_WINELIB_TYPE_AW(LPHW_PROFILE_INFO)
 
+typedef enum _DEP_SYSTEM_POLICY_TYPE {
+    AlwaysOff = 0,
+    AlwaysOn = 1,
+    OptIn = 2,
+    OptOut = 3
+} DEP_SYSTEM_POLICY_TYPE;
+
 /* Event Logging */
 
 #define EVENTLOG_FULL_INFO          0




More information about the wine-cvs mailing list