ReactOS 0.4.16-dev-1025-gd3456f5
CFileDefExt Class Reference

#include <filedefext.h>

Inheritance diagram for CFileDefExt:
Collaboration diagram for CFileDefExt:

Public Member Functions

 CFileDefExt ()
 
 ~CFileDefExt ()
 
BOOL OnFolderCustApply (HWND hwndDlg)
 
void OnFolderCustChangeIcon (HWND hwndDlg)
 
void OnFolderCustDestroy (HWND hwndDlg)
 
void UpdateFolderIcon (HWND hwndDlg)
 
STDMETHOD() Initialize (PCIDLIST_ABSOLUTE pidlFolder, IDataObject *pdtobj, HKEY hkeyProgID) override
 
STDMETHOD() QueryContextMenu (HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) override
 
STDMETHOD() InvokeCommand (LPCMINVOKECOMMANDINFO lpici) override
 
STDMETHOD() GetCommandString (UINT_PTR idCmd, UINT uType, UINT *pwReserved, LPSTR pszName, UINT cchMax) override
 
STDMETHOD() AddPages (LPFNADDPROPSHEETPAGE pfnAddPage, LPARAM lParam) override
 
STDMETHOD() ReplacePage (UINT uPageID, LPFNADDPROPSHEETPAGE pfnReplacePage, LPARAM lParam) override
 
STDMETHOD() SetSite (IUnknown *punk) override
 
STDMETHOD() GetSite (REFIID iid, void **ppvSite) override
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
HRESULT Initialize ([in] PCIDLIST_ABSOLUTE pidlFolder, [in] IDataObject *pdtobj, [in] HKEY hkeyProgID)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 
HRESULT QueryContextMenu ([in] HMENU hmenu, [in] UINT indexMenu, [in] UINT idCmdFirst, [in] UINT idCmdLast, [in] UINT uFlags)
 
HRESULT InvokeCommand ([in] LPCMINVOKECOMMANDINFO lpici)
 
HRESULT GetCommandString ([in] UINT_PTR idCmd, [in] UINT uType, [out] UINT *pwReserved, [out, size_is(cchMax)] LPSTR pszName, [in] UINT cchMax)
 
- Public Member Functions inherited from IShellPropSheetExt
HRESULT AddPages ([in] LPFNSVADDPROPSHEETPAGE pfnAddPage, [in] LPARAM lParam)
 
HRESULT ReplacePage ([in] EXPPS uPageID, [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith, [in] LPARAM lParam)
 
- Public Member Functions inherited from IObjectWithSite
HRESULT SetSite ([in] IUnknown *pUnkSite)
 
HRESULT GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite)
 

Private Member Functions

VOID InitOpensWithField (HWND hwndDlg)
 
BOOL InitFileType (HWND hwndDlg)
 
BOOL InitFilePath (HWND hwndDlg)
 
BOOL InitFileAttr (HWND hwndDlg)
 
BOOL InitGeneralPage (HWND hwndDlg)
 
BOOL SetVersionLabel (HWND hwndDlg, DWORD idCtrl, LPCWSTR pwszName)
 
BOOL AddVersionString (HWND hwndDlg, LPCWSTR pwszName)
 
BOOL InitVersionPage (HWND hwndDlg)
 
BOOL InitFolderCustomizePage (HWND hwndDlg)
 
BOOL CountFolderAndFiles (HWND hwndDlg, LPCWSTR pwszBuf, LPDWORD ticks)
 

Static Private Member Functions

static BOOL GetFileTimeString (LPFILETIME lpFileTime, LPWSTR pwszResult, UINT cchResult)
 
static INT_PTR CALLBACK GeneralPageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static INT_PTR CALLBACK VersionPageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static INT_PTR CALLBACK FolderCustomizePageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static DWORD WINAPI _CountFolderAndFilesThreadProc (LPVOID lpParameter)
 

Private Attributes

WCHAR m_wszPath [MAX_PATH]
 
CFileVersionInfo m_VerInfo
 
BOOL m_bDir
 
DWORD m_cFiles
 
DWORD m_cFolders
 
ULARGE_INTEGER m_DirSize
 
ULARGE_INTEGER m_DirSizeOnDisc
 
WCHAR m_szFolderIconPath [MAX_PATH]
 
INT m_nFolderIconIndex
 
HICON m_hFolderIcon
 
BOOL m_bFolderIconIsSet
 

Additional Inherited Members

- Public Types inherited from IShellExtInit
typedef IShellExtInitLPSHELLEXTINIT
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Types inherited from IContextMenu
typedef IContextMenuLPCONTEXTMENU
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFO CMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFOLPCMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMInvokeCommandInfoEx CMINVOKECOMMANDINFOEX
 
typedef struct IContextMenu::tagCMInvokeCommandInfoExLPCMINVOKECOMMANDINFOEX
 
- Public Types inherited from IShellPropSheetExt
enum  tagSHELLPROPSHEETEXTPAGEID { EXPPS_FILETYPES = 0x1 }
 
typedef UINT EXPPS
 
- Public Types inherited from IObjectWithSite
typedef IObjectWithSiteLPOBJECTWITHSITE
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 
- Static Public Attributes inherited from IContextMenu
static const WCHAR CMDSTR_NEWFOLDERW [] = {'N','e','w','F','o','l','d','e','r',0}
 
static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0}
 
static const WCHAR CMDSTR_VIEWDETAILSW [] = {'V','i','e','w','D','e','t','a','i','l','s',0}
 

Detailed Description

Definition at line 56 of file filedefext.h.

Constructor & Destructor Documentation

◆ CFileDefExt()

CFileDefExt::CFileDefExt ( )

Definition at line 1218 of file filedefext.cpp.

1218 :
1220{
1221 m_wszPath[0] = L'\0';
1222 m_DirSize.QuadPart = 0ull;
1224
1225 m_szFolderIconPath[0] = 0;
1229}
WCHAR m_szFolderIconPath[MAX_PATH]
Definition: filedefext.h:92
ULARGE_INTEGER m_DirSize
Definition: filedefext.h:86
DWORD m_cFiles
Definition: filedefext.h:84
ULARGE_INTEGER m_DirSizeOnDisc
Definition: filedefext.h:87
BOOL m_bFolderIconIsSet
Definition: filedefext.h:95
WCHAR m_wszPath[MAX_PATH]
Definition: filedefext.h:80
INT m_nFolderIconIndex
Definition: filedefext.h:93
DWORD m_cFolders
Definition: filedefext.h:85
BOOL m_bDir
Definition: filedefext.h:82
HICON m_hFolderIcon
Definition: filedefext.h:94
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define L(x)
Definition: ntvdm.h:50
ULONGLONG QuadPart
Definition: ms-dtyp.idl:185

◆ ~CFileDefExt()

CFileDefExt::~CFileDefExt ( )

Definition at line 1231 of file filedefext.cpp.

1232{
1233
1234}

Member Function Documentation

◆ _CountFolderAndFilesThreadProc()

DWORD WINAPI CFileDefExt::_CountFolderAndFilesThreadProc ( LPVOID  lpParameter)
staticprivate

Definition at line 1353 of file filedefext.cpp.

1354{
1355 _CountFolderAndFilesData *data = static_cast<_CountFolderAndFilesData*>(lpParameter);
1356 DWORD ticks = 0;
1357 data->This->CountFolderAndFiles(data->hwndDlg, data->pwszBuf, &ticks);
1358
1359 //Release the CFileDefExt and data object holds in the copying thread.
1360 data->This->Release();
1361 HeapFree(GetProcessHeap(), 0, data->pwszBuf);
1363
1364 return 0;
1365}
BOOL CountFolderAndFiles(HWND hwndDlg, LPCWSTR pwszBuf, LPDWORD ticks)
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

Referenced by InitFileAttr().

◆ AddPages()

HRESULT WINAPI CFileDefExt::AddPages ( LPFNADDPROPSHEETPAGE  pfnAddPage,
LPARAM  lParam 
)
override

Definition at line 1297 of file filedefext.cpp.

