32#define I_CHECKED_DISABLED 2
33#define I_UNCHECKED_DISABLED 3
34#define I_RADIO_CHECKED 4
35#define I_RADIO_UNCHECKED 5
36#define I_RADIO_CHECKED_DISABLED 6
37#define I_RADIO_UNCHECKED_DISABLED 7
38#define PREDEFINED_ICON_COUNT 8
117 if (hIconSmall ==
NULL)
123 if (pAllocated ==
NULL)
148 if (dwID ==
DWORD(-1))
213 Insertion.hParent = hParent;
215 Insertion.item.mask =
217 Insertion.item.pszText =
pEntry->szText;
220 Insertion.item.iImage = Insertion.item.iSelectedImage = iImage;
221 Insertion.item.lParam =
pEntry->dwID;
260 if (pAllocated ==
NULL)
269 pEntry->dwParentID = dwParentID;
276 Size =
sizeof(szText);
278 if (szText[0] ==
L'@')
285 pEntry->dwResourceID = dwIndex;
314 Size =
sizeof(szText);
333 pEntry->szValueName[0] = 0;
334 pEntry->dwCheckedValue = 0;
336 pEntry->dwUncheckedValue = 0;
337 pEntry->dwDefaultValue = 0;
346 Size =
sizeof(HKeyRoot);
348 pEntry->hkeyRoot = HKeyRoot;
352 Size =
sizeof(szText);
357 pEntry->szValueName[0] = 0;
358 Size =
sizeof(szText);
414 dwParentID =
pEntry->dwID;
454 L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
493 if (dwParentID1 == dwParentID2)
506 if (!pParent1 && !pParent2)
511 pArray1[
m++] = pParent1;
516 pArray2[
n++] = pParent2;
522 for (
i = 0;
i <
k; ++
i)
524 INT nCompare =
lstrcmpi(pArray1[
m -
i - 1]->szText, pArray2[
n -
i - 1]->szText);
552 if (hImageList ==
NULL)
567 if (pAllocated ==
NULL)
578 HBITMAP hbmChecked, hbmUnchecked;
626 if (!
pFO || !
pFO->CanSetDefFolderSettings())
684 Item.iImage =
Item.iSelectedImage = iImage;
714 HitTest.pt.x =
LOWORD(dwPos);
715 HitTest.pt.y =
HIWORD(dwPos);
866 WCHAR ClassName[100];
869 if (!
wcscmp(ClassName,
L"Progman") ||
870 !
wcscmp(ClassName,
L"CabinetWClass") ||
871 !
wcscmp(ClassName,
L"ExploreWClass"))
911 dwValue =
pEntry->dwCheckedValue;
915 if (
pEntry->bHasUncheckedValue)
917 dwValue =
pEntry->dwUncheckedValue;
981 hr =
pFO->ApplyDefFolderSettings(ResetToDefault);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define RegCloseKey(hKey)
static HRESULT ResetGlobalAndDefViewFolderSettings()
void __cdecl qsort(_Inout_updates_bytes_(_NumOfElements *_SizeOfElements) void *_Base, _In_ size_t _NumOfElements, _In_ size_t _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
#define FCIDM_DESKBROWSER_REFRESH
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
LONG WINAPI RegEnumKeyW(HKEY hKey, DWORD dwIndex, LPWSTR lpName, DWORD cbName)
INT WINAPI ImageList_Add(HIMAGELIST himl, HBITMAP hbmImage, HBITMAP hbmMask)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
#define ERROR_NOT_SUPPORTED
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
HBITMAP CreateRadioMask(HDC hDC)
HBITMAP CreateCheckMask(HDC hDC)
HBITMAP CreateRadioImage(HDC hDC, BOOL bCheck, BOOL bEnabled)
HBITMAP CreateCheckImage(HDC hDC, BOOL bCheck, BOOL bEnabled)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
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
UINT WINAPI ExtractIconExW(LPCWSTR lpszFile, INT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define PropSheet_Changed(d, w)
#define TreeView_DeleteAllItems(hwnd)
#define CDDS_ITEMPREPAINT
#define TreeView_Expand(hwnd, hitem, code)
#define CDRF_NOTIFYITEMDRAW
#define TreeView_GetSelection(hwnd)
#define TreeView_GetItem(hwnd, pitem)
#define TreeView_GetItemRect(hwnd, hitem, prc, code)
#define ImageList_AddIcon(himl, hicon)
#define TreeView_SetImageList(hwnd, himl, iImage)
#define TreeView_HitTest(hwnd, lpht)
#define TreeView_InsertItem(hwnd, lpis)
#define TVIF_SELECTEDIMAGE
#define TreeView_SetItem(hwnd, pitem)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
#define SSF_SHOWCOMPCOLOR
#define SSF_SHOWEXTENSIONS
#define SSF_SHOWSUPERHIDDEN
#define SSF_SHOWALLOBJECTS
#define IDC_VIEW_RESET_ALL
#define IDC_VIEW_TREEVIEW
#define IDC_VIEW_RESTORE_DEFAULTS
#define IDC_VIEW_APPLY_TO_ALL
WCHAR szRegPath[MAX_PATH]
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static BOOL CALLBACK PostCabinetMessageCallback(HWND hWnd, LPARAM param)
#define I_RADIO_UNCHECKED
static INT ViewTree_GetImage(PVIEWTREE_ENTRY pEntry)
static VOID ViewTree_InsertAll(HWND hwndTreeView)
static void ViewDlg_OnTreeViewKeyDown(HWND hwndDlg, TV_KEYDOWN *KeyDown)
static VOID ViewDlg_RestoreDefaults(HWND hwndDlg)
static INT ViewTree_AddIcon(LPCWSTR pszPath, UINT nIconIndex)
INT_PTR CALLBACK FolderOptionsViewDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT s_ViewTreeIconCount
static int ViewTree_Compare(const void *x, const void *y)
static INT_PTR ViewDlg_OnTreeCustomDraw(HWND hwndDlg, NMTVCUSTOMDRAW *Draw)
static BOOL ViewTree_LoadTree(HKEY hKey, LPCWSTR pszKeyName, DWORD dwParentID)
struct VIEWTREE_ENTRY * PVIEWTREE_ENTRY
#define I_CHECKED_DISABLED
#define I_RADIO_CHECKED_DISABLED
static HIMAGELIST s_hTreeImageList
static VOID ViewDlg_Apply(HWND hwndDlg)
static BOOL ViewDlg_ToggleCheckItem(HWND hwndDlg, HTREEITEM hItem)
#define I_RADIO_UNCHECKED_DISABLED
static PVIEWTREE_ENTRY s_ViewTreeEntries
#define I_UNCHECKED_DISABLED
static BOOL ViewTree_LoadAll(VOID)
static BOOL ViewDlg_OnInitDialog(HWND hwndDlg, LPPROPSHEETPAGE psp)
static VOID ScanAdvancedSettings(SHELLSTATE *pSS, DWORD *pdwMask)
static VOID ViewTree_SortAll(VOID)
static PVIEWTREE_ENTRY ViewTree_GetItem(DWORD dwID)
static INT ViewTree_FindIcon(LPCWSTR pszPath, UINT nIconIndex)
void PostCabinetMessage(UINT Msg, WPARAM wParam, LPARAM lParam)
static HIMAGELIST ViewDlg_CreateTreeImageList(VOID)
static INT s_ViewTreeEntryCount
enum VIEWTREE_ENTRY_TYPE * PVIEWTREE_ENTRY_TYPE
#define PREDEFINED_ICON_COUNT
static VOID ViewTree_InsertEntry(HWND hwndTreeView, PVIEWTREE_ENTRY pEntry)
static VOID ViewDlg_OnTreeViewClick(HWND hwndDlg)
struct VIEWTREE_ICON * PVIEWTREE_ICON
static PVIEWTREE_ICON s_ViewTreeIcons
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
#define HRESULT_FROM_WIN32(x)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
DWORD WINAPI GetSysColor(_In_ int)
DWORD WINAPI GetMessagePos(void)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EnumWindows(_In_ WNDENUMPROC lpEnumFunc, _In_ LPARAM lParam)
struct tagNMHDR * LPNMHDR
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
int WINAPI GetClassNameW(_In_ HWND hWnd, _Out_writes_to_(nMaxCount, return) LPWSTR lpClassName, _In_ int nMaxCount)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
BOOL WINAPI DestroyIcon(_In_ HICON)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO