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
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
Zsolt Vadász
wine
Commits
21e5c4c4
Commit
21e5c4c4
authored
13 years ago
by
Hans Leidekker
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
sxs: Add a stub implementation of IAssemblyName.
parent
cc3d2101
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dlls/sxs/Makefile.in
+1
-0
1 addition, 0 deletions
dlls/sxs/Makefile.in
dlls/sxs/name.c
+220
-0
220 additions, 0 deletions
dlls/sxs/name.c
dlls/sxs/sxs.spec
+1
-1
1 addition, 1 deletion
dlls/sxs/sxs.spec
include/winsxs.idl
+1
-0
1 addition, 0 deletions
include/winsxs.idl
with
223 additions
and
1 deletion
dlls/sxs/Makefile.in
+
1
−
0
View file @
21e5c4c4
...
...
@@ -3,6 +3,7 @@ IMPORTS = oleaut32 ole32
C_SRCS
=
\
cache.c
\
name.c
\
sxs.c
@MAKE_DLL_RULES@
This diff is collapsed.
Click to expand it.
dlls/sxs/name.c
0 → 100644
+
220
−
0
View file @
21e5c4c4
/*
* IAssemblyName implementation
*
* Copyright 2012 Hans Leidekker for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include
<stdarg.h>
#define COBJMACROS
#include
"windef.h"
#include
"winbase.h"
#include
"ole2.h"
#include
"winsxs.h"
#include
"wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
sxs
);
struct
name
{
IAssemblyName
IAssemblyName_iface
;
LONG
refs
;
};
static
inline
struct
name
*
impl_from_IAssemblyName
(
IAssemblyName
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
name
,
IAssemblyName_iface
);
}
static
HRESULT
WINAPI
name_QueryInterface
(
IAssemblyName
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
name
*
name
=
impl_from_IAssemblyName
(
iface
);
TRACE
(
"%p, %s, %p
\n
"
,
name
,
debugstr_guid
(
riid
),
obj
);
*
obj
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IAssemblyName
))
{
IUnknown_AddRef
(
iface
);
*
obj
=
name
;
return
S_OK
;
}
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
name_AddRef
(
IAssemblyName
*
iface
)
{
struct
name
*
name
=
impl_from_IAssemblyName
(
iface
);
return
InterlockedIncrement
(
&
name
->
refs
);
}
static
ULONG
WINAPI
name_Release
(
IAssemblyName
*
iface
)
{
struct
name
*
name
=
impl_from_IAssemblyName
(
iface
);
ULONG
refs
=
InterlockedDecrement
(
&
name
->
refs
);
if
(
!
refs
)
{
TRACE
(
"destroying %p
\n
"
,
name
);
HeapFree
(
GetProcessHeap
(),
0
,
name
);
}
return
refs
;
}
static
HRESULT
WINAPI
name_SetProperty
(
IAssemblyName
*
iface
,
DWORD
id
,
LPVOID
property
,
DWORD
size
)
{
FIXME
(
"%p, %d, %p, %d
\n
"
,
iface
,
id
,
property
,
size
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_GetProperty
(
IAssemblyName
*
iface
,
DWORD
id
,
LPVOID
buffer
,
LPDWORD
buflen
)
{
FIXME
(
"%p, %d, %p, %p
\n
"
,
iface
,
id
,
buffer
,
buflen
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_Finalize
(
IAssemblyName
*
iface
)
{
FIXME
(
"%p
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_GetDisplayName
(
IAssemblyName
*
iface
,
LPOLESTR
buffer
,
LPDWORD
buflen
,
DWORD
flags
)
{
FIXME
(
"%p, %p, %p, 0x%08x
\n
"
,
iface
,
buffer
,
buflen
,
flags
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_Reserved
(
IAssemblyName
*
iface
,
REFIID
riid
,
IUnknown
*
pUnkReserved1
,
IUnknown
*
pUnkReserved2
,
LPCOLESTR
szReserved
,
LONGLONG
llReserved
,
LPVOID
pvReserved
,
DWORD
cbReserved
,
LPVOID
*
ppReserved
)
{
FIXME
(
"%p, %s, %p, %p, %s, %x%08x, %p, %d, %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
pUnkReserved1
,
pUnkReserved2
,
debugstr_w
(
szReserved
),
(
DWORD
)(
llReserved
>>
32
),
(
DWORD
)
llReserved
,
pvReserved
,
cbReserved
,
ppReserved
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_GetName
(
IAssemblyName
*
iface
,
LPDWORD
buflen
,
WCHAR
*
buffer
)
{
FIXME
(
"%p, %p, %p
\n
"
,
iface
,
buflen
,
buffer
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_GetVersion
(
IAssemblyName
*
iface
,
LPDWORD
hi
,
LPDWORD
low
)
{
FIXME
(
"%p, %p, %p
\n
"
,
iface
,
hi
,
low
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_IsEqual
(
IAssemblyName
*
name1
,
IAssemblyName
*
name2
,
DWORD
flags
)
{
FIXME
(
"%p, %p, 0x%08x
\n
"
,
name1
,
name2
,
flags
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
name_Clone
(
IAssemblyName
*
iface
,
IAssemblyName
**
name
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
name
);
return
E_NOTIMPL
;
}
static
const
IAssemblyNameVtbl
name_vtbl
=
{
name_QueryInterface
,
name_AddRef
,
name_Release
,
name_SetProperty
,
name_GetProperty
,
name_Finalize
,
name_GetDisplayName
,
name_Reserved
,
name_GetName
,
name_GetVersion
,
name_IsEqual
,
name_Clone
};
/******************************************************************
* CreateAssemblyNameObject (SXS.@)
*/
HRESULT
WINAPI
CreateAssemblyNameObject
(
LPASSEMBLYNAME
*
obj
,
LPCWSTR
assembly
,
DWORD
flags
,
LPVOID
reserved
)
{
struct
name
*
name
;
TRACE
(
"%p, %s, 0x%08x, %p
\n
"
,
obj
,
debugstr_w
(
assembly
),
flags
,
reserved
);
if
(
!
obj
)
return
E_INVALIDARG
;
*
obj
=
NULL
;
if
(
!
assembly
||
!
assembly
[
0
]
||
flags
!=
CANOF_PARSE_DISPLAY_NAME
)
return
E_INVALIDARG
;
if
(
!
(
name
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
name
)
)))
return
E_OUTOFMEMORY
;
name
->
IAssemblyName_iface
.
lpVtbl
=
&
name_vtbl
;
name
->
refs
=
1
;
*
obj
=
&
name
->
IAssemblyName_iface
;
return
S_OK
;
}
This diff is collapsed.
Click to expand it.
dlls/sxs/sxs.spec
+
1
−
1
View file @
21e5c4c4
@ stdcall CreateAssemblyCache(ptr long)
@ st
ub
CreateAssemblyNameObject
@ st
dcall
CreateAssemblyNameObject
(ptr wstr long ptr)
This diff is collapsed.
Click to expand it.
include/winsxs.idl
+
1
−
0
View file @
21e5c4c4
...
...
@@ -195,3 +195,4 @@ typedef [public] enum
}
CREATE_ASM_NAME_OBJ_FLAGS
;
cpp_quote
(
"HRESULT WINAPI CreateAssemblyCache(IAssemblyCache**,DWORD);"
)
cpp_quote
(
"HRESULT WINAPI CreateAssemblyNameObject(LPASSEMBLYNAME *,LPCWSTR,DWORD,LPVOID);"
)
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