61 ItemInfo.
cbSize =
sizeof(ItemInfo);
148 static BOOL CachedDirectoryInitialized =
FALSE;
150 if (!CachedDirectoryInitialized)
164 CachedDirectory.
Empty();
169 CachedDirectory.
Empty();
172 CachedDirectoryInitialized =
TRUE;
188 DWORD dwCategoryNum = 1;
194 L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\ReactOS Application Manager",
REG_NONE,
256 if (szVersionResult !=
NULL)
308 pDevMode.
dmSize =
sizeof(pDevMode);
388 Value.ReleaseBuffer();
389 return Value.GetString();
403 buf.ReleaseBuffer(
cch - 1);
445 int sep =
dir.FindFileName();
448 *pDir = sep == -1 ?
L"" :
dir.m_strPath.Left(sep - 1);
457 Path.ReleaseBuffer();
PRTL_UNICODE_STRING_BUFFER Path
static CStringW BuildPath(const T &Base, LPCWSTR Append)
SETTINGS_INFO SettingsInfo
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg)
bool ExpandEnvStrings(CStringW &Str)
BOOL StartProcess(const CStringW &Path, BOOL Wait)
BOOL GetInstalledVersion(CStringW *pszVersion, const CStringW &szRegName)
HRESULT GetProgramFilesPath(CStringW &Path, BOOL PerUser, HWND hwnd)
VOID ShowPopupMenuEx(HWND hwnd, HWND hwndOwner, UINT MenuID, UINT DefaultItem, POINT *Point)
HRESULT GetKnownPath(REFKNOWNFOLDERID kfid, CStringW &Path, DWORD Flags)
UINT CreateDirectoryTree(LPCWSTR Dir)
BOOL GetStorageDirectory(CStringW &Directory)
BOOL GetInstalledVersion_WowUser(CStringW *szVersionResult, const CStringW &szRegName, BOOL IsUserKey, REGSAM keyWow)
INT GetSystemColorDepth()
VOID CopyTextToClipboard(LPCWSTR lpszText)
BOOL DeleteDirectoryTree(LPCWSTR Dir, HWND hwnd)
BOOL SearchPatternMatch(LPCWSTR szHaystack, LPCWSTR szNeedle)
LPCWSTR GetRegString(CRegKey &Key, LPCWSTR Name, CStringW &Value)
HRESULT GetSpecialPath(UINT csidl, CStringW &Path, HWND hwnd)
CStringW SplitFileAndDirectory(LPCWSTR FullPath, CStringW *pDir)
void UnixTimeToFileTime(DWORD dwUnixTime, LPFILETIME pFileTime)
HRESULT RegKeyHasValues(HKEY hKey, LPCWSTR Path, REGSAM wowsam)
bool IsEmpty() const noexcept
void ReleaseBuffer(_In_ int nNewLength=-1)
LONG WINAPI RegEnumValueW(_In_ HKEY hKey, _In_ DWORD index, _Out_ LPWSTR value, _Inout_ PDWORD val_count, _Reserved_ PDWORD reserved, _Out_opt_ PDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ PDWORD count)
BOOL WINAPI ReportEventW(IN HANDLE hEventLog, IN WORD wType, IN WORD wCategory, IN DWORD dwEventID, IN PSID lpUserSid, IN WORD wNumStrings, IN DWORD dwDataSize, IN LPCWSTR *lpStrings, IN LPVOID lpRawData)
BOOL WINAPI DeregisterEventSource(IN HANDLE hEventLog)
HANDLE WINAPI RegisterEventSourceW(IN LPCWSTR lpUNCServerName, IN LPCWSTR lpSourceName)
LPWSTR WINAPI StrStrIW(LPCWSTR lpszStr, LPCWSTR lpszSearch)
#define GetProcAddress(x, y)
#define ERROR_NO_MORE_ITEMS
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
BOOL WINAPI SHGetSpecialFolderPathW(HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate)
BOOL WINAPI IsOS(DWORD feature)
GLenum GLuint GLenum GLsizei const GLchar * buf
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
VOID WINAPI CoTaskMemFree(LPVOID ptr)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define ERROR_ALREADY_EXISTS
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static DWORD DWORD void LPSTR DWORD cch
static HANDLE ULONG_PTR dwData
static HMODULE MODULEINFO DWORD cb
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define REG_OPTION_NON_VOLATILE
#define Int32x32To64(a, b)
DWORD WINAPI GetVersion()
#define FOF_NOCONFIRMATION
int WINAPI SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
int WINAPI SHCreateDirectory(HWND hWnd, LPCWSTR path)
#define CSIDL_PROGRAM_FILES
#define CSIDL_LOCAL_APPDATA
KNOWNFOLDERID * REFKNOWNFOLDERID
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
base for all directory entries
TW_UINT32 TW_UINT16 TW_UINT16 MSG
_In_ WDFDPC _In_ BOOLEAN Wait
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
BOOL WINAPI EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode)
DWORD WINAPI GetLastError(void)
#define STARTF_USESHOWWINDOW
#define HRESULT_FROM_WIN32(x)
#define ERROR_OLD_WIN_VERSION
#define EVENTLOG_ERROR_TYPE
#define EVENTLOG_INFORMATION_TYPE
#define EVENTLOG_WARNING_TYPE
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE)
BOOL WINAPI SetForegroundWindow(_In_ HWND)
BOOL WINAPI CloseClipboard(void)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
BOOL WINAPI OpenClipboard(_In_opt_ HWND)
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
#define ENUM_CURRENT_SETTINGS
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI PeekMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)
BOOL WINAPI EmptyClipboard(void)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
#define MAKEINTRESOURCEW(i)
HMENU WINAPI LoadMenuW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
HMENU WINAPI GetMenu(_In_ HWND)
_Must_inspect_result_ _In_ ULONG Flags