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
Releases
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
Johnny Cai
wine
Commits
adc9b650
Commit
adc9b650
authored
21 years ago
by
Jon Griffiths
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move IQueryAssociations into shlwapi. Docs/-W/MSVC++ fixes.
parent
cf2f57f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/shell32/classes.c
+0
-148
0 additions, 148 deletions
dlls/shell32/classes.c
dlls/shlwapi/assoc.c
+337
-53
337 additions, 53 deletions
dlls/shlwapi/assoc.c
with
337 additions
and
201 deletions
dlls/shell32/classes.c
+
0
−
148
View file @
adc9b650
...
...
@@ -405,151 +405,3 @@ BOOL HCR_GetFolderAttributes (REFIID riid, LPDWORD szDest)
return
TRUE
;
}
typedef
struct
{
ICOM_VFIELD
(
IQueryAssociations
);
DWORD
ref
;
}
IQueryAssociationsImpl
;
static
struct
ICOM_VTABLE
(
IQueryAssociations
)
qavt
;
/**************************************************************************
* IQueryAssociations_Constructor
*/
IQueryAssociations
*
IQueryAssociations_Constructor
(
void
)
{
IQueryAssociationsImpl
*
ei
;
ei
=
(
IQueryAssociationsImpl
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IQueryAssociationsImpl
));
ei
->
ref
=
1
;
ei
->
lpVtbl
=
&
qavt
;
TRACE
(
"(%p)
\n
"
,
ei
);
return
(
IQueryAssociations
*
)
ei
;
}
/**************************************************************************
* IQueryAssociations_QueryInterface
*/
static
HRESULT
WINAPI
IQueryAssociations_fnQueryInterface
(
IQueryAssociations
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
ICOM_THIS
(
IQueryAssociationsImpl
,
iface
);
TRACE
(
"(%p)->(
\n\t
IID:
\t
%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObj
);
*
ppvObj
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
/*IUnknown*/
{
*
ppvObj
=
This
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IQueryAssociations
))
/*IExtractIcon*/
{
*
ppvObj
=
(
IQueryAssociations
*
)
This
;
}
if
(
*
ppvObj
)
{
IQueryAssociations_AddRef
((
IQueryAssociations
*
)
*
ppvObj
);
TRACE
(
"-- Interface: (%p)->(%p)
\n
"
,
ppvObj
,
*
ppvObj
);
return
S_OK
;
}
TRACE
(
"-- Interface: E_NOINTERFACE
\n
"
);
return
E_NOINTERFACE
;
}
/**************************************************************************
* IQueryAssociations_AddRef
*/
static
ULONG
WINAPI
IQueryAssociations_fnAddRef
(
IQueryAssociations
*
iface
)
{
ICOM_THIS
(
IQueryAssociationsImpl
,
iface
);
TRACE
(
"(%p)->(count=%lu)
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
}
/**************************************************************************
* IQueryAssociations_Release
*/
static
ULONG
WINAPI
IQueryAssociations_fnRelease
(
IQueryAssociations
*
iface
)
{
ICOM_THIS
(
IQueryAssociationsImpl
,
iface
);
TRACE
(
"(%p)->()
\n
"
,
This
);
if
(
!--
(
This
->
ref
))
{
TRACE
(
" destroying IExtractIcon(%p)
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
}
return
This
->
ref
;
}
static
HRESULT
WINAPI
IQueryAssociations_fnInit
(
IQueryAssociations
*
iface
,
ASSOCF
flags
,
LPCWSTR
pszAssoc
,
HKEY
hkProgid
,
HWND
hwnd
)
{
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IQueryAssociations_fnGetString
(
IQueryAssociations
*
iface
,
ASSOCF
flags
,
ASSOCSTR
str
,
LPCWSTR
pszExtra
,
LPWSTR
pszOut
,
DWORD
*
pcchOut
)
{
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IQueryAssociations_fnGetKey
(
IQueryAssociations
*
iface
,
ASSOCF
flags
,
ASSOCKEY
key
,
LPCWSTR
pszExtra
,
HKEY
*
phkeyOut
)
{
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IQueryAssociations_fnGetData
(
IQueryAssociations
*
iface
,
ASSOCF
flags
,
ASSOCDATA
data
,
LPCWSTR
pszExtra
,
LPVOID
pvOut
,
DWORD
*
pcbOut
)
{
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IQueryAssociations_fnGetEnum
(
IQueryAssociations
*
iface
,
ASSOCF
flags
,
ASSOCENUM
assocenum
,
LPCWSTR
pszExtra
,
REFIID
riid
,
LPVOID
*
ppvOut
)
{
return
E_NOTIMPL
;
}
static
struct
ICOM_VTABLE
(
IQueryAssociations
)
qavt
=
{
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
IQueryAssociations_fnQueryInterface
,
IQueryAssociations_fnAddRef
,
IQueryAssociations_fnRelease
,
IQueryAssociations_fnInit
,
IQueryAssociations_fnGetString
,
IQueryAssociations_fnGetKey
,
IQueryAssociations_fnGetData
,
IQueryAssociations_fnGetEnum
};
This diff is collapsed.
Click to expand it.
dlls/shlwapi/assoc.c
+
337
−
53
View file @
adc9b650
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