Alex Henrie : shcore: Add GetFeatureEnabledState stub.

Alexandre Julliard julliard at winehq.org
Thu Nov 25 16:00:27 CST 2021


Module: wine
Branch: master
Commit: 67d0509f2f523935b0f4dbd3a713125252b37627
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=67d0509f2f523935b0f4dbd3a713125252b37627

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Nov 21 22:02:57 2021 -0700

shcore: Add GetFeatureEnabledState stub.

Also for Windows PC Health Check.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 .../api-ms-win-core-featurestaging-l1-1-0.spec                   | 2 +-
 dlls/shcore/main.c                                               | 9 +++++++++
 dlls/shcore/shcore.spec                                          | 2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/api-ms-win-core-featurestaging-l1-1-0/api-ms-win-core-featurestaging-l1-1-0.spec b/dlls/api-ms-win-core-featurestaging-l1-1-0/api-ms-win-core-featurestaging-l1-1-0.spec
index 696e57f695a..eb7bbe9460e 100644
--- a/dlls/api-ms-win-core-featurestaging-l1-1-0/api-ms-win-core-featurestaging-l1-1-0.spec
+++ b/dlls/api-ms-win-core-featurestaging-l1-1-0/api-ms-win-core-featurestaging-l1-1-0.spec
@@ -1,4 +1,4 @@
-@ stub GetFeatureEnabledState
+@ stdcall GetFeatureEnabledState(long long) shcore.GetFeatureEnabledState
 @ stub RecordFeatureError
 @ stub RecordFeatureUsage
 @ stdcall SubscribeFeatureStateChangeNotification(ptr ptr ptr) shcore.SubscribeFeatureStateChangeNotification
diff --git a/dlls/shcore/main.c b/dlls/shcore/main.c
index 213569b4acf..633628b4c72 100644
--- a/dlls/shcore/main.c
+++ b/dlls/shcore/main.c
@@ -2515,3 +2515,12 @@ void WINAPI SubscribeFeatureStateChangeNotification(FEATURE_STATE_CHANGE_SUBSCRI
 {
     FIXME("(%p, %p, %p) stub\n", subscription, callback, context);
 }
+
+/*************************************************************************
+ * GetFeatureEnabledState        [SHCORE.@]
+ */
+FEATURE_ENABLED_STATE WINAPI GetFeatureEnabledState(UINT32 feature, FEATURE_CHANGE_TIME change_time)
+{
+    FIXME("(%u, %u) stub\n", feature, change_time);
+    return FEATURE_ENABLED_STATE_DEFAULT;
+}
diff --git a/dlls/shcore/shcore.spec b/dlls/shcore/shcore.spec
index 836a90ee5cf..9ed7c87b0fe 100644
--- a/dlls/shcore/shcore.spec
+++ b/dlls/shcore/shcore.spec
@@ -9,7 +9,7 @@
 @ stdcall GetCurrentProcessExplicitAppUserModelID(ptr)
 @ stdcall GetDpiForMonitor(long long ptr ptr)
 @ stub GetDpiForShellUIComponent
-# @ stub GetFeatureEnabledState
+@ stdcall GetFeatureEnabledState(long long)
 # @ stub GetFeatureVariant
 @ stdcall GetProcessDpiAwareness(long ptr)
 @ stdcall GetProcessReference(ptr)




More information about the wine-cvs mailing list