Open and SaveAs

  • Thread starter Thread starter Wendell Riseley
  • Start date Start date
W

Wendell Riseley

I'm using WinXP. I'd like to set the defaults for
application programs' file and folder "Open" and "SaveAs"
functions to be "Details" and in name order. I think I
should be able to do that in the Registry. Does anyone
know how?
 
No. No one knows how. Open/SaveAs do not read icon style at all.

This is the only structure that is read. Note their is no icon style.

typedef struct {
BOOL fShowAllObjects:1;
BOOL fShowExtensions:1;
BOOL fNoConfirmRecycle:1;
BOOL fShowSysFiles:1;
BOOL fShowCompColor:1;
BOOL fDoubleClickInWebView:1;
BOOL fDesktopHTML:1;
BOOL fWin95Classic:1;
BOOL fDontPrettyPath:1;
BOOL fShowAttribCol:1;
BOOL fMapNetDrvBtn:1;
BOOL fShowInfoTip:1;
BOOL fHideIcons:1;
BOOL fWebView:1;
BOOL fFilter:1;
BOOL fShowSuperHidden:1;
BOOL fNoNetCrawling:1;
DWORD dwWin95Unused;
UINT uWin95Unused;
LONG lParamSort;
int iSortDirection;
UINT version;
UINT uNotUsed;
BOOL fSepProcess:1;
BOOL fStartPanelOn:1;
BOOL fShowStartPage:1;
UINT fSpareFlags:13;
} SHELLSTATE, *LPSHSHELLSTATE;
Members

fShowAllObjects
TRUE to show all objects, including hidden files and folders. FALSE to hide hidden files and folders.
fShowExtensions
TRUE to show file extensions, FALSE to hide them.
fNoConfirmRecycle
TRUE to show no confirmation dialog box when deleting items to the Recycle Bin, FALSE to display the confirmation dialog box.
fShowSysFiles
TRUE to show system files, FALSE to hide them.
fShowCompColor
TRUE to show encrypted or compressed NTFS files in color.
fDoubleClickInWebView
TRUE to require a double-click to open an item when in Web View.
fDesktopHTML
TRUE to use Active Desktop, FALSE otherwise.
fWin95Classic
TRUE to enforce Microsoft® Windows® 95 Shell behavior and restrictions.
fDontPrettyPath
TRUE to prevent the conversion of the path to all lowercase characters.
fShowAttribCol
Not used.
fMapNetDrvBtn
TRUE to display a Map Network Drive button.
fShowInfoTip
TRUE to show a pop-up description for folders and files.
fHideIcons
TRUE to hide desktop icons, FALSE to show them.
fWebView
TRUE to display as a Web View.
fFilter
Not used.
fShowSuperHidden
TRUE to show operating system files.
fNoNetCrawling
TRUE to disable automatic searching for network folders and printers.
dwWin95Unused
Not used.
uWin95Unused
Not used.
lParamSort
The column to sort by.
iSortDirection
Alphabetic sort direction for the column specified by lParamSort. Use 1 for an ascending sort, -1 for a descending sort.
version
Not used.
uNotUsed
Not used.
fSepProcess
TRUE to launch folder windows in separate processes, FALSE to launch in the same process.
fStartPanelOn
Windows XP only: TRUE to use the Windows XP-style Start menu, FALSE to use the classic Start menu.
fShowStartPage
Not used.
fSpareFlags
Not used.
 
Thats excellent explanation. Just tried using regmon. BTW, how did u
determine the coding? APIMON?

--
Regards,
Ramesh
(e-mail address removed)


No. No one knows how. Open/SaveAs do not read icon style at all.

This is the only structure that is read. Note their is no icon style.

typedef struct {
BOOL fShowAllObjects:1;
BOOL fShowExtensions:1;
BOOL fNoConfirmRecycle:1;
BOOL fShowSysFiles:1;
BOOL fShowCompColor:1;
BOOL fDoubleClickInWebView:1;
BOOL fDesktopHTML:1;
BOOL fWin95Classic:1;
BOOL fDontPrettyPath:1;
BOOL fShowAttribCol:1;
BOOL fMapNetDrvBtn:1;
BOOL fShowInfoTip:1;
BOOL fHideIcons:1;
BOOL fWebView:1;
BOOL fFilter:1;
BOOL fShowSuperHidden:1;
BOOL fNoNetCrawling:1;
DWORD dwWin95Unused;
UINT uWin95Unused;
LONG lParamSort;
int iSortDirection;
UINT version;
UINT uNotUsed;
BOOL fSepProcess:1;
BOOL fStartPanelOn:1;
BOOL fShowStartPage:1;
UINT fSpareFlags:13;
} SHELLSTATE, *LPSHSHELLSTATE;
Members

