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
317c9d0f
Commit
317c9d0f
authored
Jan 23, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented (Register|Get|Revoke)ActiveObject from the docs.
parent
b030d20f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
7 deletions
+50
-7
oleaut.c
dlls/oleaut32/oleaut.c
+50
-7
No files found.
dlls/oleaut32/oleaut.c
View file @
317c9d0f
...
...
@@ -8,29 +8,72 @@
#include "winversion.h"
#include "oleauto.h"
#include "wine/obj_base.h"
#include "wine/obj_moniker.h"
#include "heap.h"
#include "ldt.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
ole
)
DEFAULT_DEBUG_CHANNEL
(
ole
);
static
WCHAR
_delimiter
[
2
]
=
{
'!'
,
0
};
/* default delimiter apparently */
static
WCHAR
*
pdelimiter
=
&
_delimiter
[
0
];
HRESULT
WINAPI
RegisterActiveObject
(
LPUNKNOWN
punk
,
REFCLSID
rcid
,
DWORD
dwFlags
,
LPDWORD
pdwRegister
)
{
FIXME
(
"(%p,%s,0x%08lx,%p), stub!
\n
"
,
punk
,
debugstr_guid
(
rcid
),
dwFlags
,
pdwRegister
);
return
E_FAIL
;
WCHAR
guidbuf
[
80
];
HRESULT
ret
;
LPRUNNINGOBJECTTABLE
runobtable
;
LPMONIKER
moniker
;
StringFromGUID2
(
rcid
,
guidbuf
,
39
);
ret
=
CreateItemMoniker
(
pdelimiter
,
guidbuf
,
&
moniker
);
if
(
FAILED
(
ret
))
return
ret
;
ret
=
GetRunningObjectTable
(
0
,
&
runobtable
);
if
(
FAILED
(
ret
))
{
IMoniker_Release
(
moniker
);
return
ret
;
}
ret
=
IRunningObjectTable_Register
(
runobtable
,
dwFlags
,
punk
,
moniker
,
pdwRegister
);
IRunningObjectTable_Release
(
runobtable
);
IMoniker_Release
(
moniker
);
return
ret
;
}
HRESULT
WINAPI
RevokeActiveObject
(
DWORD
xregister
,
LPVOID
reserved
)
{
FIXME
(
"(0x%08lx,%p),stub!
\n
"
,
xregister
,
reserved
);
return
E_FAIL
;
LPRUNNINGOBJECTTABLE
runobtable
;
HRESULT
ret
;
ret
=
GetRunningObjectTable
(
0
,
&
runobtable
);
if
(
FAILED
(
ret
))
return
ret
;
ret
=
IRunningObjectTable_Revoke
(
runobtable
,
xregister
);
if
(
SUCCEEDED
(
ret
))
ret
=
S_OK
;
IRunningObjectTable_Release
(
runobtable
);
return
ret
;
}
HRESULT
WINAPI
GetActiveObject
(
REFCLSID
rcid
,
LPVOID
preserved
,
LPUNKNOWN
*
ppunk
)
{
FIXME
(
"(%s,%p,%p),stub!
\n
"
,
debugstr_guid
(
rcid
),
preserved
,
ppunk
);
return
E_FAIL
;
WCHAR
guidbuf
[
80
];
HRESULT
ret
;
LPRUNNINGOBJECTTABLE
runobtable
;
LPMONIKER
moniker
;
StringFromGUID2
(
rcid
,
guidbuf
,
39
);
ret
=
CreateItemMoniker
(
pdelimiter
,
guidbuf
,
&
moniker
);
if
(
FAILED
(
ret
))
return
ret
;
ret
=
GetRunningObjectTable
(
0
,
&
runobtable
);
if
(
FAILED
(
ret
))
{
IMoniker_Release
(
moniker
);
return
ret
;
}
ret
=
IRunningObjectTable_GetObject
(
runobtable
,
moniker
,
ppunk
);
IRunningObjectTable_Release
(
runobtable
);
IMoniker_Release
(
moniker
);
return
ret
;
}
/***********************************************************************
...
...
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