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
27627d97
Commit
27627d97
authored
Jan 11, 2003
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented CoGetTreatAsClass.
parent
d26933ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
compobj.c
dlls/ole32/compobj.c
+34
-0
ole32.spec
dlls/ole32/ole32.spec
+1
-1
No files found.
dlls/ole32/compobj.c
View file @
27627d97
...
@@ -1863,6 +1863,40 @@ done:
...
@@ -1863,6 +1863,40 @@ done:
return
res
;
return
res
;
}
}
/******************************************************************************
* CoGetTreatAsClass [OLE32.25]
*
* Reads the TreatAs value from a class.
*/
HRESULT
WINAPI
CoGetTreatAsClass
(
REFCLSID
clsidOld
,
LPCLSID
clsidNew
)
{
HKEY
hkey
=
0
;
char
buf
[
200
],
szClsidNew
[
200
];
HRESULT
res
=
S_OK
;
LONG
len
=
sizeof
(
szClsidNew
);
FIXME
(
"(%s,%p)
\n
"
,
debugstr_guid
(
clsidOld
),
clsidNew
);
sprintf
(
buf
,
"CLSID
\\
"
);
WINE_StringFromCLSID
(
clsidOld
,
&
buf
[
6
]);
memcpy
(
clsidNew
,
clsidOld
,
sizeof
(
CLSID
));
/* copy over old value */
if
(
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
buf
,
&
hkey
))
{
res
=
REGDB_E_CLASSNOTREG
;
goto
done
;
}
if
(
RegQueryValueA
(
hkey
,
"TreatAs"
,
szClsidNew
,
&
len
))
{
res
=
S_FALSE
;
goto
done
;
}
res
=
__CLSIDFromStringA
(
szClsidNew
,
clsidNew
);
if
(
FAILED
(
res
))
FIXME
(
"Failed CLSIDFromStringA(%s), hres %lx?
\n
"
,
szClsidNew
,
res
);
done:
if
(
hkey
)
RegCloseKey
(
hkey
);
return
res
;
}
/***********************************************************************
/***********************************************************************
* IsEqualGUID [OLE32.76]
* IsEqualGUID [OLE32.76]
...
...
dlls/ole32/ole32.spec
View file @
27627d97
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
22 stdcall CoGetPSClsid(ptr ptr) CoGetPSClsid
22 stdcall CoGetPSClsid(ptr ptr) CoGetPSClsid
23 stdcall CoGetStandardMarshal(ptr ptr long ptr long ptr) CoGetStandardMarshal
23 stdcall CoGetStandardMarshal(ptr ptr long ptr long ptr) CoGetStandardMarshal
24 stdcall CoGetState(ptr) CoGetState
24 stdcall CoGetState(ptr) CoGetState
25 st
ub CoGetTreatAsClass # stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
25 st
dcall CoGetTreatAsClass(ptr ptr) CoGetTreatAsClass
26 stdcall CoInitialize(ptr) CoInitialize
26 stdcall CoInitialize(ptr) CoInitialize
27 stdcall CoInitializeWOW(long long) CoInitializeWOW
27 stdcall CoInitializeWOW(long long) CoInitializeWOW
28 stub CoIsHandlerConnected # stdcall (ptr) return 0,ERR_NOTIMPLEMENTED
28 stub CoIsHandlerConnected # stdcall (ptr) return 0,ERR_NOTIMPLEMENTED
...
...
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