1298{
1299 HPROPSHEETPAGE hPage;
1301
1303 &PropSheetPageLifetimeCallback<CFileDefExt>);
1304 HRESULT hr = AddPropSheetPage(hPage, pfnAddPage, lParam);
1306 return hr;
1307 else
1308 AddRef(); // For PropSheetPageLifetimeCallback
1309
1311 {
1314 (LPARAM)this,
1315 NULL);
1316 AddPropSheetPage(hPage, pfnAddPage, lParam);
1317 }
1318
1319 if (m_bDir)
1320 {
1323 (LPARAM)this,
1324 NULL);
1325 AddPropSheetPage(hPage, pfnAddPage, lParam);
1326 }
1327
1328 return S_OK;
1329}
static INT_PTR CALLBACK VersionPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: filedefext.cpp:922
static INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: filedefext.cpp:698
static INT_PTR CALLBACK FolderCustomizePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: filedefext.cpp:981
LPARAM lParam
Definition: combotst.c:139
#define FAILED_UNEXPECTEDLY(hr)
Definition: debug.h:83
static HRESULT AddPropSheetPage(HPROPSHEETPAGE hPage, LPFNSVADDPROPSHEETPAGE pfnAddPage, LPARAM lParam)
Definition: precomp.h:151
DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR filename, LPDWORD handle)
Definition: version.c:611
unsigned short WORD
Definition: ntddk_ex.h:93
ULONG AddRef()
#define S_OK
Definition: intsafe.h:52
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
HRESULT hr
Definition: shlfolder.c:183
#define IDD_FILE_VERSION
Definition: shresdef.h:430
#define IDD_FILE_PROPERTIES
Definition: shresdef.h:421
#define IDD_FOLDER_CUSTOMIZE
Definition: shresdef.h:551
#define IDD_FOLDER_PROPERTIES
Definition: shresdef.h:422
HPROPSHEETPAGE SH_CreatePropertySheetPage(WORD wDialogId, DLGPROC pfnDlgProc, LPARAM lParam, LPCWSTR pwszTitle)
Definition: propsheet.cpp:243
HPROPSHEETPAGE SH_CreatePropertySheetPageEx(WORD wDialogId, DLGPROC pfnDlgProc, LPARAM lParam, LPCWSTR pwszTitle, LPFNPSPCALLBACK Callback)
Definition: propsheet.cpp:223
LONG_PTR LPARAM
Definition: windef.h:208

◆ AddVersionString()

BOOL CFileDefExt::AddVersionString ( HWND  hwndDlg,
LPCWSTR  pwszName 
)
private

Definition at line 893 of file filedefext.cpp.

894{
895 TRACE("pwszName %s, hwndDlg %p\n", debugstr_w(pwszName), hwndDlg);
896
897 if (hwndDlg == NULL || pwszName == NULL)
898 return FALSE;
899
900 LPCWSTR pwszValue = m_VerInfo.GetString(pwszName);
901 if (pwszValue)
902 {
903 /* listbox name property */
904 HWND hDlgCtrl = GetDlgItem(hwndDlg, 14009);
905 TRACE("%s :: %s\n", debugstr_w(pwszName), debugstr_w(pwszValue));
906 UINT Index = SendMessageW(hDlgCtrl, LB_ADDSTRING, (WPARAM) -1, (LPARAM)pwszName);
907 SendMessageW(hDlgCtrl, LB_SETITEMDATA, (WPARAM)Index, (LPARAM)(WCHAR *)pwszValue);
908 return TRUE;
909 }
910
911 return FALSE;
912}
CFileVersionInfo m_VerInfo
Definition: filedefext.h:81
LPCWSTR GetString(LPCWSTR pwszName)
Definition: filedefext.cpp:123
#define TRUE
Definition: types.h:120
#define debugstr_w
Definition: kernel32.h:32
unsigned int UINT
Definition: ndis.h:50
#define TRACE(s)
Definition: solgame.cpp:4
_In_ WDFCOLLECTION _In_ ULONG Index
UINT_PTR WPARAM
Definition: windef.h:207
#define LB_ADDSTRING
Definition: winuser.h:2042
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define LB_SETITEMDATA
Definition: winuser.h:2076
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by InitVersionPage().

◆ CountFolderAndFiles()

BOOL CFileDefExt::CountFolderAndFiles ( HWND  hwndDlg,
LPCWSTR  pwszBuf,
LPDWORD  ticks 
)
private

Definition at line 1368 of file filedefext.cpp.

1369{
1370 CString sBuf = pwszBuf;
1371 sBuf += L"\\" ;
1372 CString sSearch = sBuf;
1373 sSearch += L"*" ;
1374 CString sFileName;
1375
1376 WIN32_FIND_DATAW wfd;
1377 HANDLE hFind = FindFirstFileW(sSearch, &wfd);
1378 if (hFind == INVALID_HANDLE_VALUE)
1379 {
1380 ERR("FindFirstFileW %ls failed\n", sSearch.GetString());
1381 return FALSE;
1382 }
1383
1384 BOOL root = FALSE;
1385 if (*ticks == 0) {
1386 *ticks = GetTickCount();
1387 root = TRUE;
1388 }
1389
1390 do
1391 {
1392 sFileName = sBuf;
1393 sFileName += wfd.cFileName;
1394 if (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
1395 {
1396 /* Don't process "." and ".." items */
1397 if (!wcscmp(wfd.cFileName, L".") || !wcscmp(wfd.cFileName, L".."))
1398 continue;
1399
1400 ++m_cFolders;
1401
1402 CountFolderAndFiles(hwndDlg, sFileName, ticks);
1403 }
1404 else
1405 {
1406 m_cFiles++;
1407
1409 FileSize.u.LowPart = wfd.nFileSizeLow;
1410 FileSize.u.HighPart = wfd.nFileSizeHigh;
1412 // Calculate size on disc
1413 if (!GetPhysicalFileSize(sFileName.GetString(), &FileSize))
1414 ERR("GetPhysicalFileSize failed for %ls\n", sFileName.GetString());
1416 }
1417 if (GetTickCount() - *ticks > (DWORD) 300)
1418 {
1419 /* FIXME Using IsWindow is generally ill advised */
1420 if (IsWindow(hwndDlg))
1421 {
1422 WCHAR wszBuf[100];
1423
1424 if (SH_FormatFileSizeWithBytes(&m_DirSize, wszBuf, _countof(wszBuf)))
1425 SetDlgItemTextW(hwndDlg, 14011, wszBuf);
1426
1428 SetDlgItemTextW(hwndDlg, 14012, wszBuf);
1429
1430 /* Display files and folders count */
1431 WCHAR wszFormat[100];
1432 LoadStringW(shell32_hInstance, IDS_FILE_FOLDER, wszFormat, _countof(wszFormat));
1433 StringCchPrintfW(wszBuf, _countof(wszBuf), wszFormat, m_cFiles, m_cFolders);
1434 SetDlgItemTextW(hwndDlg, 14027, wszBuf);
1435 *ticks = GetTickCount();
1436 }
1437 else
1438 break;
1439 }
1440 } while(FindNextFileW(hFind, &wfd));
1441
1442 if (root && IsWindow(hwndDlg))
1443 {
1444 WCHAR wszBuf[100];
1445
1446 if (SH_FormatFileSizeWithBytes(&m_DirSize, wszBuf, _countof(wszBuf)))
1447 SetDlgItemTextW(hwndDlg, 14011, wszBuf);
1448
1450 SetDlgItemTextW(hwndDlg, 14012, wszBuf);
1451
1452 /* Display files and folders count */
1453 WCHAR wszFormat[100];
1454 LoadStringW(shell32_hInstance, IDS_FILE_FOLDER, wszFormat, _countof(wszFormat));
1455 StringCchPrintfW(wszBuf, _countof(wszBuf), wszFormat, m_cFiles, m_cFolders);
1456 SetDlgItemTextW(hwndDlg, 14027, wszBuf);
1457 }
1458
1459 FindClose(hFind);
1460 return TRUE;
1461}
#define shell32_hInstance
#define ERR(fmt,...)
Definition: precomp.h:57
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
Definition: find.c:320
BOOL WINAPI FindClose(HANDLE hFindFile)
Definition: find.c:502
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
Definition: find.c:382
DWORD WINAPI GetTickCount(VOID)
Definition: time.c:455
LPWSTR SH_FormatFileSizeWithBytes(const PULARGE_INTEGER lpQwSize, LPWSTR pwszResult, UINT cchResultMax)
Definition: filedefext.cpp:266
BOOL GetPhysicalFileSize(LPCWSTR PathBuffer, PULARGE_INTEGER Size)
Definition: filedefext.cpp:32
unsigned int BOOL
Definition: ntddk_ex.h:94
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
Definition: fsrtlfuncs.h:108
CStringA CString
Definition: atlstr.h:139
#define FILE_ATTRIBUTE_DIRECTORY
Definition: nt_native.h:705
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define IDS_FILE_FOLDER
Definition: shresdef.h:220
#define _countof(array)
Definition: sndvol32.h:70
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:530
LONGLONG QuadPart
Definition: typedefs.h:114
struct _LARGE_INTEGER::@2387 u
BOOL WINAPI IsWindow(_In_opt_ HWND)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)

