ReactOS  0.4.15-dev-1150-g593bcce
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  ITEM
 
class  CChangeNotifyServer
 

Macros

#define RETURN(x)
 

Typedefs

typedef CWinTraits< WS_POPUP|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, WS_EX_TOOLWINDOWCChangeNotifyServerTraits
 

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

Typedef Documentation

◆ CChangeNotifyServerTraits

Function Documentation

◆ CChangeNotifyServer_CreateInstance()

HRESULT CChangeNotifyServer_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 480 of file CChangeNotifyServer.cpp.

481 {
482  return ShellObjectCreatorInit<CChangeNotifyServer>(riid, ppv);
483 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CDesktopBrowser::OnGetChangeNotifyServer().

◆ CreateDirectoryWatcherFromRegEntry()

static CDirectoryWatcher* CreateDirectoryWatcherFromRegEntry ( LPREGENTRY  pRegEntry)
static

Definition at line 184 of file CChangeNotifyServer.cpp.

185 {
186  if (pRegEntry->ibPidl == 0)
187  return NULL;
188 
189  // get the path
191  LPITEMIDLIST pidl = (LPITEMIDLIST)((LPBYTE)pRegEntry + pRegEntry->ibPidl);
193  return NULL;
194 
195  // create a CDirectoryWatcher
196  CDirectoryWatcher *pDirectoryWatcher = CDirectoryWatcher::Create(szPath, pRegEntry->fRecursive);
197  if (pDirectoryWatcher == NULL)
198  return NULL;
199 
200  return pDirectoryWatcher;
201 }
BOOL WINAPI PathIsDirectoryW(LPCWSTR lpszPath)
Definition: path.c:1702
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Definition: pidl.c:1294
unsigned char * LPBYTE
Definition: typedefs.h:53
smooth NULL
Definition: ftsmooth.c:416
static CDirectoryWatcher * Create(LPCWSTR pszDirectoryPath, BOOL fSubTree)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:34
LPCWSTR szPath
Definition: env.c:35
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41

Referenced by CChangeNotifyServer::OnRegister().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( shcn  )