23#define DEFBROWSERSTREAM L"Settings"
24#define DEFAULT_VID GUID_NULL
25#define CURRENT_VERSION ( DEFFOLDERSETTINGS::VER_XP )
27template<
class S,
class D>
static void CopyTo(
const S &Src,
D &
Dst)
29 Dst.FolderSettings = Src.FolderSettings;
#define STDMETHODCALLTYPE
#define RegCloseKey(hKey)
static HRESULT ResetBrowserSettings()
static HRESULT Load(DEFFOLDERSETTINGS &dfs)
STDMETHOD() Get(struct DEFFOLDERSETTINGS *pFDS, UINT cb) override
static HRESULT Save(const DEFFOLDERSETTINGS *pFDS)
static HRESULT SaveBrowserSettings(const SBFOLDERSETTINGS &sbfs)
STDMETHOD() Set(const struct DEFFOLDERSETTINGS *pFDS, UINT cb, UINT unknown) override
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
HKEY WINAPI SHGetShellKey(DWORD flags, LPCWSTR sub_key, BOOL create)
DWORD WINAPI SHDeleteValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue)
DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, DWORD dwType, LPCVOID pvData, DWORD cbData)
static void CopyTo(const S &Src, D &Dst)
static void EnsureValid(FOLDERSETTINGS &fs)
static void InitializeDefaults(DEFFOLDERSETTINGS &dfs)
#define ERROR_FILE_NOT_FOUND
static HMODULE MODULEINFO DWORD cb
HRESULT HResultFromWin32(DWORD hr)
LSTATUS WINAPI SHRegGetValueW(_In_ HKEY hkey, _In_opt_ LPCWSTR pszSubKey, _In_opt_ LPCWSTR pszValue, _In_ SRRF srrfFlags, _Out_opt_ LPDWORD pdwType, _Out_writes_bytes_to_opt_(*pcbData, *pcbData) LPVOID pvData, _Inout_opt_ LPDWORD pcbData)
#define SRRF_RT_REG_BINARY
FOLDERSETTINGS FolderSettings
#define FIELD_OFFSET(t, f)
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version