Referenced by _CountFolderAndFilesThreadProc(), and CountFolderAndFiles().

◆ FolderCustomizePageProc()

INT_PTR CALLBACK CFileDefExt::FolderCustomizePageProc ( HWND  hwndDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate

Definition at line 981 of file filedefext.cpp.

982{
983 CFileDefExt *pFileDefExt = reinterpret_cast<CFileDefExt *>(GetWindowLongPtr(hwndDlg, DWLP_USER));
984 switch (uMsg)
985 {
986 case WM_INITDIALOG:
987 {
989
990 if (ppsp == NULL || !ppsp->lParam)
991 break;
992
993 TRACE("WM_INITDIALOG hwnd %p lParam %p ppsplParam %x\n", hwndDlg, lParam, ppsp->lParam);
994
995 pFileDefExt = reinterpret_cast<CFileDefExt *>(ppsp->lParam);
996 return pFileDefExt->InitFolderCustomizePage(hwndDlg);
997 }
998
999 case WM_COMMAND:
1000 switch (LOWORD(wParam))
1001 {
1003 pFileDefExt->OnFolderCustChangeIcon(hwndDlg);
1004 break;
1005
1007 // TODO:
1008 break;
1009
1011 // TODO:
1012 break;
1013 }
1014 break;
1015
1016 case WM_NOTIFY:
1017 {
1019 if (lppsn->hdr.code == PSN_APPLY)
1020 {
1021 // apply or not
1022 if (pFileDefExt->OnFolderCustApply(hwndDlg))
1023 {
1025 }
1026 else
1027 {
1029 }
1030 return TRUE;
1031 }
1032 break;
1033 }
1034
1035 case PSM_QUERYSIBLINGS:
1036 return FALSE; // continue
1037
1038 case WM_DESTROY:
1039 pFileDefExt->OnFolderCustDestroy(hwndDlg);
1040 break;
1041
1042 default:
1043 break;
1044 }
1045
1046 return FALSE;
1047}
void OnFolderCustDestroy(HWND hwndDlg)
BOOL OnFolderCustApply(HWND hwndDlg)
BOOL InitFolderCustomizePage(HWND hwndDlg)
void OnFolderCustChangeIcon(HWND hwndDlg)
WPARAM wParam
Definition: combotst.c:138
#define LOWORD(l)
Definition: pedump.c:82
#define PSNRET_INVALID_NOCHANGEPAGE
Definition: prsht.h:131
#define PSN_APPLY
Definition: prsht.h:117
#define PSNRET_NOERROR
Definition: prsht.h:129
#define LPPROPSHEETPAGE
Definition: prsht.h:390
struct _PSHNOTIFY * LPPSHNOTIFY
#define PSM_QUERYSIBLINGS
Definition: prsht.h:160
#define WM_NOTIFY
Definition: richedit.h:61
#define IDC_FOLDERCUST_CHANGE_ICON
Definition: shresdef.h:561
#define IDC_FOLDERCUST_RESTORE_DEFAULTS
Definition: shresdef.h:558
#define IDC_FOLDERCUST_CHOOSE_PIC
Definition: shresdef.h:557
NMHDR hdr
Definition: prsht.h:330
UINT code
Definition: winuser.h:3170
#define GetWindowLongPtr
Definition: treelist.c:73
#define SetWindowLongPtr
Definition: treelist.c:70
#define DWLP_USER
Definition: winuser.h:883
#define WM_COMMAND
Definition: winuser.h:1751
#define WM_INITDIALOG
Definition: winuser.h:1750
#define DWLP_MSGRESULT
Definition: winuser.h:881
#define WM_DESTROY
Definition: winuser.h:1620

Referenced by AddPages().

◆ GeneralPageProc()

INT_PTR CALLBACK CFileDefExt::GeneralPageProc ( HWND  hwndDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate

Definition at line 698 of file filedefext.cpp.

699{
700 CFileDefExt *pFileDefExt = reinterpret_cast<CFileDefExt *>(GetWindowLongPtr(hwndDlg, DWLP_USER));
701 switch (uMsg)
702 {
703 case WM_INITDIALOG:
704 {
706
707 if (ppsp == NULL || !ppsp->lParam)
708 break;
709
710 TRACE("WM_INITDIALOG hwnd %p lParam %p ppsplParam %S\n", hwndDlg, lParam, ppsp->lParam);
711
712 pFileDefExt = reinterpret_cast<CFileDefExt *>(ppsp->lParam);
713 SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pFileDefExt);
714 pFileDefExt->InitGeneralPage(hwndDlg);
715 break;
716 }
717 case WM_COMMAND:
718 if (LOWORD(wParam) == 14024) /* Opens With - Change */
719 {
720 OPENASINFO oainfo;
721 oainfo.pcszFile = pFileDefExt->m_wszPath;
722 oainfo.pcszClass = NULL;
724 if (SHOpenWithDialog(hwndDlg, &oainfo) == S_OK)
725 {
726 pFileDefExt->InitGeneralPage(hwndDlg);
727 PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
728 }
729 break;
730 }
731 else if (LOWORD(wParam) == 14021 || LOWORD(wParam) == 14022 || LOWORD(wParam) == 14023) /* checkboxes */
732 PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
733 else if (LOWORD(wParam) == 14001) /* Name */
734 {
735 if (HIWORD(wParam) == EN_CHANGE)
736 PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
737 }
738 break;
739 case WM_NOTIFY:
740 {
742 if (lppsn->hdr.code == PSN_APPLY)
743 {
744 /* Update attributes first */
745 DWORD dwAttr = GetFileAttributesW(pFileDefExt->m_wszPath);
746 if (dwAttr)
747 {
749
750 if (BST_CHECKED == SendDlgItemMessageW(hwndDlg, 14021, BM_GETCHECK, 0, 0))
751 dwAttr |= FILE_ATTRIBUTE_READONLY;
752 if (BST_CHECKED == SendDlgItemMessageW(hwndDlg, 14022, BM_GETCHECK, 0, 0))
753 dwAttr |= FILE_ATTRIBUTE_HIDDEN;
754 if (BST_CHECKED == SendDlgItemMessageW(hwndDlg, 14023, BM_GETCHECK, 0, 0))
755 dwAttr |= FILE_ATTRIBUTE_ARCHIVE;
756
757 if (!SetFileAttributesW(pFileDefExt->m_wszPath, dwAttr))
758 ERR("SetFileAttributesW failed\n");
759 }
760
761 /* Update filename now */
762 WCHAR wszBuf[MAX_PATH];
763 StringCchCopyW(wszBuf, _countof(wszBuf), pFileDefExt->m_wszPath);
764 LPWSTR pwszFilename = PathFindFileNameW(wszBuf);
765 UINT cchFilenameMax = _countof(wszBuf) - (pwszFilename - wszBuf);
766 if (GetDlgItemTextW(hwndDlg, 14001, pwszFilename, cchFilenameMax))
767 {
768 if (!MoveFileW(pFileDefExt->m_wszPath, wszBuf))
769 ERR("MoveFileW failed\n");
770 }
771
773 return TRUE;
774 }
775 break;
776 }
778 {
779 // reset icon
780 HWND hIconCtrl = GetDlgItem(hwndDlg, 14025);
781 HICON hIcon = (HICON)SendMessageW(hIconCtrl, STM_GETICON, 0, 0);
783 hIcon = NULL;
784 SendMessageW(hIconCtrl, STM_SETICON, (WPARAM)hIcon, 0);
785
786 // refresh the page
787 pFileDefExt->InitGeneralPage(hwndDlg);
788 return FALSE; // continue
789 }
790 default:
791 break;
792 }
793
794 return FALSE;
795}
HRESULT WINAPI SHOpenWithDialog(HWND hwndParent, const OPENASINFO *poainfo)
BOOL InitGeneralPage(HWND hwndDlg)
Definition: filedefext.cpp:642
#define MAX_PATH
Definition: compat.h:34
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
Definition: fileinfo.c:652
BOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
Definition: fileinfo.c:794
BOOL WINAPI MoveFileW(IN LPCWSTR lpExistingFileName, IN LPCWSTR lpNewFileName)
Definition: move.c:1104
LPWSTR WINAPI PathFindFileNameW(LPCWSTR lpszPath)
Definition: path.c:394
static HICON
Definition: imagelist.c:80
HICON hIcon
Definition: msconfig.c:44
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define FILE_ATTRIBUTE_READONLY
Definition: nt_native.h:702
#define FILE_ATTRIBUTE_HIDDEN
Definition: nt_native.h:703
#define FILE_ATTRIBUTE_ARCHIVE
Definition: nt_native.h:706
#define PropSheet_Changed(d, w)
Definition: prsht.h:344
struct _PROPSHEETPAGEW * LPPROPSHEETPAGEW
@ OAIF_REGISTER_EXT
Definition: shlobj.h:2689
@ OAIF_FORCE_REGISTRATION
Definition: shlobj.h:2691
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:149
LPARAM lParam
Definition: prsht.h:227
LPCWSTR pcszFile
Definition: shlobj.h:2701
LPCWSTR pcszClass
Definition: shlobj.h:2702
OPEN_AS_INFO_FLAGS oaifInFlags
Definition: shlobj.h:2703
#define HIWORD(l)
Definition: typedefs.h:247
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
Definition: dialog.c:2263
#define STM_SETICON
Definition: winuser.h:2103
#define STM_GETICON
Definition: winuser.h:2101
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI GetParent(_In_ HWND)
#define BST_CHECKED
Definition: winuser.h:197
#define BM_GETCHECK
Definition: winuser.h:1929
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2390
#define EN_CHANGE
Definition: winuser.h:2033
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by AddPages().

◆ GetCommandString()

HRESULT WINAPI CFileDefExt::GetCommandString ( UINT_PTR  idCmd,
UINT  uType,
UINT pwReserved,
LPSTR  pszName,
UINT  cchMax 
)
override

Implements IContextMenu.

Definition at line 1290 of file filedefext.cpp.

1291{
1293 return E_NOTIMPL;
1294}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetFileTimeString()

BOOL CFileDefExt::GetFileTimeString ( LPFILETIME  lpFileTime,
LPWSTR  pwszResult,
UINT  cchResult 
)
staticprivate

Definition at line 476 of file filedefext.cpp.

477{
478 FILETIME ft;
479 SYSTEMTIME st;
480
481 if (!FileTimeToLocalFileTime(lpFileTime, &ft) || !FileTimeToSystemTime(&ft, &st))
482 return FALSE;
483
484 size_t cchRemaining = cchResult;
485 LPWSTR pwszEnd = pwszResult;
486 int cchWritten = GetDateFormatW(LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, pwszEnd, cchRemaining);
487 if (cchWritten)
488 --cchWritten; // GetDateFormatW returns count with terminating zero
489 else
490 ERR("GetDateFormatW failed\n");
491 cchRemaining -= cchWritten;
492 pwszEnd += cchWritten;
493
494 StringCchCopyExW(pwszEnd, cchRemaining, L", ", &pwszEnd, &cchRemaining, 0);
495
496 cchWritten = GetTimeFormatW(LOCALE_USER_DEFAULT, 0, &st, NULL, pwszEnd, cchRemaining);
497 if (cchWritten)
498 --cchWritten; // GetTimeFormatW returns count with terminating zero
499 else
500 ERR("GetTimeFormatW failed\n");
501 TRACE("result %s\n", debugstr_w(pwszResult));
502 return TRUE;
503}
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
Definition: time.c:188
BOOL WINAPI FileTimeToLocalFileTime(IN CONST FILETIME *lpFileTime, OUT LPFILETIME lpLocalFileTime)
Definition: time.c:221
INT WINAPI GetTimeFormatW(LCID lcid, DWORD dwFlags, const SYSTEMTIME *lpTime, LPCWSTR lpFormat, LPWSTR lpTimeStr, INT cchOut)
Definition: lcformat.c:1089
INT WINAPI GetDateFormatW(LCID lcid, DWORD dwFlags, const SYSTEMTIME *lpTime, LPCWSTR lpFormat, LPWSTR lpDateStr, INT cchOut)
Definition: lcformat.c:989
#define LOCALE_USER_DEFAULT
STRSAFEAPI StringCchCopyExW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc, STRSAFE_LPWSTR *ppszDestEnd, size_t *pcchRemaining, STRSAFE_DWORD dwFlags)
Definition: strsafe.h:184
#define DATE_LONGDATE
Definition: winnls.h:199

