ReactOS 0.4.16-dev-91-g764881a
CDirectoryWatcher.h
Go to the documentation of this file.
1/*
2 * PROJECT: shell32
3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4 * PURPOSE: Shell change notification
5 * COPYRIGHT: Copyright 2020 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
6 */
7#pragma once
8
9#include "CDirectoryList.h"
10
11// NOTE: Regard to asynchronous procedure call (APC), please see:
12// https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-sleepex
13
15{
16public:
19
20 static CDirectoryWatcher *Create(HWND hNotifyWnd, LPCWSTR pszDirectoryPath, BOOL fSubTree);
23
24 BOOL IsDead();
26 void QuitWatching();
29 void ReadCompletion(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered);
30
31protected:
37
40 CDirectoryWatcher(HWND hNotifyWnd, LPCWSTR pszDirectoryPath, BOOL fSubTree);
41};
@ Create
Definition: registry.c:563
void ReadCompletion(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered)
static void RequestAllWatchersTermination()
WCHAR m_szDirectoryPath[MAX_PATH]
CDirectoryList m_dir_list
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185