kernel32: add a stub for GetSystemDEPPolicy() (try 2)

Austin English austinenglish at gmail.com
Sun Sep 12 13:46:30 CDT 2010


-- 
-Austin
-------------- next part --------------
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..5be1de4 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -3385,3 +3385,14 @@ DWORD WINAPI WTSGetActiveConsoleSessionId(void)
     FIXME("stub\n");
     return 0;
 }
+
+/**********************************************************************
+ *           GetSystemDEPPolicy     (KERNEL32.@)
+ */
+DEP_SYSTEM_POLICY_TYPE WINAPI GetSystemDEPPolicy(void)
+{
+    FIXME("stub\n");
+    return AlwaysOff;
+}
+
+
diff --git a/include/winbase.h b/include/winbase.h
index ea10696..da64aac 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1230,6 +1230,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-patches mailing list