Referenced by InitFileAttr().

◆ GetSite()

HRESULT WINAPI CFileDefExt::GetSite ( REFIID  iid,
void **  ppvSite 
)
override

Definition at line 1346 of file filedefext.cpp.

1347{
1349 return E_NOTIMPL;
1350}

◆ InitFileAttr()

BOOL CFileDefExt::InitFileAttr ( HWND  hwndDlg)
private

Definition at line 514 of file filedefext.cpp.

515{
517 WIN32_FIND_DATAW FileInfo; // WIN32_FILE_ATTRIBUTE_DATA
518 WCHAR wszBuf[MAX_PATH];
519
520 TRACE("InitFileAttr %ls\n", m_wszPath);
521
522 /*
523 * There are situations where GetFileAttributes(Ex) can fail even if the
524 * specified path represents a file. This happens when e.g. the file is a
525 * locked system file, such as C:\pagefile.sys . In this case, the function
526 * returns INVALID_FILE_ATTRIBUTES and GetLastError returns ERROR_SHARING_VIOLATION.
527 * (this would allow us to distinguish between this failure and a failure
528 * due to the fact that the path actually refers to a directory).
529 *
530 * Because we really want to retrieve the file attributes/size/date&time,
531 * we do the following trick:
532 * - First we call GetFileAttributesEx. If it succeeds we know we have
533 * a file or a directory, and we have retrieved its attributes.
534 * - If GetFileAttributesEx fails, we call FindFirstFile on the full path.
535 * While we could have called FindFirstFile at first and skip GetFileAttributesEx
536 * altogether, we do it after GetFileAttributesEx because it performs more
537 * work to retrieve the file attributes. However it actually works even
538 * for locked system files.
539 * - If FindFirstFile succeeds we have retrieved its attributes.
540 * - Otherwise (FindFirstFile has failed), we do not retrieve anything.
541 *
542 * The following code also relies on the fact that the first 6 members
543 * of WIN32_FIND_DATA are *exactly* the same as the WIN32_FILE_ATTRIBUTE_DATA
544 * structure. Therefore it is safe to use a single WIN32_FIND_DATA
545 * structure for both the GetFileAttributesEx and FindFirstFile calls.
546 */
547
551 if (!Success)
552 {
554 Success = (hFind != INVALID_HANDLE_VALUE);
555 if (Success)
556 FindClose(hFind);
557 }
558
559 if (Success)
560 {
561 /* Update attribute checkboxes */
562 if (FileInfo.dwFileAttributes & FILE_ATTRIBUTE_READONLY)
563 SendDlgItemMessage(hwndDlg, 14021, BM_SETCHECK, BST_CHECKED, 0);
564 if (FileInfo.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN)
565 SendDlgItemMessage(hwndDlg, 14022, BM_SETCHECK, BST_CHECKED, 0);
566 if (FileInfo.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE)
567 SendDlgItemMessage(hwndDlg, 14023, BM_SETCHECK, BST_CHECKED, 0);
568
569 /* Update creation time */
570 if (GetFileTimeString(&FileInfo.ftCreationTime, wszBuf, _countof(wszBuf)))
571 SetDlgItemTextW(hwndDlg, 14015, wszBuf);
572
573 /* For files display last access and last write time */
574 if (!m_bDir)
575 {
576 if (GetFileTimeString(&FileInfo.ftLastAccessTime, wszBuf, _countof(wszBuf)))
577 SetDlgItemTextW(hwndDlg, 14019, wszBuf);
578
579 if (GetFileTimeString(&FileInfo.ftLastWriteTime, wszBuf, _countof(wszBuf)))
580 SetDlgItemTextW(hwndDlg, 14017, wszBuf);
581
582 /* Update size of file */
584 FileSize.u.LowPart = FileInfo.nFileSizeLow;
585 FileSize.u.HighPart = FileInfo.nFileSizeHigh;
586 if (SH_FormatFileSizeWithBytes(&FileSize, wszBuf, _countof(wszBuf)))
587 {
588 SetDlgItemTextW(hwndDlg, 14011, wszBuf);
589
590 // Compute file on disk. If fails, use logical size
593 else
594 ERR("Unreliable size on disk\n");
595
596 SetDlgItemTextW(hwndDlg, 14012, wszBuf);
597 }
598 }
599 }
600
601 if (m_bDir)
602 {
603 /* For directories files have to be counted */
604
606 data->This = this;
607 data->pwszBuf = static_cast<LPWSTR>(HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WCHAR) * MAX_PATH));
608 data->hwndDlg = hwndDlg;
609 this->AddRef();
611
613
614 /* Update size field */
615 if (SH_FormatFileSizeWithBytes(&m_DirSize, wszBuf, _countof(wszBuf)))
616 SetDlgItemTextW(hwndDlg, 14011, wszBuf);
617
619 SetDlgItemTextW(hwndDlg, 14012, wszBuf);
620
621 /* Display files and folders count */
622 WCHAR wszFormat[256];
623 LoadStringW(shell32_hInstance, IDS_FILE_FOLDER, wszFormat, _countof(wszFormat));
624 StringCchPrintfW(wszBuf, _countof(wszBuf), wszFormat, m_cFiles, m_cFolders);
625 SetDlgItemTextW(hwndDlg, 14027, wszBuf);
626 }
627
628 /* Hide Advanced button. TODO: Implement advanced dialog and enable this button if filesystem supports compression or encryption */
629 ShowWindow(GetDlgItem(hwndDlg, 14028), SW_HIDE);
630
631 return TRUE;
632}
static BOOL GetFileTimeString(LPFILETIME lpFileTime, LPWSTR pwszResult, UINT cchResult)
Definition: filedefext.cpp:476
static DWORD WINAPI _CountFolderAndFilesThreadProc(LPVOID lpParameter)
#define HeapAlloc
Definition: compat.h:733
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
BOOL WINAPI GetFileAttributesExW(LPCWSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
Definition: fileinfo.c:552
BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE pfnThreadProc, VOID *pData, DWORD dwFlags, LPTHREAD_START_ROUTINE pfnCallback)
Definition: thread.c:356
@ Success
Definition: eventcreate.c:712
@ GetFileExInfoStandard
Definition: winbase.h:1192
#define SW_HIDE
Definition: winuser.h:779
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define BM_SETCHECK
Definition: winuser.h:1932
#define SendDlgItemMessage
Definition: winuser.h:5862

