Go to the source code of this file.
|
static BOOL | OnCreate (HWND hwnd) |
|
static void | OnCommand (HWND hwnd, UINT id) |
|
static void | OnDestroy (HWND hwnd) |
|
static BOOL | DoPathes (PIDLIST_ABSOLUTE pidl1, PIDLIST_ABSOLUTE pidl2) |
|
static VOID | DoPathesAndFlags (UINT type, PIDLIST_ABSOLUTE pidl1, PIDLIST_ABSOLUTE pidl2) |
|
static void | DoShellNotify (HWND hwnd, PIDLIST_ABSOLUTE pidl1, PIDLIST_ABSOLUTE pidl2, LONG lEvent) |
|
static INT_PTR | OnShellNotify (HWND hwnd, WPARAM wParam, LPARAM lParam) |
|
static LRESULT | OnGetNotifyFlags (HWND hwnd) |
|
static void | DoSetPaths (HWND hwnd) |
|
static LRESULT CALLBACK | WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
static BOOL | ParseCommandLine (LPWSTR lpCmdLine) |
|
INT APIENTRY | wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, INT nCmdShow) |
|
◆ DoPathes()
Definition at line 59 of file shell32_apitest_sub.cpp.
60{
63 {
66 }
67
70
72
75
77}
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
static WCHAR s_path1[MAX_PATH]
static WCHAR s_path2[MAX_PATH]
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Referenced by DoPathesAndFlags().
◆ DoPathesAndFlags()
Definition at line 79 of file shell32_apitest_sub.cpp.
80{
82 {
85 }
86}
GLuint GLuint GLsizei GLenum type
static BOOL DoPathes(PIDLIST_ABSOLUTE pidl1, PIDLIST_ABSOLUTE pidl2)
static BYTE s_counters[TYPE_MAX+1]
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
Referenced by DoShellNotify().
◆ DoSetPaths()
Definition at line 182 of file shell32_apitest_sub.cpp.
183{
188
190 if (fp)
191 {
195 }
196}
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
STRSAFEAPI StringCchCatW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Referenced by WindowProc().
◆ DoShellNotify()
Definition at line 89 of file shell32_apitest_sub.cpp.
90{
92 {
95 break;
98 break;
101 break;
104 break;
107 break;
109 break;
111 break;
113 break;
115 break;
117 break;
119 break;
121 break;
124 break;
126 break;
128 break;
130 break;
132 break;
135 break;
137 break;
139 break;
141 break;
142 default:
143 break;
144 }
145}
static VOID DoPathesAndFlags(UINT type, PIDLIST_ABSOLUTE pidl1, PIDLIST_ABSOLUTE pidl2)
#define SHCNE_DRIVEREMOVED
#define SHCNE_DRIVEADDGUI
#define SHCNE_MEDIAINSERTED
#define SHCNE_UPDATEIMAGE
#define SHCNE_RENAMEFOLDER
#define SHCNE_SERVERDISCONNECT
#define SHCNE_MEDIAREMOVED
#define SHCNE_EXTENDED_EVENT
#define SHCNE_ASSOCCHANGED
Referenced by OnShellNotify().
◆ OnCommand()
◆ OnCreate()
Definition at line 22 of file shell32_apitest_sub.cpp.
23{
26
32}
EXTERN_C ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, INT fSources, LONG wEventMask, UINT uMsg, INT cItems, SHChangeNotifyEntry *lpItems)
static LPITEMIDLIST s_pidl
static DIRTYPE s_iWatchDir
LPITEMIDLIST DoGetPidl(DIRTYPE iDir)
Referenced by WindowProc().
◆ OnDestroy()
Definition at line 47 of file shell32_apitest_sub.cpp.
48{
51
54
57}
EXTERN_C BOOL WINAPI SHChangeNotifyDeregister(ULONG hNotify)
VOID WINAPI CoTaskMemFree(LPVOID ptr)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
Referenced by WindowProc().
◆ OnGetNotifyFlags()
Definition at line 167 of file shell32_apitest_sub.cpp.
168{
170 return 0xFFFFFFFF;
171
174 {
177 }
179}
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
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Referenced by WindowProc().
◆ OnShellNotify()
Definition at line 148 of file shell32_apitest_sub.cpp.
149{
153 if (hLock)
154 {
157 }
158 else
159 {
162 }
164}
EXTERN_C HANDLE WINAPI SHChangeNotification_Lock(HANDLE hTicket, DWORD dwOwnerPID, LPITEMIDLIST **lppidls, LPLONG lpwEventId)
EXTERN_C BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock)
static void DoShellNotify(HWND hwnd, PIDLIST_ABSOLUTE pidl1, PIDLIST_ABSOLUTE pidl2, LONG lEvent)
Referenced by WindowProc().
◆ ParseCommandLine()
Definition at line 235 of file shell32_apitest_sub.cpp.
236{
243
249
252}
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
Referenced by wWinMain().
◆ WindowProc()
Definition at line 199 of file shell32_apitest_sub.cpp.
200{
201 switch (uMsg)
202 {
205
208 break;
209
212
215 break;
216
219
223 break;
224
227 break;
228
229 default:
231 }
232 return 0;
233}
static void DoSetPaths(HWND hwnd)
static BOOL OnCreate(HWND hwnd)
static LRESULT OnGetNotifyFlags(HWND hwnd)
static void OnCommand(HWND hwnd, UINT id)
static void OnDestroy(HWND hwnd)
static INT_PTR OnShellNotify(HWND hwnd, WPARAM wParam, LPARAM lParam)
#define WM_GET_NOTIFY_FLAGS
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by wWinMain().
◆ wWinMain()
Definition at line 255 of file shell32_apitest_sub.cpp.
259{
261 return 0;
262
264 return -1;
265
267
277 return -1;
278
283 return -1;
284
287
290 {
293 }
294
296
297 return 0;
298}
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
int WINAPI lstrcmpiW(LPCWSTR lpString1, LPCWSTR lpString2)
#define WS_OVERLAPPEDWINDOW
static LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL ParseCommandLine(LPWSTR lpCmdLine)
HANDLE WINAPI DECLSPEC_HOTPATCH OpenEventW(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN LPCWSTR lpName)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
BOOL WINAPI UpdateWindow(_In_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
◆ s_counters
◆ s_fRecursive
◆ s_hEvent
◆ s_hwnd
◆ s_iWatchDir
◆ s_nSources
◆ s_path1
◆ s_path2
◆ s_pidl
◆ s_uRegID