6#define CurrentArchitecture L"x86"
8#define CurrentArchitecture L"amd64"
10#define CurrentArchitecture L"arm"
11#elif defined(_M_ARM64)
12#define CurrentArchitecture L"arm64"
14#define CurrentArchitecture L"ia64"
16#define CurrentArchitecture L"ppc"
99 while (*Append ==
L'\\' || *Append ==
L'/')
101 return path + Append;
unsigned long long UINT64
PRTL_UNICODE_STRING_BUFFER Path
HRESULT GetKnownPath(REFKNOWNFOLDERID kfid, CStringW &Path, DWORD Flags=KF_FLAG_CREATE)
BOOL(CALLBACK * EXTRACTCALLBACK)(const EXTRACTCALLBACKINFO &Info, void *Cookie)
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg)
bool ExpandEnvStrings(CStringW &Str)
HRESULT GetSpecialPath(UINT csidl, CStringW &Path, HWND hwnd=NULL)
static CStringW BuildPath(const T &Base, LPCWSTR Append)
BOOL StartProcess(const CStringW &Path, BOOL Wait)
BOOL GetStorageDirectory(CStringW &lpDirectory)
BOOL GetInstalledVersion(CStringW *pszVersion, const CStringW &szRegName)
VOID EmulateDialogReposition(HWND hwnd)
BOOL DeleteDirectoryTree(LPCWSTR Dir, HWND hwnd=NULL)
UINT CreateDirectoryTree(LPCWSTR Dir)
static BOOL NotifyFileExtractCallback(const CStringW &ItemPath, UINT64 UncompressedSize, UINT FileAttributes, EXTRACTCALLBACK Callback, void *Cookie)
HRESULT RegKeyHasValues(HKEY hKey, LPCWSTR Path, REGSAM wowsam=0)
BOOL ExtractFilesFromCab(const CStringW &szCabName, const CStringW &szCabDir, const CStringW &szOutputDir, EXTRACTCALLBACK Callback=NULL, void *Cookie=NULL)
VOID ShowPopupMenuEx(HWND hwnd, HWND hwndOwner, UINT MenuID, UINT DefaultItem, POINT *Point=NULL)
static UINT ErrorFromHResult(HRESULT hr)
INT GetSystemColorDepth()
VOID CopyTextToClipboard(LPCWSTR lpszText)
BOOL SearchPatternMatch(LPCWSTR szHaystack, LPCWSTR szNeedle)
LPCWSTR GetRegString(CRegKey &Key, LPCWSTR Name, CStringW &Value)
HRESULT GetProgramFilesPath(CStringW &Path, BOOL PerUser, HWND hwnd=NULL)
CStringW SplitFileAndDirectory(LPCWSTR FullPath, CStringW *pDir=NULL)
void UnixTimeToFileTime(DWORD dwUnixTime, LPFILETIME pFileTime)
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE _In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Out_ PIO_STATUS_BLOCK _In_opt_ PLARGE_INTEGER _In_ ULONG FileAttributes
_In_opt_ LPCSTR lpDirectory
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_In_ WDFDPC _In_ BOOLEAN Wait
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
#define HRESULT_FROM_WIN32(x)
_Must_inspect_result_ _In_ ULONG Flags
_In_opt_ PVOID _Out_ PLARGE_INTEGER Cookie