summaryrefslogtreecommitdiffstats
path: root/widget/windows/WinUtils.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-17 15:24:50 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-17 15:25:44 +0000
commit8151bb2b05f71c7fac9aefc94b97d7b703c8d803 (patch)
tree5b36af1946702a7a439fd1fd113913b9cee4d395 /widget/windows/WinUtils.h
parentb6b868b1bda0d82b85647f3e9ff2ab1f788eeb46 (diff)
downloadUXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar
UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar.gz
UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar.lz
UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar.xz
UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.zip
Issue #1653 - Part 1: Remove WinUtils::SHGetKnownFolderPath
Instead of doing the whole dll-load, replace function dance, we can just use the shlobj.h version of Windows.
Diffstat (limited to 'widget/windows/WinUtils.h')
-rw-r--r--widget/windows/WinUtils.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/widget/windows/WinUtils.h b/widget/windows/WinUtils.h
index 37469ce07..9aa2c1c8a 100644
--- a/widget/windows/WinUtils.h
+++ b/widget/windows/WinUtils.h
@@ -399,14 +399,6 @@ public:
REFIID riid, void **ppv);
/**
- * SHGetKnownFolderPath() calls native SHGetKnownFolderPath()
- * API which is available on Vista and up.
- */
- static HRESULT SHGetKnownFolderPath(REFKNOWNFOLDERID rfid,
- DWORD dwFlags,
- HANDLE hToken,
- PWSTR *ppszPath);
- /**
* GetShellItemPath return the file or directory path of a shell item.
* Internally calls IShellItem's GetDisplayName.
*
@@ -529,12 +521,6 @@ private:
REFIID riid,
void **ppv);
static SHCreateItemFromParsingNamePtr sCreateItemFromParsingName;
- typedef HRESULT (WINAPI * SHGetKnownFolderPathPtr)(REFKNOWNFOLDERID rfid,
- DWORD dwFlags,
- HANDLE hToken,
- PWSTR *ppszPath);
- static SHGetKnownFolderPathPtr sGetKnownFolderPath;
-
static void GetWhitelistedPaths(
nsTArray<mozilla::Pair<nsString,nsDependentString>>& aOutput);
};