Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6d982b6e
Commit
6d982b6e
authored
Feb 20, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Feb 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- stub for OLE32.MkParseDisplayName
- spelling fixes
parent
1c20b39f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
17 deletions
+30
-17
moniker.c
dlls/ole32/moniker.c
+29
-16
ole32.spec
dlls/ole32/ole32.spec
+1
-1
No files found.
dlls/ole32/moniker.c
View file @
6d982b6e
...
...
@@ -25,22 +25,22 @@ typedef struct RunObject{
DWORD
regTypeObj
;
/* registration type : strong or weak */
}
RunObject
;
/* define
d
e RunningObjectTableImpl structure */
/* define
th
e RunningObjectTableImpl structure */
typedef
struct
RunningObjectTableImpl
{
ICOM_VFIELD
(
IRunningObjectTable
);
ULONG
ref
;
RunObject
*
runObjTab
;
/* pointe to the first object in the table */
RunObject
*
runObjTab
;
/* pointe
r
to the first object in the table */
DWORD
runObjTabSize
;
/* current table size */
DWORD
runObjTabLastIndx
;
/* first free index element in the table. */
DWORD
runObjTabRegister
;
/* registration key of the next registred object */
DWORD
runObjTabRegister
;
/* registration key of the next regist
e
red object */
}
RunningObjectTableImpl
;
RunningObjectTableImpl
*
runningObjectTableInstance
=
0
;
/* IRunningObjectTable protot
i
pe functions : */
/* IRunningObjectTable protot
y
pe functions : */
/* IUnknown functions*/
static
HRESULT
WINAPI
RunningObjectTableImpl_QueryInterface
(
IRunningObjectTable
*
iface
,
REFIID
riid
,
void
**
ppvObject
);
static
ULONG
WINAPI
RunningObjectTableImpl_AddRef
(
IRunningObjectTable
*
iface
);
...
...
@@ -84,7 +84,7 @@ HRESULT WINAPI RunningObjectTableImpl_QueryInterface(IRunningObjectTable* iface,
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
riid
,
ppvObject
);
/* validate arguments*/
/* validate arguments
*/
if
(
This
==
0
)
return
CO_E_NOTINITIALIZED
;
...
...
@@ -153,7 +153,7 @@ ULONG WINAPI RunningObjectTableImpl_Release(IRunningObjectTable* iface)
/* unitialize ROT structure if there's no more reference to it*/
if
(
This
->
ref
==
0
){
/* release all registred objects */
/* release all regist
e
red objects */
for
(
i
=
0
;
i
<
This
->
runObjTabLastIndx
;
i
++
)
{
if
((
This
->
runObjTab
[
i
].
regTypeObj
&
ROTFLAGS_REGISTRATIONKEEPSALIVE
)
!=
0
)
...
...
@@ -249,18 +249,18 @@ HRESULT WINAPI RunningObjectTableImpl_Register(IRunningObjectTable* iface,
if
(
punkObject
==
NULL
||
pmkObjectName
==
NULL
||
pdwRegister
==
NULL
)
return
E_INVALIDARG
;
/* verify if the object to be regist
red was registred befor
*/
/* verify if the object to be regist
ered was registered before
*/
if
(
RunningObjectTableImpl_GetObjectIndex
(
This
,
-
1
,
pmkObjectName
,
NULL
)
==
S_OK
)
res
=
MK_S_MONIKERALREADYREGISTERED
;
/* put the new registred object in the first free element in the table */
/* put the new regist
e
red object in the first free element in the table */
This
->
runObjTab
[
This
->
runObjTabLastIndx
].
pObj
=
punkObject
;
This
->
runObjTab
[
This
->
runObjTabLastIndx
].
pmkObj
=
pmkObjectName
;
This
->
runObjTab
[
This
->
runObjTabLastIndx
].
regTypeObj
=
grfFlags
;
This
->
runObjTab
[
This
->
runObjTabLastIndx
].
identRegObj
=
This
->
runObjTabRegister
;
CoFileTimeNow
(
&
(
This
->
runObjTab
[
This
->
runObjTabLastIndx
].
lastModifObj
));
/* gives a registration identifier to the registred object*/
/* gives a registration identifier to the regist
e
red object*/
(
*
pdwRegister
)
=
This
->
runObjTabRegister
;
if
(
This
->
runObjTabRegister
==
0xFFFFFFFF
){
...
...
@@ -300,12 +300,12 @@ HRESULT WINAPI RunningObjectTableImpl_Revoke( IRunningObjectTable* iface,
TRACE
(
"(%p,%ld)
\n
"
,
This
,
dwRegister
);
/* verify if the object to be revoked was regist
red befor
or not */
/* verify if the object to be revoked was regist
ered before
or not */
if
(
RunningObjectTableImpl_GetObjectIndex
(
This
,
dwRegister
,
NULL
,
&
index
)
==
S_FALSE
)
return
E_INVALIDARG
;
/* release the object if it was registred with a strong registrantion option */
/* release the object if it was regist
e
red with a strong registrantion option */
if
((
This
->
runObjTab
[
index
].
regTypeObj
&
ROTFLAGS_REGISTRATIONKEEPSALIVE
)
!=
0
)
IUnknown_Release
(
This
->
runObjTab
[
index
].
pObj
);
...
...
@@ -350,7 +350,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetObject( IRunningObjectTable* iface,
*
ppunkObject
=
0
;
/* verify if the object was regist
red befor
or not */
/* verify if the object was regist
ered before
or not */
if
(
RunningObjectTableImpl_GetObjectIndex
(
This
,
-
1
,
pmkObjectName
,
&
index
)
==
S_FALSE
)
return
MK_E_UNAVAILABLE
;
...
...
@@ -373,7 +373,7 @@ HRESULT WINAPI RunningObjectTableImpl_NoteChangeTime(IRunningObjectTable* iface,
TRACE
(
"(%p,%ld,%p)
\n
"
,
This
,
dwRegister
,
pfiletime
);
/* verify if the object to be changed was regist
red befor
or not */
/* verify if the object to be changed was regist
ered before
or not */
if
(
RunningObjectTableImpl_GetObjectIndex
(
This
,
dwRegister
,
NULL
,
&
index
)
==
S_FALSE
)
return
E_INVALIDARG
;
...
...
@@ -398,7 +398,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetTimeOfLastChange(IRunningObjectTable* i
if
(
pmkObjectName
==
NULL
||
pfiletime
==
NULL
)
return
E_INVALIDARG
;
/* verify if the object was regist
red befor
or not */
/* verify if the object was regist
ered before
or not */
if
(
RunningObjectTableImpl_GetObjectIndex
(
This
,
-
1
,
pmkObjectName
,
&
index
)
==
S_FALSE
)
return
MK_E_UNAVAILABLE
;;
...
...
@@ -431,10 +431,10 @@ HRESULT WINAPI RunningObjectTableImpl_GetObjectIndex(RunningObjectTableImpl* Thi
TRACE
(
"(%p,%ld,%p,%p)
\n
"
,
This
,
identReg
,
pmk
,
indx
);
if
(
pmk
!=
NULL
)
/* search object identified by a moniker*/
/* search object identified by a moniker
*/
for
(
i
=
0
;
(
i
<
This
->
runObjTabLastIndx
)
&&
(
!
IMoniker_IsEqual
(
This
->
runObjTab
[
i
].
pmkObj
,
pmk
)
==
S_OK
);
i
++
);
else
/* search object identified by a register identifier*/
/* search object identified by a register identifier
*/
for
(
i
=
0
;((
i
<
This
->
runObjTabLastIndx
)
&&
(
This
->
runObjTab
[
i
].
identRegObj
!=
identReg
));
i
++
);
if
(
i
==
This
->
runObjTabLastIndx
)
return
S_FALSE
;
...
...
@@ -490,3 +490,16 @@ HRESULT WINAPI OleRun(LPUNKNOWN pUnknown)
IRunnableObject_Release
(
runable
);
return
ret
;
}
/******************************************************************************
* MkParseDisplayName [OLE32.81]
*/
HRESULT
MkParseDisplayName
(
LPBC
pbc
,
LPCOLESTR
szUserName
,
LPDWORD
pchEaten
,
LPMONIKER
*
ppmk
)
{
FIXME
(
"(%p, %s, %p, %p): stub.
\n
"
,
pbc
,
debugstr_w
(
szUserName
),
pchEaten
,
*
ppmk
);
if
(
!
(
IsValidInterface
(
pbc
)))
return
E_INVALIDARG
;
return
MK_E_SYNTAX
;
}
dlls/ole32/ole32.spec
View file @
6d982b6e
...
...
@@ -81,7 +81,7 @@ type win32
78 stdcall IsValidInterface(ptr) IsValidInterface
79 stub IsValidPtrIn
80 stub IsValidPtrOut
81 st
ub
MkParseDisplayName
81 st
dcall MkParseDisplayName(ptr ptr ptr ptr)
MkParseDisplayName
82 stdcall MonikerCommonPrefixWith(ptr ptr ptr) MonikerCommonPrefixWith
83 stub MonikerRelativePathTo
84 stdcall OleBuildVersion() OleBuildVersion
...
...
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