ReactOS 0.4.16-dev-433-g6363f78
objects.h File Reference
#include <windows.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <olectlid.h>
#include <exdispid.h>
#include "shdocvw.h"
Include dependency graph for objects.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

EXTERN_C VOID SHDOCVW_Init (HINSTANCE hInstance)
 
EXTERN_C HRESULT SHDOCVW_DllCanUnloadNow (VOID)
 
EXTERN_C HRESULT SHDOCVW_DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
EXTERN_C HRESULT SHDOCVW_DllRegisterServer (VOID)
 
EXTERN_C HRESULT SHDOCVW_DllUnregisterServer (VOID)
 

Function Documentation

◆ SHDOCVW_DllCanUnloadNow()

EXTERN_C HRESULT SHDOCVW_DllCanUnloadNow ( VOID  )

Definition at line 47 of file objects.cpp.

48{
49 return gModule.DllCanUnloadNow();
50}
static SHDOCVW_Module gModule
Definition: objects.cpp:38

Referenced by DllCanUnloadNow().

◆ SHDOCVW_DllGetClassObject()

EXTERN_C HRESULT SHDOCVW_DllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppv 
)

Definition at line 57 of file objects.cpp.

58{
59 HRESULT hr = gModule.DllGetClassObject(rclsid, riid, ppv);
60 if (SUCCEEDED(hr))
61 return hr;
62
64 {
65 if (IsEqualGUID(rclsid, CLSID_MruLongList) ||
66 IsEqualGUID(rclsid, CLSID_MruPidlList))
67 {
69 }
70 }
71 else if (IsEqualGUID(riid, IID_IMruDataList))
72 {
73 return CMruLongList_CreateInstance(0, ppv, 0);
74 }
75 else if (IsEqualGUID(riid, IID_IMruPidlList))
76 {
77 return CMruPidlList_CreateInstance(0, ppv, 0);
78 }
79
81}
const GUID IID_IUnknown
const GUID IID_IClassFactory
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define SUCCEEDED(hr)
Definition: intsafe.h:50
EXTERN_C HRESULT CMruPidlList_CreateInstance(DWORD_PTR dwUnused1, void **ppv, DWORD_PTR dwUnused3)
Definition: mrulist.cpp:1245
EXTERN_C HRESULT CMruLongList_CreateInstance(DWORD_PTR dwUnused1, void **ppv, DWORD_PTR dwUnused3)
Definition: mrulist.cpp:711
EXTERN_C HRESULT CMruClassFactory_CreateInstance(REFIID riid, void **ppv)
Definition: mrulist.cpp:1372
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
HRESULT hr
Definition: shlfolder.c:183
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663

Referenced by DllGetClassObject().

◆ SHDOCVW_DllRegisterServer()

EXTERN_C HRESULT SHDOCVW_DllRegisterServer ( VOID  )

Definition at line 84 of file objects.cpp.

85{
86 return gModule.DllRegisterServer(FALSE);
87}
#define FALSE
Definition: types.h:117

Referenced by DllRegisterServer().

◆ SHDOCVW_DllUnregisterServer()

EXTERN_C HRESULT SHDOCVW_DllUnregisterServer ( VOID  )

Definition at line 90 of file objects.cpp.

91{
92 return gModule.DllUnregisterServer(FALSE);
93}

Referenced by DllUnregisterServer().

◆ SHDOCVW_Init()

EXTERN_C VOID SHDOCVW_Init ( HINSTANCE  hInstance)

Definition at line 41 of file objects.cpp.

42{
43 gModule.Init(ObjectMap, hInstance, NULL);
44}
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112

Referenced by DllMain().