ReactOS 0.4.15-dev-7842-g558ab78
CChangeNotifyServer.cpp File Reference
#include "shelldesktop.h"
#include "shlwapi_undoc.h"
#include "CDirectoryWatcher.h"
#include <assert.h>
Include dependency graph for CChangeNotifyServer.cpp:

Go to the source code of this file.

Classes

struct  CWatchItem
 
class  CChangeNotifyServer
 

Macros

#define RETURN(x)
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (shcn)
 
static CDirectoryWatcherCreateDirectoryWatcherFromRegEntry (LPREGENTRY pRegEntry)
 
HRESULT CChangeNotifyServer_CreateInstance (REFIID riid, void **ppv)
 

Macro Definition Documentation

◆ RETURN

#define RETURN (   x)
Value:
do { \
TRACE("ShouldNotify return %d\n", (x)); \
return (x); \
} while (0)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

Function Documentation

◆ CChangeNotifyServer_CreateInstance()

HRESULT CChangeNotifyServer_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 476 of file CChangeNotifyServer.cpp.

477{
478 return ShellObjectCreatorInit<CChangeNotifyServer>(riid, ppv);
479}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CDesktopBrowser::OnGetChangeNotifyServer().

◆ CreateDirectoryWatcherFromRegEntry()

static CDirectoryWatcher * CreateDirectoryWatcherFromRegEntry ( LPREGENTRY  pRegEntry)
static

Definition at line 190 of file CChangeNotifyServer.cpp.

191{
192 if (pRegEntry->ibPidl == 0)
193 return NULL;
194
195 // get the path
197 LPITEMIDLIST pidl = (LPITEMIDLIST)((LPBYTE)pRegEntry + pRegEntry->ibPidl);
199 return NULL;
200
201 // create a CDirectoryWatcher
202 CDirectoryWatcher *pDirectoryWatcher = CDirectoryWatcher::Create(szPath, pRegEntry->fRecursive);
203 if (pDirectoryWatcher == NULL)
204 return NULL;
205
206 return pDirectoryWatcher;
207}
static CDirectoryWatcher * Create(LPCWSTR pszDirectoryPath, BOOL fSubTree)
#define NULL
Definition: types.h:112
#define MAX_PATH
Definition: compat.h:34
BOOL WINAPI PathIsDirectoryW(LPCWSTR lpszPath)
Definition: path.c:1723
LPCWSTR szPath
Definition: env.c:37
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Definition: pidl.c:1344
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
unsigned char * LPBYTE
Definition: typedefs.h:53
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CChangeNotifyServer::OnRegister().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( shcn  )