Referenced by InitGeneralPage().

◆ InitFilePath()

BOOL CFileDefExt::InitFilePath ( HWND  hwndDlg)
private

Definition at line 447 of file filedefext.cpp.

448{
449 /* Find the filename */
450 WCHAR *pwszFilename = PathFindFileNameW(m_wszPath);
451
452 if (pwszFilename > m_wszPath)
453 {
454 /* Location field */
455 WCHAR wszLocation[MAX_PATH];
456 StringCchCopyNW(wszLocation, _countof(wszLocation), m_wszPath, pwszFilename - m_wszPath);
457 PathRemoveBackslashW(wszLocation);
458
459 SetDlgItemTextW(hwndDlg, 14009, wszLocation);
460 }
461
462 /* Filename field */
463 SetDlgItemTextW(hwndDlg, 14001, pwszFilename);
464
465 return TRUE;
466}
LPWSTR WINAPI PathRemoveBackslashW(LPWSTR lpszPath)
Definition: path.c:867
STRSAFEAPI StringCchCopyNW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc, size_t cchToCopy)
Definition: strsafe.h:236

Referenced by InitGeneralPage().

◆ InitFileType()

BOOL CFileDefExt::InitFileType ( HWND  hwndDlg)
private

Definition at line 388 of file filedefext.cpp.

389{
390 TRACE("path %s\n", debugstr_w(m_wszPath));
391
392 HWND hDlgCtrl = GetDlgItem(hwndDlg, 14005);
393 if (hDlgCtrl == NULL)
394 return FALSE;
395
396 /* Get file information */
397 SHFILEINFOW fi;
398 if (!SHGetFileInfoW(m_wszPath, 0, &fi, sizeof(fi), SHGFI_TYPENAME|SHGFI_ICON))
399 {
400 ERR("SHGetFileInfoW failed for %ls (%lu)\n", m_wszPath, GetLastError());
401 fi.szTypeName[0] = L'\0';
402 fi.hIcon = NULL;
403 }
404
406 if (pwszExt[0])
407 {
408 WCHAR wszBuf[256];
409
410 if (!fi.szTypeName[0])
411 {
412 /* The file type is unknown, so default to string "FileExtension File" */
413 size_t cchRemaining = 0;
414 LPWSTR pwszEnd = NULL;
415
416 StringCchPrintfExW(wszBuf, _countof(wszBuf), &pwszEnd, &cchRemaining, 0, L"%s ", pwszExt + 1);
417 SendMessageW(hDlgCtrl, WM_GETTEXT, (WPARAM)cchRemaining, (LPARAM)pwszEnd);
418
419 SendMessageW(hDlgCtrl, WM_SETTEXT, (WPARAM)NULL, (LPARAM)wszBuf);
420 }
421 else
422 {
423 /* Update file type */
424 StringCbPrintfW(wszBuf, sizeof(wszBuf), L"%s (%s)", fi.szTypeName, pwszExt);
425 SendMessageW(hDlgCtrl, WM_SETTEXT, (WPARAM)NULL, (LPARAM)wszBuf);
426 }
427 }
428
429 /* Update file icon */
430 if (fi.hIcon)
431 SendDlgItemMessageW(hwndDlg, 14000, STM_SETICON, (WPARAM)fi.hIcon, 0);
432 else
433 ERR("No icon %ls\n", m_wszPath);
434
435 return TRUE;
436}
LPWSTR WINAPI PathFindExtensionW(LPCWSTR lpszPath)
Definition: path.c:447
DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR path, DWORD dwFileAttributes, SHFILEINFOW *psfi, UINT sizeofpsfi, UINT flags)
Definition: shell32_main.c:430
#define SHGFI_ICON
Definition: shellapi.h:165
#define SHGFI_TYPENAME
Definition: shellapi.h:168
STRSAFEAPI StringCchPrintfExW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPWSTR *ppszDestEnd, size_t *pcchRemaining, STRSAFE_DWORD dwFlags, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:585
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:557
WCHAR szTypeName[80]
Definition: shellapi.h:377
HICON hIcon
Definition: shellapi.h:373
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define WM_GETTEXT
Definition: winuser.h:1629
#define WM_SETTEXT
Definition: winuser.h:1628

Referenced by InitGeneralPage().

◆ InitFolderCustomizePage()

BOOL CFileDefExt::InitFolderCustomizePage ( HWND  hwndDlg)
private

Definition at line 1084 of file filedefext.cpp.

1085{
1086 /* Attach the object to dialog window */
1087 SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)this);
1088
1093
1094 // build the desktop.ini file path
1097 PathAppendW(szIniFile, L"desktop.ini");
1098
1099 // desktop.ini --> m_szFolderIconPath, m_nFolderIconIndex
1100 m_szFolderIconPath[0] = 0;
1104 {
1106 }
1109 {
1111 }
1112
1113 // update icon
1114 UpdateFolderIcon(hwndDlg);
1115
1116 return TRUE;
1117}
void UpdateFolderIcon(HWND hwndDlg)
UINT WINAPI GetPrivateProfileIntW(LPCWSTR section, LPCWSTR entry, INT def_val, LPCWSTR filename)
Definition: profile.c:1297
INT WINAPI GetPrivateProfileStringW(LPCWSTR section, LPCWSTR entry, LPCWSTR def_val, LPWSTR buffer, UINT len, LPCWSTR filename)
Definition: profile.c:1142
int WINAPI PathParseIconLocationW(LPWSTR lpszPath)
Definition: path.c:1098
static const WCHAR s_szShellClassInfo[]
Definition: filedefext.cpp:974
static const WCHAR s_szIconFile[]
Definition: filedefext.cpp:976
static const WCHAR s_szIconResource[]
Definition: filedefext.cpp:977
static const WCHAR s_szIconIndex[]
Definition: filedefext.cpp:975
#define PathAppendW
Definition: pathcch.h:309
TCHAR szIniFile[]
Definition: scrnsave.c:29
#define IDC_FOLDERCUST_CHECKBOX
Definition: shresdef.h:556
#define IDC_FOLDERCUST_COMBOBOX
Definition: shresdef.h:555
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)

