ReactOS
0.4.16-dev-963-g182f353
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
stobject.cpp
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS system libraries
3
* LICENSE: GPL - See COPYING in the top level directory
4
* FILE: dll/shellext/stobject/stobject.cpp
5
* PURPOSE: COM registration services for STobject.dll
6
* PROGRAMMERS: Robert Naumann
7
* David Quintana <gigaherz@gmail.com>
8
*/
9
10
#include "
precomp.h
"
11
12
BEGIN_OBJECT_MAP
(ObjectMap)
13
OBJECT_ENTRY
(
CLSID_SysTray
,
CSysTray
)
14
END_OBJECT_MAP
()
15
16
HINSTANCE
g_hInstance
;
17
CComModule
g_Module
;
18
19
STDAPI_
(
BOOL
)
20
DllMain
(
HINSTANCE
hinstDLL,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
21
{
22
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
23
{
24
g_hInstance
= hinstDLL;
25
DisableThreadLibraryCalls
(
g_hInstance
);
26
27
g_Module
.
Init
(ObjectMap,
g_hInstance
,
NULL
);
28
}
29
else
if
(
fdwReason
==
DLL_PROCESS_DETACH
)
30
{
31
g_hInstance
=
NULL
;
32
g_Module
.
Term
();
33
}
34
return
TRUE
;
35
}
36
37
STDAPI
38
DllRegisterServer
(
void
)
39
{
40
return
g_Module
.
DllRegisterServer
(
FALSE
);
41
}
42
43
STDAPI
44
DllUnregisterServer
(
void
)
45
{
46
return
g_Module
.
DllUnregisterServer
(
FALSE
);
47
}
48
49
STDAPI
50
DllGetClassObject
(
REFCLSID
rclsid,
REFIID
riid
,
LPVOID
*
ppv
)
51
{
52
return
g_Module
.
DllGetClassObject
(rclsid,
riid
,
ppv
);
53
}
54
55
STDAPI
56
DllCanUnloadNow
(
void
)
57
{
58
return
g_Module
.
DllCanUnloadNow
();
59
}
fdwReason
static DWORD const fdwReason
Definition:
appcrt_dllmain.cpp:57
fImpLoad
DWORD LPVOID fImpLoad
Definition:
misc.cpp:136
STDAPI_
#define STDAPI_(t)
Definition:
basetyps.h:42
STDAPI
#define STDAPI
Definition:
basetyps.h:41
ATL::CComModule
Definition:
atlbase.h:870
ATL::CComModule::Term
void Term()
Definition:
atlbase.h:916
ATL::CComModule::DllGetClassObject
HRESULT DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition:
atlbase.h:1037
ATL::CComModule::DllUnregisterServer
HRESULT DllUnregisterServer(BOOL bUnRegTypeLib=TRUE)
Definition:
atlbase.h:1047
ATL::CComModule::Init
HRESULT Init(_ATL_OBJMAP_ENTRY *p, HINSTANCE, const GUID *plibid)
Definition:
atlbase.h:886
ATL::CComModule::DllCanUnloadNow
HRESULT DllCanUnloadNow()
Definition:
atlbase.h:1030
ATL::CComModule::DllRegisterServer
HRESULT DllRegisterServer(BOOL bRegTypeLib=TRUE)
Definition:
atlbase.h:1042
CSysTray
Definition:
csystray.h:26
CLSID_SysTray
const GUID CLSID_SysTray
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
DisableThreadLibraryCalls
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition:
loader.c:85
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
riid
REFIID riid
Definition:
atlbase.h:39
ppv
REFIID LPVOID * ppv
Definition:
atlbase.h:39
void
Definition:
nsiface.idl:2307
END_OBJECT_MAP
#define END_OBJECT_MAP()
Definition:
atlcom.h:691
OBJECT_ENTRY
#define OBJECT_ENTRY(clsid, class)
Definition:
atlcom.h:693
BEGIN_OBJECT_MAP
#define BEGIN_OBJECT_MAP(x)
Definition:
atlcom.h:689
REFIID
#define REFIID
Definition:
guiddef.h:118
REFCLSID
#define REFCLSID
Definition:
guiddef.h:117
DllRegisterServer
STDAPI DllRegisterServer(void)
Definition:
stobject.cpp:38
DllMain
DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
Definition:
stobject.cpp:20
DllUnregisterServer
STDAPI DllUnregisterServer(void)
Definition:
stobject.cpp:44
DllGetClassObject
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition:
stobject.cpp:50
g_Module
CComModule g_Module
Definition:
stobject.cpp:17
g_hInstance
HINSTANCE g_hInstance
Definition:
stobject.cpp:16
DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
Definition:
stobject.cpp:56
precomp.h
dll
shellext
stobject
stobject.cpp
Generated on Mon Apr 7 2025 06:05:38 for ReactOS by
1.9.6