111 delete[] pIconContext->phIcons;
127 pIconContext->phIcons =
new HICON[pIconContext->nIcons];
129 if (
ExtractIconExW(szExpandedPath, 0, pIconContext->phIcons,
NULL, pIconContext->nIcons))
135 pIconContext->nIcons = 0;
141 pIconContext->nIcons = 1;
142 pIconContext->phIcons =
new HICON[1];
144 if (
ExtractIconExW(szExpandedPath, 0, pIconContext->phIcons,
NULL, pIconContext->nIcons))
150 pIconContext->nIcons = 0;
158 if (pIconContext->nIcons == 0)
160 delete[] pIconContext->phIcons;
161 pIconContext->phIcons =
NULL;
164 return (pIconContext->nIcons > 0);
179 #define CX_ICON GetSystemMetrics(SM_CXICON) 180 #define CY_ICON GetSystemMetrics(SM_CYICON) 183 #define CX_ITEM (CX_ICON + 4) 184 #define CY_ITEM (CY_ICON + 12) 213 if (!
DoLoadIcons(hwndDlg, pIconContext, pIconContext->szPath))
220 if (pIconContext->Index < 0)
228 pIconContext->Index = 0;
241 delete[] pIconContext->phIcons;
373 IconContext.
Index = *lpdwIconIndex;
377 if (!szExpandedPath[0] ||
380 if (szExpandedPath[0])
398 *lpdwIconIndex = IconContext.Index;
451 while (*
src && *
src !=
'"')
470 else if (*
src ==
'\\')
523 if (prfdp->lpstrTitle)
525 if (prfdp->lpstrDescription)
537 FIXME(
"RFF_NOSEPARATEMEM not supported\n");
541 if (prfdp->hIcon ==
NULL)
558 ComboInfo.
cbSize =
sizeof(ComboInfo);
572 if (prfdp->bCoInited)
641 if (prfdp->lpstrDirectory)
644 pszStartDir = prfdp->lpstrDirectory;
672 nmrfd.
lpFile = pszExpanded;
717 if (psz != pszExpanded)
730 WCHAR szFName[1024] = {0};
750 ERR(
"Couldn't get GetOpenFileName function entry (lib=%p, proc=%p)\n", hComdlg, ofnProc);
794 DWORD dwType, icList = 0, icCmd = 0;
805 cchLatest =
wcslen(pszLatest);
806 if (cchStr < cchLatest + 2 + 1)
808 TRACE(
"pszLatest buffer is not large enough (%d) to hold the MRU terminator.\n", cchStr);
820 L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU",
834 TRACE(
"HeapAlloc failed to allocate %d bytes\n", icList);
849 icList =
sizeof(
WCHAR);
853 TRACE(
"HeapAlloc failed to allocate %d bytes\n", icList);
861 icList /=
sizeof(
WCHAR);
863 for (Nix = 0; Nix < icList - 1; Nix++)
865 if (pszList[Nix] > cMax)
868 szIndex[0] = pszList[Nix];
882 TRACE(
"HeapReAlloc failed to reallocate %d bytes\n", icCmd);
892 TRACE(
"HeapAlloc failed to allocate %d bytes\n", icCmd);
928 if (
wcsicmp(pszCmd, pszLatest) == 0)
934 cMatch = pszList[Nix];
941 if (icList - 1 != 26 || icList - 2 != Nix || cMatch || pszLatest ==
NULL)
944 if (!Nix && fShowDefault)
956 cMatch = pszList[Nix];
961 wcscpy(&pszLatest[cchLatest],
L"\\1");
963 pszLatest[cchLatest] =
L'\0';
967 if (!cMatch && pszLatest !=
NULL)
980 TRACE(
"HeapReAlloc failed to reallocate enough bytes\n");
990 TRACE(
"HeapAlloc failed to allocate enough bytes\n");
995 memmove(&pszList[1], pszList, (icList - 1) *
sizeof(
WCHAR));
999 wcscpy(&pszLatest[cchLatest],
L"\\1");
1001 pszLatest[cchLatest] =
L'\0';
1065 &
tp.Privileges[0].Luid);
1068 tp.PrivilegeCount = 1;
1084 TRACE(
"(%p)\n", hWndOwner);
1086 CComPtr<IUnknown> fadeHandler;
1104 #define IS_PRODUCT_VERSION_WORKSTATION 0x300 1105 #define FRIENDLY_LOGOFF_IS_NOT_ENFORCED 0x0 1107 #define FONT_POINT_SIZE 13 1109 #define DARK_GREY_COLOR RGB(244, 244, 244) 1110 #define LIGHT_GREY_COLOR RGB(38, 38, 38) 1113 #define CX_BITMAP 33 1114 #define CY_BITMAP 33 1116 #define NUMBER_OF_BUTTONS 2 1119 #define BUTTON_SWITCH_USER 0 1120 #define BUTTON_SWITCH_USER_PRESSED (CY_BITMAP + BUTTON_SWITCH_USER) 1121 #define BUTTON_SWITCH_USER_FOCUSED (CY_BITMAP + BUTTON_SWITCH_USER_PRESSED) 1122 #define BUTTON_LOG_OFF (CY_BITMAP + BUTTON_SWITCH_USER_FOCUSED) 1123 #define BUTTON_LOG_OFF_PRESSED (CY_BITMAP + BUTTON_LOG_OFF) 1124 #define BUTTON_LOG_OFF_FOCUSED (CY_BITMAP + BUTTON_LOG_OFF_PRESSED) 1125 #define BUTTON_SWITCH_USER_DISABLED (CY_BITMAP + BUTTON_LOG_OFF_FOCUSED) // Temporary 1140 switch (pdis->
CtlID)
1241 if (hwndTarget != hButton)
1277 WCHAR szBuffer[256];
1282 tool.
cbSize =
sizeof(tool);
1310 L"SYSTEM\\CurrentControlSet\\Control\\Windows",
1321 dwSize =
sizeof(dwValue);
1323 L"EnforceFriendlyLogoff",
1337 dwSize =
sizeof(dwValue);
1354 L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon",
1362 dwSize =
sizeof(dwValue);
1374 return (dwValue != 0);
1385 pContext->
hfFont =
CreateFontW(lfHeight, 0, 0, 0,
FW_MEDIUM,
FALSE, 0, 0, 0, 0, 0, 0, 0,
L"MS Shell Dlg");
1425 if (pContext->bFriendlyUI)
1503 switch (pdis->
CtlID)
1524 CComPtr<IUnknown> fadeHandler;
1554 switch (
Msg.message)
1566 bIsAltKeyPressed =
TRUE;
1593 TRACE(
"(%p)\n", hWndOwner);
1619 TRACE(
"(%p)\n", hWndOwner);
1621 CComPtr<IUnknown> fadeHandler;
1630 TRACE(
"Unable to load msgina.dll.\n");
1635 ShellShFunc pShellShutdownDialog = (ShellShFunc)
GetProcAddress(msginaDll,
"ShellShutdownDialog");
1637 if (pShellShutdownDialog)
1642 switch (returnValue)
1695 TRACE(
"Unable to find the 'ShellShutdownDialog' function");
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define IDC_LOG_OFF_STATIC
BOOLEAN WINAPI SetSuspendState(BOOLEAN Hibernate, BOOLEAN ForceCritical, BOOLEAN DisableWakeEvent)
#define OFN_FILEMUSTEXIST
struct tagMEASUREITEMSTRUCT * LPMEASUREITEMSTRUCT
#define IDD_LOG_OFF_FANCY
unsigned __int3264 UINT_PTR
#define IDS_PICK_ICON_TITLE
#define IDC_RUNDLG_EDITPATH
WINE_DEFAULT_DEBUG_CHANNEL(shell)
#define memmove(s1, s2, n)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
static void FillList(HWND, LPWSTR, UINT, BOOL)
HFONT WINAPI CreateFontW(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCWSTR)
INT_PTR CALLBACK OwnerDrawButtonSubclass(HWND hButton, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL WINAPI LookupPrivilegeValueW(LPCWSTR lpSystemName, LPCWSTR lpPrivilegeName, PLUID lpLuid)
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define BUTTON_LOG_OFF_PRESSED
BOOLEAN WINAPI IsPwrSuspendAllowed(VOID)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
#define LB_FINDSTRINGEXACT
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
#define LB_SETCOLUMNWIDTH
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
struct LOGOFF_DLG_CONTEXT * PLOGOFF_DLG_CONTEXT
BOOL WINAPI IsWindow(_In_opt_ HWND)
struct tagDRAWITEMSTRUCT * LPDRAWITEMSTRUCT
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI DestroyIcon(_In_ HICON)
WINE_UNICODE_INLINE int isspaceW(WCHAR wc)
#define HKEY_CURRENT_USER
GLuint GLuint GLsizei count
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
static BOOL DoLoadIcons(HWND hwndDlg, PPICK_ICON_CONTEXT pIconContext, LPCWSTR pszFile)
#define WM_CTLCOLORSTATIC
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define IDS_SHUTDOWN_PROMPT
tShellDimScreen ShellDimScreen
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
int WINAPI RestartDialogEx(HWND hWndOwner, LPCWSTR lpwstrReason, DWORD uFlags, DWORD uReason)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
DWORD WINAPI GetLastError(VOID)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
GLint GLint GLint GLint GLint x
HWND WINAPI SetFocus(_In_opt_ HWND)
VOID CreateToolTipForButtons(int controlID, int detailID, HWND hDlg, int titleID)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
static BOOL IsFriendlyUIActive(VOID)
#define SendDlgItemMessage
#define GetWindowLongPtrW
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define IDS_RUNDLG_BROWSE_ERROR
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
#define IDS_LOG_OFF_TITLE
#define IDS_RESTART_TITLE
#define IDS_SWITCH_USER_TITLE
BOOL WINAPI DestroyWindow(_In_ HWND)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
static void EnableOkButtonFromEditContents(HWND hwnd)
static LPWSTR RunDlg_GetParentDir(LPCWSTR cmdline)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
#define IDC_LOG_OFF_BUTTON
int WINAPI GetDlgCtrlID(_In_ HWND)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
#define SE_PRIVILEGE_ENABLED
#define IDC_PICKICON_LIST
#define IDC_RUNDLG_DESCRIPTION
struct PICK_ICON_CONTEXT * PPICK_ICON_CONTEXT
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
BOOL WINAPI PickIconDlg(HWND hWndOwner, LPWSTR lpstrFile, UINT nMaxFile, INT *lpdwIconIndex)
static void NoIconsInFile(HWND hwndDlg, PPICK_ICON_CONTEXT pIconContext)
UINT WINAPI ExtractIconExW(LPCWSTR lpszFile, INT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
#define IDS_RUNDLG_BROWSE_FILTER
BOOL WINAPI GetOpenFileNameW(OPENFILENAMEW *ofn)
HWND WINAPI GetCapture(void)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
static VOID FancyLogoffOnInit(HWND hwnd, PLOGOFF_DLG_CONTEXT pContext)
BOOL CALLBACK EnumPickIconResourceProc(HMODULE hModule, LPCWSTR lpszType, LPWSTR lpszName, LONG_PTR lParam)
#define IDS_PICK_ICON_FILTER
#define IDC_SWITCH_USER_BUTTON
#define IDC_SWITCH_USER_STATIC
#define SECL_ALLOW_NONEXE
BOOL WINAPI DECLSPEC_HOTPATCH ShellExecuteExW(LPSHELLEXECUTEINFOW sei)
#define BUTTON_SWITCH_USER_DISABLED
void WINAPI RunFileDlg(HWND hWndOwner, HICON hIcon, LPCWSTR lpstrDirectory, LPCWSTR lpstrTitle, LPCWSTR lpstrDescription, UINT uFlags)
static INT_PTR CALLBACK RunDlgProc(HWND, UINT, WPARAM, LPARAM)
HRESULT WINAPI SHAutoComplete(HWND hwndEdit, DWORD dwFlags)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
#define OFN_PATHMUSTEXIST
int WINAPI RestartDialog(HWND hWndOwner, LPCWSTR lpstrReason, DWORD uFlags)
#define REG_OPTION_NON_VOLATILE
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
#define RFF_NOSEPARATEMEM
#define IS_INTRESOURCE(i)
static const WCHAR Title[]
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static BOOL ConfirmDialog(HWND hWndOwner, UINT PromptId, UINT TitleId)
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
#define IDS_SHUTDOWN_TITLE
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
void WINAPI ExitWindowsDialog(HWND hWndOwner)
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
_In_ WDFCOLLECTION _In_ ULONG Index
int WINAPI GetWindowTextLengthW(_In_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define TTM_SETMAXTIPWIDTH
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define INVALID_FILE_ATTRIBUTES
static BOOL EnablePrivilege(LPCWSTR lpszPrivilegeName, BOOL bEnablePrivilege)
static void DestroyIconList(HWND hDlgCtrl, PPICK_ICON_CONTEXT pIconContext)
BOOL WINAPI EnumResourceNamesW(HMODULE hmod, LPCWSTR type, ENUMRESNAMEPROCW lpfun, LONG_PTR lparam)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
struct _PICK_ICON_CONTEXT PICK_ICON_CONTEXT
INT_PTR CALLBACK LogOffDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define IDS_FILE_NOT_FOUND
#define GetCurrentProcess()
static const WCHAR Cleanup[]
#define IDS_RESTART_PROMPT
BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD)
BOOL WINAPI AdjustTokenPrivileges(HANDLE TokenHandle, BOOL DisableAllPrivileges, PTOKEN_PRIVILEGES NewState, DWORD BufferLength, PTOKEN_PRIVILEGES PreviousState, PDWORD ReturnLength)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define BUTTON_SWITCH_USER
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
#define LOAD_LIBRARY_AS_DATAFILE
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
HRESULT(WINAPI * tShellDimScreen)(IUnknown **Unknown, HWND *hWindow)
#define RFF_CALCDIRECTORY
BOOL DrawIconOnOwnerDrawnButtons(DRAWITEMSTRUCT *pdis, PLOGOFF_DLG_CONTEXT pContext)
HWND WINAPI GetParent(_In_ HWND)
#define NUMBER_OF_BUTTONS
HWND WINAPI SetCapture(_In_ HWND hWnd)
#define shell32_hInstance
#define IDS_SWITCH_USER_DESC
#define BUTTON_LOG_OFF_FOCUSED
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
BOOL WINAPI DeleteDC(_In_ HDC)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
#define IS_PRODUCT_VERSION_WORKSTATION
void shell(int argc, const char *argv[])
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
WINE_UNICODE_INLINE WCHAR * strcatW(WCHAR *dst, const WCHAR *src)
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL(WINAPI * LPFNOFN)(OPENFILENAMEW *)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
GLint GLint GLint GLint GLint GLint y
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
HWND WINAPI WindowFromPoint(_In_ POINT)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
INT_PTR CALLBACK PickIconProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL WINAPI StrTrimW(LPWSTR lpszStr, LPCWSTR lpszTrim)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
BOOL WINAPI ReleaseCapture(void)
#define BUTTON_SWITCH_USER_PRESSED
struct tagContext Context
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define IDC_RUNDLG_BROWSE
#define IDS_RUNDLG_BROWSE_CAPTION
HWND WINAPI CreateDialogParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define GetProcAddress(x, y)
#define FRIENDLY_LOGOFF_IS_NOT_ENFORCED
#define SHACF_FILESYS_ONLY
#define SetWindowLongPtrW
EXTERN_C int WINAPI LogoffWindowsDialog(HWND hWndOwner)
#define MAKEINTRESOURCEW(i)
VOID ExitWindowsDialog_backup(HWND hWndOwner)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL CallShellDimScreen(IUnknown **pUnknown, HWND *hWindow)
BOOLEAN WINAPI IsPwrHibernateAllowed(VOID)
#define TOKEN_ADJUST_PRIVILEGES
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
#define HeapFree(x, y, z)
BOOL WINAPI IsDialogMessageW(_In_ HWND, _In_ LPMSG)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define RegCloseKey(hKey)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define BUTTON_SWITCH_USER_FOCUSED
BOOL WINAPI GetComboBoxInfo(_In_ HWND, _Inout_ PCOMBOBOXINFO)
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
#define HKEY_LOCAL_MACHINE
#define IDC_LOG_OFF_TEXT_STATIC