ReactOS  0.4.15-dev-2947-g59e1b78
itsstor.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HRESULT ITSS_StgOpenStorage (const WCHAR *pwcsName, IStorage *pstgPriority, DWORD grfMode, SNB snbExclude, DWORD reserved, IStorage **ppstgOpen) DECLSPEC_HIDDEN
 
HRESULT ITS_IParseDisplayName_create (IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN
 
HRESULT ITSProtocol_create (IUnknown *pUnkOuter, LPVOID *ppobj) DECLSPEC_HIDDEN
 
static void ITSS_LockModule (void)
 
static void ITSS_UnlockModule (void)
 

Variables

LONG dll_count DECLSPEC_HIDDEN
 

Function Documentation

◆ ITS_IParseDisplayName_create()

HRESULT ITS_IParseDisplayName_create ( IUnknown pUnkOuter,
LPVOID ppObj 
)

Definition at line 472 of file moniker.c.

473 {
475 
476  if( pUnkOuter )
477  return CLASS_E_NOAGGREGATION;
478 
479  its = HeapAlloc( GetProcessHeap(), 0, sizeof(ITS_IParseDisplayNameImpl) );
481  its->ref = 1;
482 
483  TRACE("-> %p\n", its);
484  *ppObj = its;
485 
486  ITSS_LockModule();
487  return S_OK;
488 }
IParseDisplayName IParseDisplayName_iface
Definition: moniker.c:377
static void ITSS_LockModule(void)
Definition: itsstor.h:41
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662
static const IParseDisplayNameVtbl ITS_IParseDisplayNameImpl_Vtbl
Definition: moniker.c:464
#define S_OK
Definition: intsafe.h:51

◆ ITSProtocol_create()

HRESULT ITSProtocol_create ( IUnknown pUnkOuter,
LPVOID ppobj 
)

◆ ITSS_LockModule()

static void ITSS_LockModule ( void  )
inlinestatic

◆ ITSS_StgOpenStorage()

HRESULT ITSS_StgOpenStorage ( const WCHAR pwcsName,
IStorage pstgPriority,
DWORD  grfMode,
SNB  snbExclude,
DWORD  reserved,
IStorage **  ppstgOpen 
)

Definition at line 633 of file storage.c.

640 {
641  struct chmFile *chmfile;
642  static const WCHAR szRoot[] = { '/', 0 };
643 
644  TRACE("%s\n", debugstr_w(pwcsName) );
645 
646  chmfile = chm_openW( pwcsName );
647  if( !chmfile )
648  return E_FAIL;
649 
650  return ITSS_create_chm_storage( chmfile, szRoot, ppstgOpen );
651 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
struct chmFile * chm_openW(const WCHAR *filename)
Definition: chm_lib.c:678
static HRESULT ITSS_create_chm_storage(struct chmFile *chmfile, const WCHAR *dir, IStorage **ppstgOpen)
Definition: storage.c:613

Referenced by ITS_IMonikerImpl_BindToStorage(), ITStorageImpl_StgCreateDocfile(), and ITStorageImpl_StgOpenStorage().

◆ ITSS_UnlockModule()

Variable Documentation

◆ DECLSPEC_HIDDEN

LONG dll_count DECLSPEC_HIDDEN

Definition at line 155 of file crypt32_private.h.