#include "utility.h"
#include "shellclasses.h"
Go to the source code of this file.
◆ dump_shell_namespace()
Definition at line 37 of file shelltests.cpp.
38{
39 ShellItemEnumerator enumerator(
folder, SHCONTF_FOLDERS|SHCONTF_NONFOLDERS|SHCONTF_INCLUDEHIDDEN|SHCONTF_SHAREABLE|SHCONTF_STORAGE);
40
43
44 do {
46
48
50 break;
51
53 break;
54
55 if (pidl) {
57
59
63
65
66 if (
attribs & (SFGAO_FOLDER|SFGAO_HASSUBFOLDER))
68 else
70
72 }
73 }
75}
basic_ostream< _CharT, _Traits > &_STLP_CALL endl(basic_ostream< _CharT, _Traits > &__os)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Referenced by main().
◆ main()
Definition at line 78 of file shelltests.cpp.
79{
80
82
83
85
86
87 try {
88
89
90
93
95 cout <<
"autostart folder path = " << (
LPCTSTR)autostart << endl;
96
98
99
100
101
102 cout <<
"Desktop:\n";
105
109
110
111
112
115 TEXT(
"Please select the path:"));
116
117 if (desktop_browser.IsOK())
119
120
121
122
126 TEXT(
"Please select the path:"),
127 browseRoot);
128
129 if (rooted_browser.IsOK())
131
133
134
136
137 }
138
139 return 0;
140}
ShellFolder & GetDesktopFolder()
static void dump_shell_namespace(ShellFolder &folder)
#define CSIDL_PROGRAM_FILES
#define BIF_RETURNONLYFSDIRS
#define BIF_NEWDIALOGSTYLE
Exception with context information.
Browse dialog operating on shell namespace.
wrapper class for item ID lists
file system path of special folder