Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a97a6676
Commit
a97a6676
authored
Dec 11, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl100: Added AtlUpdateRegistryFromResourceD implementation (based on…
atl100: Added AtlUpdateRegistryFromResourceD implementation (based on AtlModuleUpdateRegistryFromResourceD).
parent
9b4e92a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
1 deletion
+47
-1
atl100.spec
dlls/atl100/atl100.spec
+1
-1
registrar.c
dlls/atl100/registrar.c
+45
-0
atlbase.h
include/atlbase.h
+1
-0
No files found.
dlls/atl100/atl100.spec
View file @
a97a6676
...
...
@@ -7,7 +7,7 @@
17 stub AtlComModuleRegisterClassObjects
20 stub AtlComModuleRevokeClassObjects
22 stub AtlComModuleUnregisterServer
23 st
ub AtlUpdateRegistryFromResourceD
23 st
dcall AtlUpdateRegistryFromResourceD(long wstr long ptr ptr)
24 stub AtlWaitWithMessageLoop
25 stub AtlSetErrorInfo
26 stdcall AtlCreateTargetDC(long ptr)
...
...
dlls/atl100/registrar.c
View file @
a97a6676
...
...
@@ -702,3 +702,48 @@ HRESULT WINAPI AtlCreateRegistrar(IRegistrar **ret)
*
ret
=
&
registrar
->
IRegistrar_iface
;
return
S_OK
;
}
/***********************************************************************
* AtlUpdateRegistryFromResourceD [atl100.@]
*/
HRESULT
WINAPI
AtlUpdateRegistryFromResourceD
(
HINSTANCE
inst
,
LPCOLESTR
res
,
BOOL
bRegister
,
struct
_ATL_REGMAP_ENTRY
*
pMapEntries
,
IRegistrar
*
pReg
)
{
const
struct
_ATL_REGMAP_ENTRY
*
iter
;
WCHAR
module_name
[
MAX_PATH
];
IRegistrar
*
registrar
;
HRESULT
hres
;
static
const
WCHAR
moduleW
[]
=
{
'M'
,
'O'
,
'D'
,
'U'
,
'L'
,
'E'
,
0
};
static
const
WCHAR
registryW
[]
=
{
'R'
,
'E'
,
'G'
,
'I'
,
'S'
,
'T'
,
'R'
,
'Y'
,
0
};
if
(
!
GetModuleFileNameW
(
inst
,
module_name
,
MAX_PATH
))
{
FIXME
(
"hinst %p: did not get module name
\n
"
,
inst
);
return
E_FAIL
;
}
TRACE
(
"%p (%s), %s, %d, %p, %p
\n
"
,
inst
,
debugstr_w
(
module_name
),
debugstr_w
(
res
),
bRegister
,
pMapEntries
,
pReg
);
if
(
pReg
)
{
registrar
=
pReg
;
}
else
{
hres
=
AtlCreateRegistrar
(
&
registrar
);
if
(
FAILED
(
hres
))
return
hres
;
}
IRegistrar_AddReplacement
(
registrar
,
moduleW
,
module_name
);
for
(
iter
=
pMapEntries
;
iter
&&
iter
->
szKey
;
iter
++
)
IRegistrar_AddReplacement
(
registrar
,
iter
->
szKey
,
iter
->
szData
);
if
(
bRegister
)
hres
=
IRegistrar_ResourceRegisterSz
(
registrar
,
module_name
,
res
,
registryW
);
else
hres
=
IRegistrar_ResourceUnregisterSz
(
registrar
,
module_name
,
res
,
registryW
);
if
(
registrar
!=
pReg
)
IRegistrar_Release
(
registrar
);
return
hres
;
}
include/atlbase.h
View file @
a97a6676
...
...
@@ -210,5 +210,6 @@ HRESULT WINAPI AtlModuleTerm(_ATL_MODULEW* pM);
HRESULT
WINAPI
AtlUnadvise
(
IUnknown
*
pUnkCP
,
const
IID
*
iid
,
DWORD
dw
);
HRESULT
WINAPI
AtlUnmarshalPtr
(
IStream
*
pStream
,
const
IID
*
iid
,
IUnknown
**
ppUnk
);
HRESULT
WINAPI
AtlCreateRegistrar
(
IRegistrar
**
);
HRESULT
WINAPI
AtlUpdateRegistryFromResourceD
(
HINSTANCE
,
LPCOLESTR
,
BOOL
,
struct
_ATL_REGMAP_ENTRY
*
,
IRegistrar
*
);
#endif
/* __WINE_ATLBASE_H__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment