ReactOS  0.4.15-dev-1206-g731eddf
SHChangeNotify.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define TEMP_FILE "shell-notify-temporary.txt"
4 
5 typedef enum TYPE
6 {
15 } TYPE;
16 
17 #define WM_SHELL_NOTIFY (WM_USER + 100)
18 #define WM_GET_NOTIFY_FLAGS (WM_USER + 101)
19 #define WM_CLEAR_FLAGS (WM_USER + 102)
20 #define WM_SET_PATHS (WM_USER + 103)
21 
22 static WCHAR s_dir1[MAX_PATH]; // "%TEMP%\\WatchDir1"
23 static WCHAR s_dir2[MAX_PATH]; // "%TEMP%\\WatchDir1\\Dir2"
24 static WCHAR s_dir3[MAX_PATH]; // "%TEMP%\\WatchDir1\\Dir3"
25 static WCHAR s_file1[MAX_PATH]; // "%TEMP%\\WatchDir1\\File1.txt"
26 static WCHAR s_file2[MAX_PATH]; // "%TEMP%\\WatchDir1\\File2.txt"
27 
28 inline void DoInitPaths(void)
29 {
30  WCHAR szTemp[MAX_PATH], szPath[MAX_PATH];
31  GetTempPathW(_countof(szTemp), szTemp);
33 
35  PathAppendW(s_dir1, L"WatchDir1");
36 
38  PathAppendW(s_dir2, L"Dir2");
39 
41  PathAppendW(s_dir3, L"Dir3");
42 
44  PathAppendW(s_file1, L"File1.txt");
45 
47  PathAppendW(s_file2, L"File2.txt");
48 }
static WCHAR s_file1[MAX_PATH]
static WCHAR s_dir3[MAX_PATH]
void DoInitPaths(void)
static WCHAR s_dir2[MAX_PATH]
static WCHAR s_dir1[MAX_PATH]
BOOL WINAPI PathAppendW(LPWSTR lpszPath, LPCWSTR lpszAppend)
Definition: path.c:121
DWORD WINAPI GetTempPathW(IN DWORD count, OUT LPWSTR path)
Definition: path.c:2079
DWORD WINAPI GetLongPathNameW(IN LPCWSTR lpszShortPath, OUT LPWSTR lpszLongPath, IN DWORD cchBuffer)
Definition: path.c:1455
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define _countof(array)
Definition: sndvol32.h:68
#define MAX_PATH
Definition: compat.h:34
TYPE
Definition: SHChangeNotify.h:5
static const WCHAR L[]
Definition: oid.c:1250
static WCHAR s_file2[MAX_PATH]
#define lstrcpyW
Definition: compat.h:608
TYPE
Definition: eventcreate.c:651
LPCWSTR szPath
Definition: env.c:35