Referenced by FolderCustomizePageProc().

◆ InitGeneralPage()

BOOL CFileDefExt::InitGeneralPage ( HWND  hwndDlg)
private

Definition at line 642 of file filedefext.cpp.

643{
644 /* Set general text properties filename filelocation and icon */
645 InitFilePath(hwndDlg);
646
647 /* Set file type and icon */
648 InitFileType(hwndDlg);
649
650 /* Set open with application */
651 if (!m_bDir)
652 {
653 if (!PathIsExeW(m_wszPath))
654 InitOpensWithField(hwndDlg);
655 else
656 {
657 WCHAR wszBuf[MAX_PATH];
659 SetDlgItemTextW(hwndDlg, 14006, wszBuf);
660 ShowWindow(GetDlgItem(hwndDlg, 14024), SW_HIDE);
661
662 /* hidden button 14024 allows to draw edit 14007 larger than defined in resources , we use edit 14009 as idol */
663 RECT rectIdol, rectToAdjust;
664 GetClientRect(GetDlgItem(hwndDlg, 14009), &rectIdol);
665 GetClientRect(GetDlgItem(hwndDlg, 14007), &rectToAdjust);
666 SetWindowPos(GetDlgItem(hwndDlg, 14007), HWND_TOP, 0, 0,
667 rectIdol.right-rectIdol.left /* make it as wide as its idol */,
668 rectToAdjust.bottom-rectToAdjust.top /* but keep its current height */,
670
671 LPCWSTR pwszDescr = m_VerInfo.GetString(L"FileDescription");
672 if (pwszDescr)
673 SetDlgItemTextW(hwndDlg, 14007, pwszDescr);
674 else
675 {
676 StringCbCopyW(wszBuf, sizeof(wszBuf), PathFindFileNameW(m_wszPath));
677 PathRemoveExtension(wszBuf);
678 SetDlgItemTextW(hwndDlg, 14007, wszBuf);
679 }
680 }
681 }
682
683 /* Set file created/modfied/accessed time, size and attributes */
684 InitFileAttr(hwndDlg);
685
686 return TRUE;
687}
EXTERN_C BOOL PathIsExeW(LPCWSTR lpszPath)
Definition: shellpath.c:539
BOOL InitFileAttr(HWND hwndDlg)
Definition: filedefext.cpp:514
BOOL InitFileType(HWND hwndDlg)
Definition: filedefext.cpp:388
VOID InitOpensWithField(HWND hwndDlg)
Definition: filedefext.cpp:294
BOOL InitFilePath(HWND hwndDlg)
Definition: filedefext.cpp:447
#define PathRemoveExtension
Definition: shlwapi.h:1066
#define IDS_EXE_DESCRIPTION
Definition: shresdef.h:210
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:166
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOMOVE
Definition: winuser.h:1255
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define HWND_TOP
Definition: winuser.h:1218
#define SWP_NOZORDER
Definition: winuser.h:1258

Referenced by GeneralPageProc().

◆ Initialize()

HRESULT WINAPI CFileDefExt::Initialize ( PCIDLIST_ABSOLUTE  pidlFolder,
IDataObject pdtobj,
HKEY  hkeyProgID 
)
override

Implements IShellExtInit.

Definition at line 1237 of file filedefext.cpp.

1238{
1239 FORMATETC format;
1240 STGMEDIUM stgm;
1241 HRESULT hr;
1242
1243 TRACE("%p %p %p %p\n", this, pidlFolder, pDataObj, hkeyProgID);
1244
1245 if (!pDataObj)
1246 return E_FAIL;
1247
1248 format.cfFormat = CF_HDROP;
1249 format.ptd = NULL;
1250 format.dwAspect = DVASPECT_CONTENT;
1251 format.lindex = -1;
1252 format.tymed = TYMED_HGLOBAL;
1253
1254 hr = pDataObj->GetData(&format, &stgm);
1256 return hr;
1257
1258 if (!DragQueryFileW((HDROP)stgm.hGlobal, 0, m_wszPath, _countof(m_wszPath)))
1259 {
1260 ERR("DragQueryFileW failed\n");
1261 ReleaseStgMedium(&stgm);
1262 return E_FAIL;
1263 }
1264
1265 ReleaseStgMedium(&stgm);
1266
1267 TRACE("File properties %ls\n", m_wszPath);
1269 if (!m_bDir)
1271
1272 return S_OK;
1273}
#define CF_HDROP
Definition: constants.h:410
BOOL Load(LPCWSTR pwszPath)
Definition: filedefext.cpp:82
#define E_FAIL
Definition: ddrawi.h:102
void WINAPI ReleaseStgMedium(STGMEDIUM *pmedium)
Definition: ole2.c:2033
UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszwFile, UINT lLength)
Definition: shellole.c:622
BOOL WINAPI PathIsDirectoryW(LPCWSTR lpszPath)
Definition: path.c:1729
Definition: format.c:58

◆ InitOpensWithField()

VOID CFileDefExt::InitOpensWithField ( HWND  hwndDlg)
private

Definition at line 294 of file filedefext.cpp.

