Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
31c6ac2a
Commit
31c6ac2a
authored
24 years ago
by
Francois Jacques
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implementation of Dispatch API.
parent
5d4cf067
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/oleaut32/Makefile.in
+1
-0
1 addition, 0 deletions
dlls/oleaut32/Makefile.in
dlls/oleaut32/dispatch.c
+125
-0
125 additions, 0 deletions
dlls/oleaut32/dispatch.c
dlls/oleaut32/oleaut32.spec
+3
-3
3 additions, 3 deletions
dlls/oleaut32/oleaut32.spec
with
129 additions
and
3 deletions
dlls/oleaut32/Makefile.in
+
1
−
0
View file @
31c6ac2a
...
...
@@ -11,6 +11,7 @@ SYMBOLFILE = $(MODULE).tmp.o
C_SRCS
=
\
connpt.c
\
dispatch.c
\
ole2disp.c
\
oleaut.c
\
olefont.c
\
...
...
This diff is collapsed.
Click to expand it.
dlls/oleaut32/dispatch.c
0 → 100644
+
125
−
0
View file @
31c6ac2a
/**
* Dispatch API functions
*
* Copyright 2000 Francois Jacques, Macadamian Technologies Inc.
*
* ---
*
* TODO: Type coercion is implemented in variant.c but not called yet.
*/
#include
<stdlib.h>
#include
<string.h>
#include
<stdio.h>
#include
<ctype.h>
#include
"winerror.h"
#include
"winreg.h"
/* for HKEY_LOCAL_MACHINE */
#include
"winnls.h"
/* for PRIMARYLANGID */
#include
"ole.h"
#include
"heap.h"
#include
"wine/obj_oleaut.h"
#include
"debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
ole
);
DECLARE_DEBUG_CHANNEL
(
typelib
);
/******************************************************************************
* DispInvoke (OLEAUT32.30)
*
*
* Calls method of an object through its IDispatch interface.
*
* NOTES
* - Defer method invocation to ITypeInfo::Invoke()
*
* RETURNS
*
* S_OK on success.
*/
HRESULT
WINAPI
DispInvoke
(
VOID
*
_this
,
/* object instance */
ITypeInfo
*
ptinfo
,
/* object's type info */
DISPID
dispidMember
,
/* member id */
USHORT
wFlags
,
/* kind of method call */
DISPPARAMS
*
pparams
,
/* array of arguments */
VARIANT
*
pvarResult
,
/* result of method call */
EXCEPINFO
*
pexcepinfo
,
/* information about exception */
UINT
*
puArgErr
/* index of bad argument(if any) */
)
{
HRESULT
hr
=
E_FAIL
;
/**
* TODO:
* For each param, call DispGetParam to perform type coercion
*/
FIXME
(
"Coercion of arguments not implemented
\n
"
);
hr
=
ICOM_CALL7
(
Invoke
,
ptinfo
,
_this
,
dispidMember
,
wFlags
,
pparams
,
pvarResult
,
pexcepinfo
,
puArgErr
);
return
(
hr
);
}
/******************************************************************************
* DispGetIDsOfNames (OLEAUT32.29)
*
* Convert a set of names to dispids, based on information
* contained in object's type library.
*
* NOTES
* - Defers to ITypeInfo::GetIDsOfNames()
*
* RETURNS
*
* S_OK on success.
*/
HRESULT
WINAPI
DispGetIDsOfNames
(
ITypeInfo
*
ptinfo
,
OLECHAR
**
rgszNames
,
UINT
cNames
,
DISPID
*
rgdispid
)
{
HRESULT
hr
=
E_FAIL
;
hr
=
ICOM_CALL3
(
GetIDsOfNames
,
ptinfo
,
rgszNames
,
cNames
,
rgdispid
);
return
(
hr
);
}
/******************************************************************************
* DispGetParam (OLEAUT32.30)
*
* Retrive a parameter from a DISPPARAMS structures and coerce it to
* specified variant type
*
* NOTES
* Coercion is done using system (0) locale.
*
* RETURNS
*
* S_OK on success.
*/
HRESULT
WINAPI
DispGetParam
(
DISPPARAMS
*
pdispparams
,
UINT
position
,
VARTYPE
vtTarg
)
{
HRESULT
hr
=
E_FAIL
;
/**
* TODO : Call VariantChangeTypeEx with LCID 0 (system)
*/
FIXME
(
"Coercion of arguments not implemented
\n
"
);
return
(
hr
);
}
This diff is collapsed.
Click to expand it.
dlls/oleaut32/oleaut32.spec
+
3
−
3
View file @
31c6ac2a
...
...
@@ -37,9 +37,9 @@ debug_channels (ole typelib)
25 stdcall SafeArrayGetElement(ptr ptr ptr) SafeArrayGetElement
26 stdcall SafeArrayPutElement(ptr ptr ptr) SafeArrayPutElement
27 stdcall SafeArrayCopy(ptr ptr) SafeArrayCopy
28 st
ub
DispGetParam
29 st
ub
DispGetIDsOfNames
30 st
ub
DispInvoke
28 st
dcall DispGetParam(ptr long long ptr ptr)
DispGetParam
29 st
dcall DispGetIDsOfNames(ptr ptr long ptr)
DispGetIDsOfNames
30 st
dcall DispInvoke(ptr ptr long long ptr ptr ptr ptr)
DispInvoke
31 stdcall CreateDispTypeInfo(ptr long ptr) CreateDispTypeInfo
32 stdcall CreateStdDispatch(ptr ptr ptr ptr) CreateStdDispatch
33 stdcall RegisterActiveObject(ptr ptr long ptr) RegisterActiveObject
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment