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
84587b68
Commit
84587b68
authored
Nov 21, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl100: Moved more function implementations to atl100.
parent
fe3684ca
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
263 additions
and
256 deletions
+263
-256
Makefile.in
dlls/atl/Makefile.in
+1
-2
atl.spec
dlls/atl/atl.spec
+25
-25
atl_main.c
dlls/atl/atl_main.c
+1
-196
Makefile.in
dlls/atl100/Makefile.in
+2
-1
atl.c
dlls/atl100/atl.c
+205
-3
atl100.spec
dlls/atl100/atl100.spec
+21
-21
atl_ax.c
dlls/atl100/atl_ax.c
+8
-8
No files found.
dlls/atl/Makefile.in
View file @
84587b68
MODULE
=
atl.dll
MODULE
=
atl.dll
IMPORTLIB
=
atl
IMPORTLIB
=
atl
IMPORTS
=
uuid atl100 ole
32 oleaut32 user32 gdi
32
IMPORTS
=
uuid atl100 ole
aut32 ole32 user
32
C_SRCS
=
\
C_SRCS
=
\
atl_ax.c
\
atl_main.c
\
atl_main.c
\
registrar.c
registrar.c
...
...
dlls/atl/atl.spec
View file @
84587b68
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
2 stdcall -private DllGetClassObject(ptr ptr ptr)
2 stdcall -private DllGetClassObject(ptr ptr ptr)
3 stdcall -private DllRegisterServer()
3 stdcall -private DllRegisterServer()
4 stdcall -private DllUnregisterServer()
4 stdcall -private DllUnregisterServer()
10 stdcall AtlAdvise(ptr ptr ptr ptr)
10 stdcall AtlAdvise(ptr ptr ptr ptr)
atl100.AtlAdvise
11 stdcall AtlUnadvise(ptr ptr long)
11 stdcall AtlUnadvise(ptr ptr long)
atl100.AtlUnadvise
12 stdcall AtlFreeMarshalStream(ptr)
12 stdcall AtlFreeMarshalStream(ptr)
atl100.AtlFreeMarshalStream
13 stdcall AtlMarshalPtrInProc(ptr ptr ptr)
13 stdcall AtlMarshalPtrInProc(ptr ptr ptr)
atl100.AtlMarshalPtrInProc
14 stdcall AtlUnmarshalPtr(ptr ptr ptr)
14 stdcall AtlUnmarshalPtr(ptr ptr ptr)
atl100.AtlUnmarshalPtr
15 stdcall AtlModuleGetClassObject(ptr ptr ptr ptr)
15 stdcall AtlModuleGetClassObject(ptr ptr ptr ptr)
16 stdcall AtlModuleInit(ptr long long)
16 stdcall AtlModuleInit(ptr long long)
17 stdcall AtlModuleRegisterClassObjects(ptr long long)
17 stdcall AtlModuleRegisterClassObjects(ptr long long)
...
@@ -18,31 +18,31 @@
...
@@ -18,31 +18,31 @@
23 stdcall AtlModuleUpdateRegistryFromResourceD(ptr wstr long ptr ptr)
23 stdcall AtlModuleUpdateRegistryFromResourceD(ptr wstr long ptr ptr)
24 stub AtlWaitWithMessageLoop
24 stub AtlWaitWithMessageLoop
25 stub AtlSetErrorInfo
25 stub AtlSetErrorInfo
26 stdcall AtlCreateTargetDC(long ptr)
26 stdcall AtlCreateTargetDC(long ptr)
atl100.AtlCreateTargetDC
27 stdcall AtlHiMetricToPixel(ptr ptr)
27 stdcall AtlHiMetricToPixel(ptr ptr)
atl100.AtlHiMetricToPixel
28 stdcall AtlPixelToHiMetric(ptr ptr)
28 stdcall AtlPixelToHiMetric(ptr ptr)
atl100.AtlPixelToHiMetric
29 stub AtlDevModeW2A
29 stub AtlDevModeW2A
30 stdcall AtlComPtrAssign(ptr ptr)
30 stdcall AtlComPtrAssign(ptr ptr)
atl100.AtlComPtrAssign
31 stdcall AtlComQIPtrAssign(ptr ptr ptr)
31 stdcall AtlComQIPtrAssign(ptr ptr ptr)
atl100.AtlComQIPtrAssign
32 stdcall AtlInternalQueryInterface(ptr ptr ptr ptr)
32 stdcall AtlInternalQueryInterface(ptr ptr ptr ptr)
atl100.AtlInternalQueryInterface
34 stub AtlGetVersion
34 stub AtlGetVersion
35 stub AtlAxDialogBoxW
35 stub AtlAxDialogBoxW
36 stub AtlAxDialogBoxA
36 stub AtlAxDialogBoxA
37 stdcall AtlAxCreateDialogW(long wstr long ptr long)
37 stdcall AtlAxCreateDialogW(long wstr long ptr long)
atl100.AtlAxCreateDialogW
38 stdcall AtlAxCreateDialogA(long str long ptr long)
38 stdcall AtlAxCreateDialogA(long str long ptr long)
atl100.AtlAxCreateDialogA
39 stdcall AtlAxCreateControl(ptr ptr ptr ptr)
39 stdcall AtlAxCreateControl(ptr ptr ptr ptr)
atl100.AtlAxCreateControl
40 stdcall AtlAxCreateControlEx(ptr ptr ptr ptr ptr ptr ptr)
40 stdcall AtlAxCreateControlEx(ptr ptr ptr ptr ptr ptr ptr)
atl100.AtlAxCreateControlEx
41 stdcall AtlAxAttachControl(ptr ptr ptr)
41 stdcall AtlAxAttachControl(ptr ptr ptr)
atl100.AtlAxAttachControl
42 stdcall AtlAxWinInit()
42 stdcall AtlAxWinInit()
atl100.AtlAxWinInit
43 stdcall AtlModuleAddCreateWndData(ptr ptr ptr)
43 stdcall AtlModuleAddCreateWndData(ptr ptr ptr)
atl100.AtlModuleAddCreateWndData
44 stdcall AtlModuleExtractCreateWndData(ptr)
44 stdcall AtlModuleExtractCreateWndData(ptr)
atl100.AtlModuleExtractCreateWndData
45 stdcall AtlModuleRegisterWndClassInfoW(ptr ptr ptr)
45 stdcall AtlModuleRegisterWndClassInfoW(ptr ptr ptr)
atl100.AtlModuleRegisterWndClassInfoW
46 stdcall AtlModuleRegisterWndClassInfoA(ptr ptr ptr)
46 stdcall AtlModuleRegisterWndClassInfoA(ptr ptr ptr)
atl100.AtlModuleRegisterWndClassInfoA
47 stdcall AtlAxGetControl(long ptr)
47 stdcall AtlAxGetControl(long ptr)
atl100.AtlAxGetControl
48 stdcall AtlAxGetHost(long ptr)
48 stdcall AtlAxGetHost(long ptr)
atl100.AtlAxGetHost
49 stub AtlRegisterClassCategoriesHelper
49 stub AtlRegisterClassCategoriesHelper
50 stdcall AtlIPersistStreamInit_Load(ptr ptr ptr ptr)
50 stdcall AtlIPersistStreamInit_Load(ptr ptr ptr ptr)
atl100.AtlIPersistStreamInit_Load
51 stdcall AtlIPersistStreamInit_Save(ptr long ptr ptr ptr)
51 stdcall AtlIPersistStreamInit_Save(ptr long ptr ptr ptr)
atl100.AtlIPersistStreamInit_Save
52 stub AtlIPersistPropertyBag_Load
52 stub AtlIPersistPropertyBag_Load
53 stub AtlIPersistPropertyBag_Save
53 stub AtlIPersistPropertyBag_Save
54 stub AtlGetObjectSourceInterface
54 stub AtlGetObjectSourceInterface
...
...
dlls/atl/atl_main.c
View file @
84587b68
...
@@ -18,24 +18,15 @@
...
@@ -18,24 +18,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#define COBJMACROS
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/debug.h"
#include "objbase.h"
#include "objidl.h"
#include "objidl.h"
#include "ole2.h"
#include "atlbase.h"
#include "atlbase.h"
#include "atliface.h"
#include "atlwin.h"
#include "atlwin.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
atl
);
WINE_DEFAULT_DEBUG_CHANNEL
(
atl
);
...
@@ -219,73 +210,6 @@ HRESULT WINAPI AtlModuleUnregisterServerEx(_ATL_MODULEW* pM, BOOL bUnRegTypeLib,
...
@@ -219,73 +210,6 @@ HRESULT WINAPI AtlModuleUnregisterServerEx(_ATL_MODULEW* pM, BOOL bUnRegTypeLib,
return
S_OK
;
return
S_OK
;
}
}
IUnknown
*
WINAPI
AtlComPtrAssign
(
IUnknown
**
pp
,
IUnknown
*
p
)
{
TRACE
(
"(%p %p)
\n
"
,
pp
,
p
);
if
(
p
)
IUnknown_AddRef
(
p
);
if
(
*
pp
)
IUnknown_Release
(
*
pp
);
*
pp
=
p
;
return
p
;
}
IUnknown
*
WINAPI
AtlComQIPtrAssign
(
IUnknown
**
pp
,
IUnknown
*
p
,
REFIID
riid
)
{
IUnknown
*
new_p
=
NULL
;
TRACE
(
"(%p %p %s)
\n
"
,
pp
,
p
,
debugstr_guid
(
riid
));
if
(
p
)
IUnknown_QueryInterface
(
p
,
riid
,
(
void
**
)
&
new_p
);
if
(
*
pp
)
IUnknown_Release
(
*
pp
);
*
pp
=
new_p
;
return
new_p
;
}
HRESULT
WINAPI
AtlInternalQueryInterface
(
void
*
this
,
const
_ATL_INTMAP_ENTRY
*
pEntries
,
REFIID
iid
,
void
**
ppvObject
)
{
int
i
=
0
;
HRESULT
rc
=
E_NOINTERFACE
;
TRACE
(
"(%p, %p, %s, %p)
\n
"
,
this
,
pEntries
,
debugstr_guid
(
iid
),
ppvObject
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
))
{
TRACE
(
"Returning IUnknown
\n
"
);
*
ppvObject
=
((
LPSTR
)
this
+
pEntries
[
0
].
dw
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
return
S_OK
;
}
while
(
pEntries
[
i
].
pFunc
!=
0
)
{
TRACE
(
"Trying entry %i (%s %i %p)
\n
"
,
i
,
debugstr_guid
(
pEntries
[
i
].
piid
),
pEntries
[
i
].
dw
,
pEntries
[
i
].
pFunc
);
if
(
!
pEntries
[
i
].
piid
||
IsEqualGUID
(
iid
,
pEntries
[
i
].
piid
))
{
TRACE
(
"MATCH
\n
"
);
if
(
pEntries
[
i
].
pFunc
==
(
_ATL_CREATORARGFUNC
*
)
1
)
{
TRACE
(
"Offset
\n
"
);
*
ppvObject
=
((
LPSTR
)
this
+
pEntries
[
i
].
dw
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
return
S_OK
;
}
else
{
TRACE
(
"Function
\n
"
);
rc
=
pEntries
[
i
].
pFunc
(
this
,
iid
,
ppvObject
,
pEntries
[
i
].
dw
);
if
(
rc
==
S_OK
||
pEntries
[
i
].
piid
)
return
rc
;
}
}
i
++
;
}
TRACE
(
"Done returning (0x%x)
\n
"
,
rc
);
return
rc
;
}
/***********************************************************************
/***********************************************************************
* AtlModuleRegisterServer [ATL.@]
* AtlModuleRegisterServer [ATL.@]
*
*
...
@@ -323,51 +247,6 @@ HRESULT WINAPI AtlModuleRegisterServer(_ATL_MODULEW* pM, BOOL bRegTypeLib, const
...
@@ -323,51 +247,6 @@ HRESULT WINAPI AtlModuleRegisterServer(_ATL_MODULEW* pM, BOOL bRegTypeLib, const
}
}
/***********************************************************************
/***********************************************************************
* AtlAdvise [ATL.@]
*/
HRESULT
WINAPI
AtlAdvise
(
IUnknown
*
pUnkCP
,
IUnknown
*
pUnk
,
const
IID
*
iid
,
LPDWORD
pdw
)
{
FIXME
(
"%p %p %p %p
\n
"
,
pUnkCP
,
pUnk
,
iid
,
pdw
);
return
E_FAIL
;
}
/***********************************************************************
* AtlUnadvise [ATL.@]
*/
HRESULT
WINAPI
AtlUnadvise
(
IUnknown
*
pUnkCP
,
const
IID
*
iid
,
DWORD
dw
)
{
FIXME
(
"%p %p %d
\n
"
,
pUnkCP
,
iid
,
dw
);
return
S_OK
;
}
/***********************************************************************
* AtlFreeMarshalStream [ATL.@]
*/
HRESULT
WINAPI
AtlFreeMarshalStream
(
IStream
*
stm
)
{
FIXME
(
"%p
\n
"
,
stm
);
return
S_OK
;
}
/***********************************************************************
* AtlMarshalPtrInProc [ATL.@]
*/
HRESULT
WINAPI
AtlMarshalPtrInProc
(
IUnknown
*
pUnk
,
const
IID
*
iid
,
IStream
**
pstm
)
{
FIXME
(
"%p %p %p
\n
"
,
pUnk
,
iid
,
pstm
);
return
E_FAIL
;
}
/***********************************************************************
* AtlUnmarshalPtr [ATL.@]
*/
HRESULT
WINAPI
AtlUnmarshalPtr
(
IStream
*
stm
,
const
IID
*
iid
,
IUnknown
**
ppUnk
)
{
FIXME
(
"%p %p %p
\n
"
,
stm
,
iid
,
ppUnk
);
return
E_FAIL
;
}
/***********************************************************************
* AtlModuleGetClassObject [ATL.@]
* AtlModuleGetClassObject [ATL.@]
*/
*/
HRESULT
WINAPI
AtlModuleGetClassObject
(
_ATL_MODULEW
*
pm
,
REFCLSID
rclsid
,
HRESULT
WINAPI
AtlModuleGetClassObject
(
_ATL_MODULEW
*
pm
,
REFCLSID
rclsid
,
...
@@ -555,48 +434,6 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
...
@@ -555,48 +434,6 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
return
atom
;
return
atom
;
}
}
void
WINAPI
AtlHiMetricToPixel
(
const
SIZEL
*
lpHiMetric
,
SIZEL
*
lpPix
)
{
HDC
dc
=
GetDC
(
NULL
);
lpPix
->
cx
=
lpHiMetric
->
cx
*
GetDeviceCaps
(
dc
,
LOGPIXELSX
)
/
100
;
lpPix
->
cy
=
lpHiMetric
->
cy
*
GetDeviceCaps
(
dc
,
LOGPIXELSY
)
/
100
;
ReleaseDC
(
NULL
,
dc
);
}
void
WINAPI
AtlPixelToHiMetric
(
const
SIZEL
*
lpPix
,
SIZEL
*
lpHiMetric
)
{
HDC
dc
=
GetDC
(
NULL
);
lpHiMetric
->
cx
=
100
*
lpPix
->
cx
/
GetDeviceCaps
(
dc
,
LOGPIXELSX
);
lpHiMetric
->
cy
=
100
*
lpPix
->
cy
/
GetDeviceCaps
(
dc
,
LOGPIXELSY
);
ReleaseDC
(
NULL
,
dc
);
}
/***********************************************************************
* AtlCreateTargetDC [ATL.@]
*/
HDC
WINAPI
AtlCreateTargetDC
(
HDC
hdc
,
DVTARGETDEVICE
*
dv
)
{
static
const
WCHAR
displayW
[]
=
{
'd'
,
'i'
,
's'
,
'p'
,
'l'
,
'a'
,
'y'
,
0
};
const
WCHAR
*
driver
=
NULL
,
*
device
=
NULL
,
*
port
=
NULL
;
DEVMODEW
*
devmode
=
NULL
;
TRACE
(
"(%p, %p)
\n
"
,
hdc
,
dv
);
if
(
dv
)
{
if
(
dv
->
tdDriverNameOffset
)
driver
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdDriverNameOffset
);
if
(
dv
->
tdDeviceNameOffset
)
device
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdDeviceNameOffset
);
if
(
dv
->
tdPortNameOffset
)
port
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdPortNameOffset
);
if
(
dv
->
tdExtDevmodeOffset
)
devmode
=
(
DEVMODEW
*
)((
char
*
)
dv
+
dv
->
tdExtDevmodeOffset
);
}
else
{
if
(
hdc
)
return
hdc
;
driver
=
displayW
;
}
return
CreateDCW
(
driver
,
device
,
port
,
devmode
);
}
/***********************************************************************
/***********************************************************************
* AtlModuleAddCreateWndData [ATL.@]
* AtlModuleAddCreateWndData [ATL.@]
*/
*/
...
@@ -635,35 +472,3 @@ void* WINAPI AtlModuleExtractCreateWndData(_ATL_MODULEW *pM)
...
@@ -635,35 +472,3 @@ void* WINAPI AtlModuleExtractCreateWndData(_ATL_MODULEW *pM)
}
}
return
NULL
;
return
NULL
;
}
}
/* FIXME: should be in a header file */
typedef
struct
ATL_PROPMAP_ENTRY
{
LPCOLESTR
szDesc
;
DISPID
dispid
;
const
CLSID
*
pclsidPropPage
;
const
IID
*
piidDispatch
;
DWORD
dwOffsetData
;
DWORD
dwSizeData
;
VARTYPE
vt
;
}
ATL_PROPMAP_ENTRY
;
/***********************************************************************
* AtlIPersistStreamInit_Load [ATL.@]
*/
HRESULT
WINAPI
AtlIPersistStreamInit_Load
(
LPSTREAM
pStm
,
ATL_PROPMAP_ENTRY
*
pMap
,
void
*
pThis
,
IUnknown
*
pUnk
)
{
FIXME
(
"(%p, %p, %p, %p)
\n
"
,
pStm
,
pMap
,
pThis
,
pUnk
);
return
S_OK
;
}
HRESULT
WINAPI
AtlIPersistStreamInit_Save
(
LPSTREAM
pStm
,
BOOL
fClearDirty
,
ATL_PROPMAP_ENTRY
*
pMap
,
void
*
pThis
,
IUnknown
*
pUnk
)
{
FIXME
(
"(%p, %d, %p, %p, %p)
\n
"
,
pStm
,
fClearDirty
,
pMap
,
pThis
,
pUnk
);
return
S_OK
;
}
dlls/atl100/Makefile.in
View file @
84587b68
MODULE
=
atl100.dll
MODULE
=
atl100.dll
IMPORTLIB
=
atl100
IMPORTLIB
=
atl100
IMPORTS
=
uuid advapi32
IMPORTS
=
uuid
ole32 oleaut32 user32 gdi32
advapi32
C_SRCS
=
\
C_SRCS
=
\
atl.c
\
atl.c
\
atl_ax.c
\
registrar.c
registrar.c
@MAKE_DLL_RULES@
@MAKE_DLL_RULES@
dlls/atl100/atl.c
View file @
84587b68
...
@@ -16,15 +16,217 @@
...
@@ -16,15 +16,217 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#
include <stdarg.h>
#
define COBJMACROS
#include "windef.h"
#include "
win
base.h"
#include "
atl
base.h"
#include "wine/debug.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
atl
);
WINE_DEFAULT_DEBUG_CHANNEL
(
atl
);
/***********************************************************************
/***********************************************************************
* AtlAdvise [atl100.@]
*/
HRESULT
WINAPI
AtlAdvise
(
IUnknown
*
pUnkCP
,
IUnknown
*
pUnk
,
const
IID
*
iid
,
LPDWORD
pdw
)
{
FIXME
(
"%p %p %p %p
\n
"
,
pUnkCP
,
pUnk
,
iid
,
pdw
);
return
E_FAIL
;
}
/***********************************************************************
* AtlUnadvise [atl100.@]
*/
HRESULT
WINAPI
AtlUnadvise
(
IUnknown
*
pUnkCP
,
const
IID
*
iid
,
DWORD
dw
)
{
FIXME
(
"%p %p %d
\n
"
,
pUnkCP
,
iid
,
dw
);
return
S_OK
;
}
/***********************************************************************
* AtlFreeMarshalStream [atl100.@]
*/
HRESULT
WINAPI
AtlFreeMarshalStream
(
IStream
*
stm
)
{
FIXME
(
"%p
\n
"
,
stm
);
return
S_OK
;
}
/***********************************************************************
* AtlMarshalPtrInProc [atl100.@]
*/
HRESULT
WINAPI
AtlMarshalPtrInProc
(
IUnknown
*
pUnk
,
const
IID
*
iid
,
IStream
**
pstm
)
{
FIXME
(
"%p %p %p
\n
"
,
pUnk
,
iid
,
pstm
);
return
E_FAIL
;
}
/***********************************************************************
* AtlUnmarshalPtr [atl100.@]
*/
HRESULT
WINAPI
AtlUnmarshalPtr
(
IStream
*
stm
,
const
IID
*
iid
,
IUnknown
**
ppUnk
)
{
FIXME
(
"%p %p %p
\n
"
,
stm
,
iid
,
ppUnk
);
return
E_FAIL
;
}
/***********************************************************************
* AtlCreateTargetDC [atl100.@]
*/
HDC
WINAPI
AtlCreateTargetDC
(
HDC
hdc
,
DVTARGETDEVICE
*
dv
)
{
static
const
WCHAR
displayW
[]
=
{
'd'
,
'i'
,
's'
,
'p'
,
'l'
,
'a'
,
'y'
,
0
};
const
WCHAR
*
driver
=
NULL
,
*
device
=
NULL
,
*
port
=
NULL
;
DEVMODEW
*
devmode
=
NULL
;
TRACE
(
"(%p, %p)
\n
"
,
hdc
,
dv
);
if
(
dv
)
{
if
(
dv
->
tdDriverNameOffset
)
driver
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdDriverNameOffset
);
if
(
dv
->
tdDeviceNameOffset
)
device
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdDeviceNameOffset
);
if
(
dv
->
tdPortNameOffset
)
port
=
(
WCHAR
*
)((
char
*
)
dv
+
dv
->
tdPortNameOffset
);
if
(
dv
->
tdExtDevmodeOffset
)
devmode
=
(
DEVMODEW
*
)((
char
*
)
dv
+
dv
->
tdExtDevmodeOffset
);
}
else
{
if
(
hdc
)
return
hdc
;
driver
=
displayW
;
}
return
CreateDCW
(
driver
,
device
,
port
,
devmode
);
}
/***********************************************************************
* AtlHiMetricToPixel [atl100.@]
*/
void
WINAPI
AtlHiMetricToPixel
(
const
SIZEL
*
lpHiMetric
,
SIZEL
*
lpPix
)
{
HDC
dc
=
GetDC
(
NULL
);
lpPix
->
cx
=
lpHiMetric
->
cx
*
GetDeviceCaps
(
dc
,
LOGPIXELSX
)
/
100
;
lpPix
->
cy
=
lpHiMetric
->
cy
*
GetDeviceCaps
(
dc
,
LOGPIXELSY
)
/
100
;
ReleaseDC
(
NULL
,
dc
);
}
/***********************************************************************
* AtlPixelToHiMetric [atl100.@]
*/
void
WINAPI
AtlPixelToHiMetric
(
const
SIZEL
*
lpPix
,
SIZEL
*
lpHiMetric
)
{
HDC
dc
=
GetDC
(
NULL
);
lpHiMetric
->
cx
=
100
*
lpPix
->
cx
/
GetDeviceCaps
(
dc
,
LOGPIXELSX
);
lpHiMetric
->
cy
=
100
*
lpPix
->
cy
/
GetDeviceCaps
(
dc
,
LOGPIXELSY
);
ReleaseDC
(
NULL
,
dc
);
}
/***********************************************************************
* AtlComPtrAssign [atl100.@]
*/
IUnknown
*
WINAPI
AtlComPtrAssign
(
IUnknown
**
pp
,
IUnknown
*
p
)
{
TRACE
(
"(%p %p)
\n
"
,
pp
,
p
);
if
(
p
)
IUnknown_AddRef
(
p
);
if
(
*
pp
)
IUnknown_Release
(
*
pp
);
*
pp
=
p
;
return
p
;
}
/***********************************************************************
* AtlComQIPtrAssign [atl100.@]
*/
IUnknown
*
WINAPI
AtlComQIPtrAssign
(
IUnknown
**
pp
,
IUnknown
*
p
,
REFIID
riid
)
{
IUnknown
*
new_p
=
NULL
;
TRACE
(
"(%p %p %s)
\n
"
,
pp
,
p
,
debugstr_guid
(
riid
));
if
(
p
)
IUnknown_QueryInterface
(
p
,
riid
,
(
void
**
)
&
new_p
);
if
(
*
pp
)
IUnknown_Release
(
*
pp
);
*
pp
=
new_p
;
return
new_p
;
}
/***********************************************************************
* AtlInternalQueryInterface [atl100.@]
*/
HRESULT
WINAPI
AtlInternalQueryInterface
(
void
*
this
,
const
_ATL_INTMAP_ENTRY
*
pEntries
,
REFIID
iid
,
void
**
ppvObject
)
{
int
i
=
0
;
HRESULT
rc
=
E_NOINTERFACE
;
TRACE
(
"(%p, %p, %s, %p)
\n
"
,
this
,
pEntries
,
debugstr_guid
(
iid
),
ppvObject
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
))
{
TRACE
(
"Returning IUnknown
\n
"
);
*
ppvObject
=
((
LPSTR
)
this
+
pEntries
[
0
].
dw
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
return
S_OK
;
}
while
(
pEntries
[
i
].
pFunc
!=
0
)
{
TRACE
(
"Trying entry %i (%s %i %p)
\n
"
,
i
,
debugstr_guid
(
pEntries
[
i
].
piid
),
pEntries
[
i
].
dw
,
pEntries
[
i
].
pFunc
);
if
(
!
pEntries
[
i
].
piid
||
IsEqualGUID
(
iid
,
pEntries
[
i
].
piid
))
{
TRACE
(
"MATCH
\n
"
);
if
(
pEntries
[
i
].
pFunc
==
(
_ATL_CREATORARGFUNC
*
)
1
)
{
TRACE
(
"Offset
\n
"
);
*
ppvObject
=
((
LPSTR
)
this
+
pEntries
[
i
].
dw
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
return
S_OK
;
}
else
{
TRACE
(
"Function
\n
"
);
rc
=
pEntries
[
i
].
pFunc
(
this
,
iid
,
ppvObject
,
pEntries
[
i
].
dw
);
if
(
rc
==
S_OK
||
pEntries
[
i
].
piid
)
return
rc
;
}
}
i
++
;
}
TRACE
(
"Done returning (0x%x)
\n
"
,
rc
);
return
rc
;
}
/* FIXME: should be in a header file */
typedef
struct
ATL_PROPMAP_ENTRY
{
LPCOLESTR
szDesc
;
DISPID
dispid
;
const
CLSID
*
pclsidPropPage
;
const
IID
*
piidDispatch
;
DWORD
dwOffsetData
;
DWORD
dwSizeData
;
VARTYPE
vt
;
}
ATL_PROPMAP_ENTRY
;
/***********************************************************************
* AtlIPersistStreamInit_Load [atl100.@]
*/
HRESULT
WINAPI
AtlIPersistStreamInit_Load
(
LPSTREAM
pStm
,
ATL_PROPMAP_ENTRY
*
pMap
,
void
*
pThis
,
IUnknown
*
pUnk
)
{
FIXME
(
"(%p, %p, %p, %p)
\n
"
,
pStm
,
pMap
,
pThis
,
pUnk
);
return
S_OK
;
}
/***********************************************************************
* AtlIPersistStreamInit_Save [atl100.@]
*/
HRESULT
WINAPI
AtlIPersistStreamInit_Save
(
LPSTREAM
pStm
,
BOOL
fClearDirty
,
ATL_PROPMAP_ENTRY
*
pMap
,
void
*
pThis
,
IUnknown
*
pUnk
)
{
FIXME
(
"(%p, %d, %p, %p, %p)
\n
"
,
pStm
,
fClearDirty
,
pMap
,
pThis
,
pUnk
);
return
S_OK
;
}
/***********************************************************************
* AtlGetVersion [atl100.@]
* AtlGetVersion [atl100.@]
*/
*/
DWORD
WINAPI
AtlGetVersion
(
void
*
pReserved
)
DWORD
WINAPI
AtlGetVersion
(
void
*
pReserved
)
...
...
dlls/atl100/atl100.spec
View file @
84587b68
10 st
ub AtlAdvise
10 st
dcall AtlAdvise(ptr ptr ptr ptr)
11 st
ub AtlUnadvise
11 st
dcall AtlUnadvise(ptr ptr long)
12 st
ub AtlFreeMarshalStream
12 st
dcall AtlFreeMarshalStream(ptr)
13 st
ub AtlMarshalPtrInProc
13 st
dcall AtlMarshalPtrInProc(ptr ptr ptr)
14 st
ub AtlUnmarshalPtr
14 st
dcall AtlUnmarshalPtr(ptr ptr ptr)
15 stub AtlComModuleGetClassObject
15 stub AtlComModuleGetClassObject
17 stub AtlComModuleRegisterClassObjects
17 stub AtlComModuleRegisterClassObjects
20 stub AtlComModuleRevokeClassObjects
20 stub AtlComModuleRevokeClassObjects
...
@@ -10,31 +10,31 @@
...
@@ -10,31 +10,31 @@
23 stub AtlUpdateRegistryFromResourceD
23 stub AtlUpdateRegistryFromResourceD
24 stub AtlWaitWithMessageLoop
24 stub AtlWaitWithMessageLoop
25 stub AtlSetErrorInfo
25 stub AtlSetErrorInfo
26 st
ub AtlCreateTargetDC
26 st
dcall AtlCreateTargetDC(long ptr)
27 st
ub AtlHiMetricToPixel
27 st
dcall AtlHiMetricToPixel(ptr ptr)
28 st
ub AtlPixelToHiMetric
28 st
dcall AtlPixelToHiMetric(ptr ptr)
29 stub AtlDevModeW2A
29 stub AtlDevModeW2A
30 st
ub AtlComPtrAssign
30 st
dcall AtlComPtrAssign(ptr ptr)
31 st
ub AtlComQIPtrAssign
31 st
dcall AtlComQIPtrAssign(ptr ptr ptr)
32 st
ub AtlInternalQueryInterface
32 st
dcall AtlInternalQueryInterface(ptr ptr ptr ptr)
34 stdcall AtlGetVersion(ptr)
34 stdcall AtlGetVersion(ptr)
35 stub AtlAxDialogBoxW
35 stub AtlAxDialogBoxW
36 stub AtlAxDialogBoxA
36 stub AtlAxDialogBoxA
37 st
ub AtlAxCreateDialogW
37 st
dcall AtlAxCreateDialogW(long wstr long ptr long)
38 st
ub AtlAxCreateDialogA
38 st
dcall AtlAxCreateDialogA(long str long ptr long)
39 st
ub AtlAxCreateControl
39 st
dcall AtlAxCreateControl(ptr ptr ptr ptr)
40 st
ub AtlAxCreateControlEx
40 st
dcall AtlAxCreateControlEx(ptr ptr ptr ptr ptr ptr ptr)
41 st
ub AtlAxAttachControl
41 st
dcall AtlAxAttachControl(ptr ptr ptr)
42 st
ub AtlAxWinInit
42 st
dcall AtlAxWinInit()
43 stub AtlWinModuleAddCreateWndData
43 stub AtlWinModuleAddCreateWndData
44 stub AtlWinModuleExtractCreateWndData
44 stub AtlWinModuleExtractCreateWndData
45 stub AtlWinModuleRegisterWndClassInfoW
45 stub AtlWinModuleRegisterWndClassInfoW
46 stub AtlWinModuleRegisterWndClassInfoA
46 stub AtlWinModuleRegisterWndClassInfoA
47 st
ub AtlAxGetControl
47 st
dcall AtlAxGetControl(long ptr)
48 st
ub AtlAxGetHost
48 st
dcall AtlAxGetHost(long ptr)
49 stub AtlRegisterClassCategoriesHelper
49 stub AtlRegisterClassCategoriesHelper
50 st
ub AtlIPersistStreamInit_Load
50 st
dcall AtlIPersistStreamInit_Load(ptr ptr ptr ptr)
51 st
ub AtlIPersistStreamInit_Save
51 st
dcall AtlIPersistStreamInit_Save(ptr long ptr ptr ptr)
52 stub AtlIPersistPropertyBag_Load
52 stub AtlIPersistPropertyBag_Load
53 stub AtlIPersistPropertyBag_Save
53 stub AtlIPersistPropertyBag_Save
54 stub AtlGetObjectSourceInterface
54 stub AtlGetObjectSourceInterface
...
...
dlls/atl/atl_ax.c
→
dlls/atl
100
/atl_ax.c
View file @
84587b68
...
@@ -75,7 +75,7 @@ static LRESULT CALLBACK AtlAxWin_wndproc( HWND hWnd, UINT wMsg, WPARAM wParam, L
...
@@ -75,7 +75,7 @@ static LRESULT CALLBACK AtlAxWin_wndproc( HWND hWnd, UINT wMsg, WPARAM wParam, L
}
}
/***********************************************************************
/***********************************************************************
* AtlAxWinInit [
ATL
.@]
* AtlAxWinInit [
atl100
.@]
* Initializes the control-hosting code: registering the AtlAxWin,
* Initializes the control-hosting code: registering the AtlAxWin,
* AtlAxWin7 and AtlAxWinLic7 window classes and some messages.
* AtlAxWin7 and AtlAxWinLic7 window classes and some messages.
*
*
...
@@ -961,7 +961,7 @@ static HRESULT IOCS_Create( HWND hWnd, IUnknown *pUnkControl, IOCS **ppSite )
...
@@ -961,7 +961,7 @@ static HRESULT IOCS_Create( HWND hWnd, IUnknown *pUnkControl, IOCS **ppSite )
/***********************************************************************
/***********************************************************************
* AtlAxCreateControl [
ATL
.@]
* AtlAxCreateControl [
atl100
.@]
*/
*/
HRESULT
WINAPI
AtlAxCreateControl
(
LPCOLESTR
lpszName
,
HWND
hWnd
,
HRESULT
WINAPI
AtlAxCreateControl
(
LPCOLESTR
lpszName
,
HWND
hWnd
,
IStream
*
pStream
,
IUnknown
**
ppUnkContainer
)
IStream
*
pStream
,
IUnknown
**
ppUnkContainer
)
...
@@ -971,7 +971,7 @@ HRESULT WINAPI AtlAxCreateControl(LPCOLESTR lpszName, HWND hWnd,
...
@@ -971,7 +971,7 @@ HRESULT WINAPI AtlAxCreateControl(LPCOLESTR lpszName, HWND hWnd,
}
}
/***********************************************************************
/***********************************************************************
* AtlAxCreateControlEx [
ATL
.@]
* AtlAxCreateControlEx [
atl100
.@]
*
*
* REMARKS
* REMARKS
* See http://www.codeproject.com/com/cwebpage.asp for some background
* See http://www.codeproject.com/com/cwebpage.asp for some background
...
@@ -1077,7 +1077,7 @@ HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd,
...
@@ -1077,7 +1077,7 @@ HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd,
}
}
/***********************************************************************
/***********************************************************************
* AtlAxAttachControl [
ATL
.@]
* AtlAxAttachControl [
atl100
.@]
*/
*/
HRESULT
WINAPI
AtlAxAttachControl
(
IUnknown
*
pControl
,
HWND
hWnd
,
IUnknown
**
ppUnkContainer
)
HRESULT
WINAPI
AtlAxAttachControl
(
IUnknown
*
pControl
,
HWND
hWnd
,
IUnknown
**
ppUnkContainer
)
{
{
...
@@ -1234,7 +1234,7 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
...
@@ -1234,7 +1234,7 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
}
}
/***********************************************************************
/***********************************************************************
* AtlAxCreateDialogA [
ATL
.@]
* AtlAxCreateDialogA [
atl100
.@]
*
*
* Creates a dialog window
* Creates a dialog window
*
*
...
@@ -1269,7 +1269,7 @@ HWND WINAPI AtlAxCreateDialogA(HINSTANCE hInst, LPCSTR name, HWND owner, DLGPROC
...
@@ -1269,7 +1269,7 @@ HWND WINAPI AtlAxCreateDialogA(HINSTANCE hInst, LPCSTR name, HWND owner, DLGPROC
}
}
/***********************************************************************
/***********************************************************************
* AtlAxCreateDialogW [
ATL
.@]
* AtlAxCreateDialogW [
atl100
.@]
*
*
* See AtlAxCreateDialogA
* See AtlAxCreateDialogA
*
*
...
@@ -1308,7 +1308,7 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO
...
@@ -1308,7 +1308,7 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO
}
}
/***********************************************************************
/***********************************************************************
* AtlAxGetHost [
ATL
.@]
* AtlAxGetHost [
atl100
.@]
*
*
*/
*/
HRESULT
WINAPI
AtlAxGetHost
(
HWND
hWnd
,
IUnknown
**
pUnk
)
HRESULT
WINAPI
AtlAxGetHost
(
HWND
hWnd
,
IUnknown
**
pUnk
)
...
@@ -1330,7 +1330,7 @@ HRESULT WINAPI AtlAxGetHost(HWND hWnd, IUnknown **pUnk)
...
@@ -1330,7 +1330,7 @@ HRESULT WINAPI AtlAxGetHost(HWND hWnd, IUnknown **pUnk)
}
}
/***********************************************************************
/***********************************************************************
* AtlAxGetControl [
ATL
.@]
* AtlAxGetControl [
atl100
.@]
*
*
*/
*/
HRESULT
WINAPI
AtlAxGetControl
(
HWND
hWnd
,
IUnknown
**
pUnk
)
HRESULT
WINAPI
AtlAxGetControl
(
HWND
hWnd
,
IUnknown
**
pUnk
)
...
...
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