295{
296 WCHAR wszBuf[MAX_PATH] = L"";
297 WCHAR wszPath[MAX_PATH] = L"";
298 DWORD dwSize = sizeof(wszBuf);
299 BOOL bUnknownApp = TRUE;
301
302 // TODO: Use ASSOCSTR_EXECUTABLE with ASSOCF_REMAPRUNDLL | ASSOCF_IGNOREBASECLASS
303 if (RegGetValueW(HKEY_CLASSES_ROOT, pwszExt, L"", RRF_RT_REG_SZ, NULL, wszBuf, &dwSize) == ERROR_SUCCESS)
304 {
305 bUnknownApp = FALSE;
306 StringCbCatW(wszBuf, sizeof(wszBuf), L"\\shell\\open\\command");
307 dwSize = sizeof(wszPath);
308 // FIXME: Missing FileExt check, see COpenWithList::SetDefaultHandler for details
309 // FIXME: Use HCR_GetDefaultVerbW to find the default verb
310 if (RegGetValueW(HKEY_CLASSES_ROOT, wszBuf, L"", RRF_RT_REG_SZ, NULL, wszPath, &dwSize) == ERROR_SUCCESS)
311 {
312 /* Get path from command line */
313 ExpandEnvironmentStringsW(wszPath, wszBuf, _countof(wszBuf));
314 if (SHELL32_GetDllFromRundll32CommandLine(wszBuf, wszBuf, _countof(wszBuf)) != S_OK)
315 {
316 PathRemoveArgs(wszBuf);
317 PathUnquoteSpacesW(wszBuf);
318 }
319 PathSearchAndQualify(wszBuf, wszPath, _countof(wszPath));
320
321 HICON hIcon;
322 if (ExtractIconExW(wszPath, 0, NULL, &hIcon, 1))
323 {
324 HWND hIconCtrl = GetDlgItem(hwndDlg, 14025);
325 HWND hDescrCtrl = GetDlgItem(hwndDlg, 14007);
326 ShowWindow(hIconCtrl, SW_SHOW);
327 RECT rcIcon, rcDescr;
328 GetWindowRect(hIconCtrl, &rcIcon);
329
330 rcIcon.right = rcIcon.left + GetSystemMetrics(SM_CXSMICON);
331 rcIcon.bottom = rcIcon.top + GetSystemMetrics(SM_CYSMICON);
332
333 MapWindowPoints(NULL, hwndDlg, (LPPOINT)&rcIcon, 2);
334 GetWindowRect(hDescrCtrl, &rcDescr);
335 MapWindowPoints(NULL, hwndDlg, (LPPOINT)&rcDescr, 2);
336 INT cxOffset = rcIcon.right + 2 - rcDescr.left;
337 SetWindowPos(hDescrCtrl, NULL,
338 rcDescr.left + cxOffset, rcDescr.top,
339 rcDescr.right - rcDescr.left - cxOffset, rcDescr.bottom - rcDescr.top,
341 SendMessageW(hIconCtrl, STM_SETICON, (WPARAM)hIcon, 0);
342 } else
343 ERR("Failed to extract icon\n");
344
345 if (PathFileExistsW(wszPath))
346 {
347 /* Get file description */
348 CFileVersionInfo VerInfo;
349 VerInfo.Load(wszPath);
350 LPCWSTR pwszDescr = VerInfo.GetString(L"FileDescription");
351 if (pwszDescr)
352 SetDlgItemTextW(hwndDlg, 14007, pwszDescr);
353 else
354 {
355 /* File has no description - display filename */
356 LPWSTR pwszFilename = PathFindFileNameW(wszPath);
357 PathRemoveExtension(pwszFilename);
358 pwszFilename[0] = towupper(pwszFilename[0]);
359 SetDlgItemTextW(hwndDlg, 14007, pwszFilename);
360 }
361 }
362 else
363 bUnknownApp = TRUE;
364 } else
365 WARN("RegGetValueW %ls failed\n", wszBuf);
366 } else
367 WARN("RegGetValueW %ls failed\n", pwszExt);
368
369 if (bUnknownApp)
370 {
371 /* Unknown application */
373 SetDlgItemTextW(hwndDlg, 14007, wszBuf);
374 }
375}
HRESULT SHELL32_GetDllFromRundll32CommandLine(LPCWSTR pszCmd, LPWSTR pszOut, SIZE_T cchMax)
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERROR_SUCCESS
Definition: deptool.c:10
LSTATUS WINAPI RegGetValueW(HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue, DWORD dwFlags, LPDWORD pdwType, PVOID pvData, LPDWORD pcbData)
Definition: reg.c:1931
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
Definition: environ.c:519
#define RRF_RT_REG_SZ
Definition: driver.c:575
BOOL WINAPI PathFileExistsW(LPCWSTR lpszPath)
Definition: path.c:1783
VOID WINAPI PathUnquoteSpacesW(LPWSTR lpszPath)
Definition: path.c:1040
UINT WINAPI ExtractIconExW(LPCWSTR lpszFile, INT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons)
Definition: iconcache.cpp:855
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
#define PathSearchAndQualify
Definition: shlwapi.h:1100
#define PathRemoveArgs
Definition: shlwapi.h:1054
#define IDS_UNKNOWN_APP
Definition: shresdef.h:209
STRSAFEAPI StringCbCatW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:342
#define towupper(c)
Definition: wctype.h:99
int32_t INT
Definition: typedefs.h:58
#define HKEY_CLASSES_ROOT
Definition: winreg.h:10
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
#define SM_CYSMICON
Definition: winuser.h:1024
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
#define SM_CXSMICON
Definition: winuser.h:1023
#define SW_SHOW
Definition: winuser.h:786
int WINAPI GetSystemMetrics(_In_ int)

Referenced by InitGeneralPage().

◆ InitVersionPage()

BOOL CFileDefExt::InitVersionPage ( HWND  hwndDlg)
private

Definition at line 805 of file filedefext.cpp.

806{
807 /* Get fixed info */
809 if (pInfo)
810 {
811 WCHAR wszVersion[256];
812 swprintf(wszVersion, L"%u.%u.%u.%u", HIWORD(pInfo->dwFileVersionMS),
813 LOWORD(pInfo->dwFileVersionMS),
814 HIWORD(pInfo->dwFileVersionLS),
815 LOWORD(pInfo->dwFileVersionLS));
816 TRACE("MS %x LS %x ver %s \n", pInfo->dwFileVersionMS, pInfo->dwFileVersionLS, debugstr_w(wszVersion));
817 SetDlgItemTextW(hwndDlg, 14001, wszVersion);
818 }
819
820 /* Update labels */
821 SetVersionLabel(hwndDlg, 14003, L"FileDescription");
822 SetVersionLabel(hwndDlg, 14005, L"LegalCopyright");
823
824 /* Add items to listbox */
825 AddVersionString(hwndDlg, L"CompanyName");
826 LPCWSTR pwszLang = m_VerInfo.GetLangName();
827 if (pwszLang)
828 {
829 HWND hDlgCtrl = GetDlgItem(hwndDlg, 14009);
830 UINT Index = SendMessageW(hDlgCtrl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)L"Language");
831 SendMessageW(hDlgCtrl, LB_SETITEMDATA, (WPARAM)Index, (LPARAM)(WCHAR *)pwszLang);
832 }
833 AddVersionString(hwndDlg, L"ProductName");
834 AddVersionString(hwndDlg, L"InternalName");
835 AddVersionString(hwndDlg, L"OriginalFilename");
836 AddVersionString(hwndDlg, L"FileVersion");
837 AddVersionString(hwndDlg, L"ProductVersion");
838 AddVersionString(hwndDlg, L"Comments");
839 AddVersionString(hwndDlg, L"LegalTrademarks");
840
841 if (pInfo && (pInfo->dwFileFlags & VS_FF_PRIVATEBUILD))
842 AddVersionString(hwndDlg, L"PrivateBuild");
843
844 if (pInfo && (pInfo->dwFileFlags & VS_FF_SPECIALBUILD))
845 AddVersionString(hwndDlg, L"SpecialBuild");
846
847 /* Attach file version to dialog window */
848 SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)this);
849
850 /* Select first item */
851 HWND hDlgCtrl = GetDlgItem(hwndDlg, 14009);
852 SendMessageW(hDlgCtrl, LB_SETCURSEL, 0, 0);
853 LPCWSTR pwszText = (LPCWSTR)SendMessageW(hDlgCtrl, LB_GETITEMDATA, (WPARAM)0, (LPARAM)NULL);
854 if (pwszText && pwszText != (LPCWSTR)LB_ERR)
855 SetDlgItemTextW(hwndDlg, 14010, pwszText);
856
857 return TRUE;
858}
BOOL AddVersionString(HWND hwndDlg, LPCWSTR pwszName)
Definition: filedefext.cpp:893
BOOL SetVersionLabel(HWND hwndDlg, DWORD idCtrl, LPCWSTR pwszName)
Definition: filedefext.cpp:868
VS_FIXEDFILEINFO * GetFixedInfo()
Definition: filedefext.cpp:153
LPCWSTR GetLangName()
Definition: filedefext.cpp:165
#define swprintf
Definition: precomp.h:40
DWORD dwFileVersionLS
Definition: compat.h:903
DWORD dwFileVersionMS
Definition: compat.h:902
#define VS_FF_SPECIALBUILD
Definition: verrsrc.h:47
#define VS_FF_PRIVATEBUILD
Definition: verrsrc.h:45
#define LB_ERR
Definition: winuser.h:2443
#define LB_GETITEMDATA
Definition: winuser.h:2052
#define LB_SETCURSEL
Definition: winuser.h:2074

Referenced by VersionPageProc().

◆ InvokeCommand()

HRESULT WINAPI CFileDefExt::InvokeCommand ( LPCMINVOKECOMMANDINFO  lpici)
override

Implements IContextMenu.

Definition at line 1283 of file filedefext.cpp.

1284{
1286 return E_NOTIMPL;
1287}

◆ OnFolderCustApply()

BOOL CFileDefExt::OnFolderCustApply ( HWND  hwndDlg)

Definition at line 1152 of file filedefext.cpp.

1153{
1154 // build the desktop.ini file path
1157 PathAppendW(szIniFile, L"desktop.ini");
1158
1159 if (m_bFolderIconIsSet) // it is set!
1160 {
1161 DWORD attrs;
1162
1163 // change folder attributes (-S -R)
1167
1168 // change desktop.ini attributes (-S -H -R)
1172
1173 if (m_szFolderIconPath[0])
1174 {
1175 // write IconFile and IconIndex
1177
1178 WCHAR szInt[32];
1179 StringCchPrintfW(szInt, _countof(szInt), L"%d", m_nFolderIconIndex);
1181
1182 // flush!
1184 }
1185 else
1186 {
1187 // erase three values
1191
1192 // flush!
1194 }
1195
1196 // change desktop.ini attributes (+S +H)
1200
1201 // change folder attributes (+R)
1203 attrs |= FILE_ATTRIBUTE_READONLY;
1205
1206 // notify to the siblings
1207 PropSheet_QuerySiblings(GetParent(hwndDlg), 0, 0);
1208
1209 // done!
1211 }
1212
1213 return TRUE;
1214}
BOOL WINAPI WritePrivateProfileStringW(LPCWSTR section, LPCWSTR entry, LPCWSTR string, LPCWSTR filename)
Definition: profile.c:1453
#define FILE_ATTRIBUTE_SYSTEM
Definition: nt_native.h:704
#define PropSheet_QuerySiblings(d, w, l)
Definition: prsht.h:349

