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
c3e5807b
Commit
c3e5807b
authored
Jun 24, 2006
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Added propper ClassName displaying to interface viewer.
parent
72d454ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
interface.c
programs/oleview/interface.c
+19
-6
No files found.
programs/oleview/interface.c
View file @
c3e5807b
...
...
@@ -110,24 +110,28 @@ INT_PTR CALLBACK InterfaceViewerProc(HWND hDlgWnd, UINT uMsg,
return
FALSE
;
}
void
IPersistStreamInterfaceViewer
(
WCHAR
*
clsid
)
void
IPersistStreamInterfaceViewer
(
WCHAR
*
clsid
,
WCHAR
*
wszName
)
{
DIALOG_INFO
di
;
WCHAR
wszClassMoniker
[]
=
{
'C'
,
'l'
,
'a'
,
's'
,
's'
,
'M'
,
'o'
,
'n'
,
'i'
,
'k'
,
'e'
,
'r'
,
'\0'
};
di
.
wszLabel
=
wszClassMoniker
;
if
(
wszName
[
0
]
==
'{'
)
di
.
wszLabel
=
wszClassMoniker
;
else
di
.
wszLabel
=
wszName
;
di
.
wszIdentifier
=
clsid
;
DialogBoxParam
(
0
,
MAKEINTRESOURCE
(
DLG_IPERSISTSTREAM_IV
),
globals
.
hMainWnd
,
InterfaceViewerProc
,
(
LPARAM
)
&
di
);
}
void
IPersistInterfaceViewer
(
WCHAR
*
clsid
)
void
IPersistInterfaceViewer
(
WCHAR
*
clsid
,
WCHAR
*
wszName
)
{
DIALOG_INFO
di
;
WCHAR
wszClassMoniker
[]
=
{
'C'
,
'l'
,
'a'
,
's'
,
's'
,
'M'
,
'o'
,
'n'
,
'i'
,
'k'
,
'e'
,
'r'
,
'\0'
};
di
.
wszLabel
=
wszClassMoniker
;
if
(
wszName
[
0
]
==
'{'
)
di
.
wszLabel
=
wszClassMoniker
;
else
di
.
wszLabel
=
wszName
;
di
.
wszIdentifier
=
clsid
;
DialogBoxParam
(
0
,
MAKEINTRESOURCE
(
DLG_IPERSIST_IV
),
...
...
@@ -150,6 +154,7 @@ void InterfaceViewer(HTREEITEM item)
TVITEM
tvi
;
WCHAR
*
clsid
;
WCHAR
wszName
[
MAX_LOAD_STRING
];
WCHAR
wszParent
[
MAX_LOAD_STRING
];
WCHAR
wszIPersistStream
[]
=
{
'{'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'1'
,
'0'
,
'9'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'C'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'4'
,
'6'
,
'}'
,
'\0'
};
...
...
@@ -166,11 +171,19 @@ void InterfaceViewer(HTREEITEM item)
SendMessage
(
globals
.
hTree
,
TVM_GETITEM
,
0
,
(
LPARAM
)
&
tvi
);
clsid
=
((
ITEM_INFO
*
)
tvi
.
lParam
)
->
clsid
;
memset
(
&
tvi
,
0
,
sizeof
(
TVITEM
));
tvi
.
mask
=
TVIF_TEXT
;
tvi
.
hItem
=
TreeView_GetParent
(
globals
.
hTree
,
item
);
tvi
.
cchTextMax
=
MAX_LOAD_STRING
;
tvi
.
pszText
=
wszParent
;
SendMessage
(
globals
.
hTree
,
TVM_GETITEM
,
0
,
(
LPARAM
)
&
tvi
);
if
(
!
memcmp
(
clsid
,
wszIPersistStream
,
sizeof
(
wszIPersistStream
)))
IPersistStreamInterfaceViewer
(
clsid
);
IPersistStreamInterfaceViewer
(
clsid
,
wszParent
);
else
if
(
!
memcmp
(
clsid
,
wszIPersist
,
sizeof
(
wszIPersist
)))
IPersistInterfaceViewer
(
clsid
);
IPersistInterfaceViewer
(
clsid
,
wszParent
);
else
DefaultInterfaceViewer
(
clsid
,
wszName
);
}
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