fShowAllObjects
TRUE to show all objects, including hidden files and folders. FALSE to
hide hidden files and folders.
fShowExtensions
TRUE to show file extensions, FALSE to hide them.
fNoConfirmRecycle
TRUE to show no confirmation dialog box when deleting items to the
Recycle Bin, FALSE to display the confirmation dialog box.
fShowSysFiles
TRUE to show system files, FALSE to hide them.
fShowCompColor
TRUE to show encrypted or compressed NTFS files in color.
fDoubleClickInWebView
TRUE to require a double-click to open an item when in Web View.
fDesktopHTML
TRUE to use Active Desktop, FALSE otherwise.
fWin95Classic
TRUE to enforce Microsoft® Windows® 95 Shell behavior and restrictions.
fDontPrettyPath
TRUE to prevent the conversion of the path to all lowercase characters.
fShowAttribCol
Not used.
fMapNetDrvBtn
TRUE to display a Map Network Drive button.
fShowInfoTip
TRUE to show a pop-up description for folders and files.
fHideIcons
TRUE to hide desktop icons, FALSE to show them.
fWebView
TRUE to display as a Web View.
fFilter
Not used.
fShowSuperHidden
TRUE to show operating system files.
fNoNetCrawling
TRUE to disable automatic searching for network folders and printers.
dwWin95Unused
Not used.
uWin95Unused
Not used.
lParamSort
The column to sort by.
iSortDirection
Alphabetic sort direction for the column specified by lParamSort. Use 1
for an ascending sort, -1 for a descending sort.
version
Not used.
uNotUsed
Not used.
fSepProcess
TRUE to launch folder windows in separate processes, FALSE to launch in
the same process.
fStartPanelOn
Windows XP only: TRUE to use the Windows XP-style Start menu, FALSE to
use the classic Start menu.
fShowStartPage
Not used.
fSpareFlags
Not used.
 
It's a structure in the MSDN. Once I may have spent 6 months building it, but as MS always release the data after I spend 6 months reverse engineering something it's hard to get motivated.

Always assume programmers are lazy, if they had to write a structure for an API call, they'll try to reuse it as a registry storage structure. Always search the API for things in the registry. Many reg keys are only documented in a relevent API call and programmers reuse terms, names, and structures.

The settlement API calls that MS released will give clues to how explorer works. But it's a bit of a clayton's reference. It's not helpful. But you can find out how the hell windows decides what settings to apply to a folder from folder settings if that folder doesn't have any saved settings. It's bizarre.It searches for similar folders (without saying what makes a folder similar), it searches for other folders with the same name and copies from there. There seems to be 3 or 4 default settings that somehow inherit (like factory default, machine default, users default, and the folders default or something like that - I post every now and then what Apply Default does, and I think this structure is part of the defaults).

If you want to know how van gough felt examine how MS thinks. Better than LSD.
 
Though MSDN lacks providing certain info, its amazing. Planning to get the
msdn pack.

Thank you very much, David

--
Regards,
Ramesh
(e-mail address removed)


It's a structure in the MSDN. Once I may have spent 6 months building it,
but as MS always release the data after I spend 6 months reverse engineering
something it's hard to get motivated.

Always assume programmers are lazy, if they had to write a structure for an
API call, they'll try to reuse it as a registry storage structure. Always
search the API for things in the registry. Many reg keys are only documented
in a relevent API call and programmers reuse terms, names, and structures.

The settlement API calls that MS released will give clues to how explorer
works. But it's a bit of a clayton's reference. It's not helpful. But you
can find out how the hell windows decides what settings to apply to a folder
from folder settings if that folder doesn't have any saved settings. It's
bizarre.It searches for similar folders (without saying what makes a folder
similar), it searches for other folders with the same name and copies from
there. There seems to be 3 or 4 default settings that somehow inherit (like
factory default, machine default, users default, and the folders default or
something like that - I post every now and then what Apply Default does, and
I think this structure is part of the defaults).

If you want to know how van gough felt examine how MS thinks. Better than
LSD.
 
Back
Top