Referenced by FolderCustomizePageProc().

◆ OnFolderCustChangeIcon()

void CFileDefExt::OnFolderCustChangeIcon ( HWND  hwndDlg)

Definition at line 1120 of file filedefext.cpp.

1121{
1123 INT nIconIndex;
1124
1125 // m_szFolderIconPath, m_nFolderIconIndex --> szPath, nIconIndex
1126 if (m_szFolderIconPath[0])
1127 {
1129 nIconIndex = m_nFolderIconIndex;
1130 }
1131 else
1132 {
1133 szPath[0] = 0;
1134 nIconIndex = 0;
1135 }
1136
1137 // let the user choose the icon
1138 if (PickIconDlg(hwndDlg, szPath, _countof(szPath), &nIconIndex))
1139 {
1140 // changed
1142 PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
1143
1144 // update
1146 m_nFolderIconIndex = nIconIndex;
1147 UpdateFolderIcon(hwndDlg);
1148 }
1149}
BOOL WINAPI PickIconDlg(HWND hWndOwner, LPWSTR lpstrFile, UINT nMaxFile, INT *lpdwIconIndex)
Definition: dialogs.cpp:351
LPCWSTR szPath
Definition: env.c:37

Referenced by FolderCustomizePageProc().

◆ OnFolderCustDestroy()

void CFileDefExt::OnFolderCustDestroy ( HWND  hwndDlg)

Definition at line 1050 of file filedefext.cpp.

1051{
1054
1055 /* Detach the object from dialog window */
1056 SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)0);
1057}

Referenced by FolderCustomizePageProc().

◆ QueryContextMenu()

HRESULT WINAPI CFileDefExt::QueryContextMenu ( HMENU  hmenu,
UINT  indexMenu,
UINT  idCmdFirst,
UINT  idCmdLast,
UINT  uFlags 
)
override

Implements IContextMenu.

Definition at line 1276 of file filedefext.cpp.

1277{
1279 return E_NOTIMPL;
1280}

◆ ReplacePage()

HRESULT WINAPI CFileDefExt::ReplacePage ( UINT  uPageID,
LPFNADDPROPSHEETPAGE  pfnReplacePage,
LPARAM  lParam 
)
override

Definition at line 1332 of file filedefext.cpp.

1333{
1335 return E_NOTIMPL;
1336}

◆ SetSite()

HRESULT WINAPI CFileDefExt::SetSite ( IUnknown punk)
override

Implements IObjectWithSite.

Definition at line 1339 of file filedefext.cpp.

1340{
1342 return E_NOTIMPL;
1343}

◆ SetVersionLabel()

BOOL CFileDefExt::SetVersionLabel ( HWND  hwndDlg,
DWORD  idCtrl,
LPCWSTR  pwszName 
)
private

Definition at line 868 of file filedefext.cpp.

869{
870 if (hwndDlg == NULL || pwszName == NULL)
871 return FALSE;
872
873 LPCWSTR pwszValue = m_VerInfo.GetString(pwszName);
874 if (pwszValue)
875 {
876 /* file description property */
877 TRACE("%s :: %s\n", debugstr_w(pwszName), debugstr_w(pwszValue));
878 SetDlgItemTextW(hwndDlg, idCtrl, pwszValue);
879 return TRUE;
880 }
881
882 return FALSE;
883}

Referenced by InitVersionPage().

◆ UpdateFolderIcon()

void CFileDefExt::UpdateFolderIcon ( HWND  hwndDlg)

Definition at line 1059 of file filedefext.cpp.

1060{
1061 // destroy icon if any
1062 if (m_hFolderIcon)
1063 {
1066 }
1067
1068 // create the icon
1069 if (m_szFolderIconPath[0] == 0 && m_nFolderIconIndex == 0)
1070 {
1071 // Windows ignores shell customization here and uses the default icon
1073 }
1074 else
1075 {
1077 }
1078
1079 // set icon
1081}
#define IDI_SHELL_FOLDER
Definition: treeview.c:21
#define IDC_FOLDERCUST_ICON
Definition: shresdef.h:560
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
Definition: cursoricon.c:2412

Referenced by InitFolderCustomizePage(), and OnFolderCustChangeIcon().

◆ VersionPageProc()

INT_PTR CALLBACK CFileDefExt::VersionPageProc ( HWND  hwndDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate

Definition at line 922 of file filedefext.cpp.

923{
924 switch (uMsg)
925 {
926 case WM_INITDIALOG:
927 {
929
930 if (ppsp == NULL || !ppsp->lParam)
931 break;
932
933 TRACE("WM_INITDIALOG hwnd %p lParam %p ppsplParam %x\n", hwndDlg, lParam, ppsp->lParam);
934
935 CFileDefExt *pFileDefExt = reinterpret_cast<CFileDefExt *>(ppsp->lParam);
936 return pFileDefExt->InitVersionPage(hwndDlg);
937 }
938 case WM_COMMAND:
939 if (LOWORD(wParam) == 14009 && HIWORD(wParam) == LBN_SELCHANGE)
940 {
941 HWND hDlgCtrl = (HWND)lParam;
942
944 if (Index == LB_ERR)
945 break;
946
948 if (pwszData == NULL)
949 break;
950
951 CString str(pwszData);
952 str.Trim();
953
954 TRACE("hDlgCtrl %x string %s\n", hDlgCtrl, debugstr_w(str));
955 SetDlgItemTextW(hwndDlg, 14010, str);
956
957 return TRUE;
958 }
959 break;
960 case WM_DESTROY:
961 break;
963 return FALSE; // continue
964 default:
965 break;
966 }
967
968 return FALSE;
969}
BOOL InitVersionPage(HWND hwndDlg)
Definition: filedefext.cpp:805
HANDLE HWND
Definition: compat.h:19
const WCHAR * str
LONG_PTR LRESULT
Definition: windef.h:209
#define LBN_SELCHANGE
Definition: winuser.h:2086
#define LB_GETCURSEL
Definition: winuser.h:2050

Referenced by AddPages().

Member Data Documentation

◆ m_bDir

BOOL CFileDefExt::m_bDir
private

Definition at line 82 of file filedefext.h.

Referenced by AddPages(), InitFileAttr(), InitGeneralPage(), and Initialize().

◆ m_bFolderIconIsSet

BOOL CFileDefExt::m_bFolderIconIsSet
private

Definition at line 95 of file filedefext.h.

Referenced by CFileDefExt(), OnFolderCustApply(), and OnFolderCustChangeIcon().

◆ m_cFiles

DWORD CFileDefExt::m_cFiles
private

Definition at line 84 of file filedefext.h.

Referenced by CountFolderAndFiles(), and InitFileAttr().

◆ m_cFolders

DWORD CFileDefExt::m_cFolders
private

Definition at line 85 of file filedefext.h.

Referenced by CountFolderAndFiles(), and InitFileAttr().

◆ m_DirSize

ULARGE_INTEGER CFileDefExt::m_DirSize
private

Definition at line 86 of file filedefext.h.

Referenced by CFileDefExt(), CountFolderAndFiles(), and InitFileAttr().

◆ m_DirSizeOnDisc

ULARGE_INTEGER CFileDefExt::m_DirSizeOnDisc
private

Definition at line 87 of file filedefext.h.

Referenced by CFileDefExt(), CountFolderAndFiles(), and InitFileAttr().

◆ m_hFolderIcon

HICON CFileDefExt::m_hFolderIcon
private

Definition at line 94 of file filedefext.h.

Referenced by CFileDefExt(), OnFolderCustDestroy(), and UpdateFolderIcon().

◆ m_nFolderIconIndex

INT CFileDefExt::m_nFolderIconIndex
private

◆ m_szFolderIconPath

WCHAR CFileDefExt::m_szFolderIconPath[MAX_PATH]
private

◆ m_VerInfo

CFileVersionInfo CFileDefExt::m_VerInfo
private

◆ m_wszPath


The documentation for this class was generated from the following files: