From b71a0e33ac64795b9a64b448affd2f5d66723284 Mon Sep 17 00:00:00 2001 From: Louis Lenders Date: Fri, 1 Sep 2023 13:29:28 +0200 Subject: [PATCH] wldp: Add WldpGetLockdownPolicy stub. --- dlls/wldp/wldp.c | 13 +++++++++++++ dlls/wldp/wldp.spec | 2 +- include/Makefile.in | 1 + include/wldp.h | 46 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 include/wldp.h diff --git a/dlls/wldp/wldp.c b/dlls/wldp/wldp.c index 64c0c58aae8..ffd9b6084c7 100644 --- a/dlls/wldp/wldp.c +++ b/dlls/wldp/wldp.c @@ -22,6 +22,8 @@ #include "windef.h" #include "winbase.h" +#include "wldp.h" + #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(wldp); @@ -36,3 +38,14 @@ HRESULT WINAPI WldpIsDynamicCodePolicyEnabled(BOOL *is_enabled) *is_enabled = FALSE; return S_OK; } + +/*********************************************************************** + * WldpGetLockdownPolicy (wldp.@) + */ +HRESULT WINAPI WldpGetLockdownPolicy(WLDP_HOST_INFORMATION *info, DWORD *state, DWORD flags) +{ + FIXME("%p %p %lu\n", info, state, flags); + + *state = 0; + return S_OK; +} diff --git a/dlls/wldp/wldp.spec b/dlls/wldp/wldp.spec index a692efca291..7e5de1d372d 100644 --- a/dlls/wldp/wldp.spec +++ b/dlls/wldp/wldp.spec @@ -16,7 +16,7 @@ @ stub WldpCheckWcosDeviceEncryptionSecure @ stub WldpDisableDeveloperMode @ stub WldpEnableDeveloperMode -@ stub WldpGetLockdownPolicy +@ stdcall WldpGetLockdownPolicy(ptr ptr long) @ stub WldpIsAllowedEntryPoint @ stub WldpIsClassInApprovedList @ stub WldpIsDebugAllowed diff --git a/include/Makefile.in b/include/Makefile.in index ec49c1f7a35..d2df2383ea2 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -953,6 +953,7 @@ SOURCES = \ winuser.rh \ winver.h \ wlanapi.h \ + wldp.h \ wmcodecdsp.idl \ wmdrmsdk.idl \ wmistr.h \ diff --git a/include/wldp.h b/include/wldp.h new file mode 100644 index 00000000000..c70e5feb8f8 --- /dev/null +++ b/include/wldp.h @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Louis Lenders + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef WLDP_H +#define WLDP_H + +typedef enum WLDP_HOST_ID +{ + WLDP_HOST_ID_UNKNOWN, + WLDP_HOST_ID_GLOBAL, + WLDP_HOST_ID_VBA, + WLDP_HOST_ID_WSH, + WLDP_HOST_ID_POWERSHELL, + WLDP_HOST_ID_IE, + WLDP_HOST_ID_MSI, + WLDP_HOST_ID_ALL, + WLDP_HOST_ID_MAX +} WLDP_HOST_ID; + +typedef struct WLDP_HOST_INFORMATION +{ + DWORD dwRevision; + WLDP_HOST_ID dwHostId; + const WCHAR* szSource; + HANDLE hSource; +} WLDP_HOST_INFORMATION, *PWLDP_HOST_INFORMATION; + +HRESULT WINAPI WldpGetLockdownPolicy(WLDP_HOST_INFORMATION*,DWORD*,DWORD); +HRESULT WINAPI WldpIsDynamicCodePolicyEnabled(BOOL*); + +#endif