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
f0b2e0d0
Commit
f0b2e0d0
authored
Nov 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use proper dllimports for propsys functions.
parent
526b3cd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
41 deletions
+58
-41
Makefile.in
dlls/propsys/Makefile.in
+1
-0
propsys.idl
include/propsys.idl
+16
-10
propvarutil.h
include/propvarutil.h
+41
-31
No files found.
dlls/propsys/Makefile.in
View file @
f0b2e0d0
EXTRADEFS
=
-D_PROPSYS_
MODULE
=
propsys.dll
IMPORTLIB
=
propsys
IMPORTS
=
ole32 oleaut32 uuid
...
...
include/propsys.idl
View file @
f0b2e0d0
...
...
@@ -27,7 +27,13 @@ import "shtypes.idl";
import
"structuredquerycondition.idl"
;
cpp_quote
(
"#ifndef PSSTDAPI"
)
cpp_quote
(
"#define PSSTDAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE"
)
cpp_quote
(
"#ifdef _PROPSYS_"
)
cpp_quote
(
"#define PSSTDAPI STDAPI"
)
cpp_quote
(
"#define PSSTDAPI_(type) STDAPI_(type)"
)
cpp_quote
(
"#else"
)
cpp_quote
(
"#define PSSTDAPI DECLSPEC_IMPORT STDAPI"
)
cpp_quote
(
"#define PSSTDAPI_(type) DECLSPEC_IMPORT STDAPI_(type)"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"#if 0"
)
...
...
@@ -799,15 +805,15 @@ cpp_quote("#define PKEY_PIDSTR_MAX 10")
cpp_quote("#define GUIDSTRING_MAX 39")
cpp_quote("#define PKEYSTR_MAX (GUIDSTRING_MAX + 1 + PKEY_PIDSTR_MAX)")
cpp_quote("
HRESULT WIN
API PSCreateMemoryPropertyStore(REFIID,void **);")
cpp_quote("
HRESULT WIN
API PSCreatePropertyStoreFromObject(IUnknown*,DWORD,REFIID,void **);")
cpp_quote("
HRESULT WIN
API PSStringFromPropertyKey(REFPROPERTYKEY,LPWSTR,UINT);")
cpp_quote("
HRESULT WIN
API PSPropertyKeyFromString(LPCWSTR,PROPERTYKEY*);")
cpp_quote("
HRESULT WIN
API PSGetPropertyDescription(REFPROPERTYKEY,REFIID,void **);")
cpp_quote("
HRESULT WIN
API PSGetPropertyDescriptionListFromString(LPCWSTR,REFIID,void **);")
cpp_quote("
HRESULT WIN
API PSRefreshPropertySchema(void);")
cpp_quote("
HRESULT WIN
API PSRegisterPropertySchema(LPCWSTR);")
cpp_quote("
HRESULT WIN
API PSUnregisterPropertySchema(LPCWSTR);")
cpp_quote("
PSSTD
API PSCreateMemoryPropertyStore(REFIID,void **);")
cpp_quote("
PSSTD
API PSCreatePropertyStoreFromObject(IUnknown*,DWORD,REFIID,void **);")
cpp_quote("
PSSTD
API PSStringFromPropertyKey(REFPROPERTYKEY,LPWSTR,UINT);")
cpp_quote("
PSSTD
API PSPropertyKeyFromString(LPCWSTR,PROPERTYKEY*);")
cpp_quote("
PSSTD
API PSGetPropertyDescription(REFPROPERTYKEY,REFIID,void **);")
cpp_quote("
PSSTD
API PSGetPropertyDescriptionListFromString(LPCWSTR,REFIID,void **);")
cpp_quote("
PSSTD
API PSRefreshPropertySchema(void);")
cpp_quote("
PSSTD
API PSRegisterPropertySchema(LPCWSTR);")
cpp_quote("
PSSTD
API PSUnregisterPropertySchema(LPCWSTR);")
/* TODO: Add remainder of the C api here */
...
...
include/propvarutil.h
View file @
f0b2e0d0
...
...
@@ -27,6 +27,16 @@
typedef
LONG
NTSTATUS
;
#endif
#ifndef PSSTDAPI
#ifdef _PROPSYS_
#define PSSTDAPI STDAPI
#define PSSTDAPI_(type) STDAPI_(type)
#else
#define PSSTDAPI DECLSPEC_IMPORT STDAPI
#define PSSTDAPI_(type) DECLSPEC_IMPORT STDAPI_(type)
#endif
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -68,37 +78,37 @@ enum tagPROPVAR_COMPARE_FLAGS
typedef
int
PROPVAR_COMPARE_FLAGS
;
HRESULT
WIN
API
PropVariantChangeType
(
PROPVARIANT
*
ppropvarDest
,
REFPROPVARIANT
propvarSrc
,
PSSTD
API
PropVariantChangeType
(
PROPVARIANT
*
ppropvarDest
,
REFPROPVARIANT
propvarSrc
,
PROPVAR_CHANGE_FLAGS
flags
,
VARTYPE
vt
);
HRESULT
WIN
API
InitPropVariantFromGUIDAsString
(
REFGUID
guid
,
PROPVARIANT
*
ppropvar
);
HRESULT
WIN
API
InitVariantFromFileTime
(
const
FILETIME
*
ft
,
VARIANT
*
var
);
HRESULT
WIN
API
InitVariantFromGUIDAsString
(
REFGUID
guid
,
VARIANT
*
pvar
);
HRESULT
WIN
API
InitPropVariantFromBuffer
(
const
VOID
*
pv
,
UINT
cb
,
PROPVARIANT
*
ppropvar
);
HRESULT
WIN
API
InitPropVariantFromCLSID
(
REFCLSID
clsid
,
PROPVARIANT
*
ppropvar
);
HRESULT
WIN
API
InitVariantFromBuffer
(
const
VOID
*
pv
,
UINT
cb
,
VARIANT
*
pvar
);
HRESULT
WIN
API
PropVariantToGUID
(
const
PROPVARIANT
*
ppropvar
,
GUID
*
guid
);
HRESULT
WIN
API
VariantToGUID
(
const
VARIANT
*
pvar
,
GUID
*
guid
);
INT
WINAPI
PropVariantCompareEx
(
REFPROPVARIANT
propvar1
,
REFPROPVARIANT
propvar2
,
PSSTD
API
InitPropVariantFromGUIDAsString
(
REFGUID
guid
,
PROPVARIANT
*
ppropvar
);
PSSTD
API
InitVariantFromFileTime
(
const
FILETIME
*
ft
,
VARIANT
*
var
);
PSSTD
API
InitVariantFromGUIDAsString
(
REFGUID
guid
,
VARIANT
*
pvar
);
PSSTD
API
InitPropVariantFromBuffer
(
const
VOID
*
pv
,
UINT
cb
,
PROPVARIANT
*
ppropvar
);
PSSTD
API
InitPropVariantFromCLSID
(
REFCLSID
clsid
,
PROPVARIANT
*
ppropvar
);
PSSTD
API
InitVariantFromBuffer
(
const
VOID
*
pv
,
UINT
cb
,
VARIANT
*
pvar
);
PSSTD
API
PropVariantToGUID
(
const
PROPVARIANT
*
ppropvar
,
GUID
*
guid
);
PSSTD
API
VariantToGUID
(
const
VARIANT
*
pvar
,
GUID
*
guid
);
PSSTDAPI_
(
INT
)
PropVariantCompareEx
(
REFPROPVARIANT
propvar1
,
REFPROPVARIANT
propvar2
,
PROPVAR_COMPARE_UNIT
uint
,
PROPVAR_COMPARE_FLAGS
flags
);
HRESULT
WIN
API
InitPropVariantFromFileTime
(
const
FILETIME
*
pftIn
,
PROPVARIANT
*
ppropvar
);
HRESULT
WIN
API
InitPropVariantFromStringVector
(
PCWSTR
*
strs
,
ULONG
count
,
PROPVARIANT
*
ppropvar
);
HRESULT
WIN
API
PropVariantToDouble
(
REFPROPVARIANT
propvarIn
,
double
*
ret
);
HRESULT
WIN
API
PropVariantToInt16
(
REFPROPVARIANT
propvarIn
,
SHORT
*
ret
);
HRESULT
WIN
API
PropVariantToInt32
(
REFPROPVARIANT
propvarIn
,
LONG
*
ret
);
HRESULT
WIN
API
PropVariantToInt64
(
REFPROPVARIANT
propvarIn
,
LONGLONG
*
ret
);
HRESULT
WIN
API
PropVariantToUInt16
(
REFPROPVARIANT
propvarIn
,
USHORT
*
ret
);
HRESULT
WIN
API
PropVariantToUInt32
(
REFPROPVARIANT
propvarIn
,
ULONG
*
ret
);
ULONG
WINAPI
PropVariantToUInt32WithDefault
(
REFPROPVARIANT
propvarIn
,
ULONG
uLDefault
);
HRESULT
WIN
API
PropVariantToUInt64
(
REFPROPVARIANT
propvarIn
,
ULONGLONG
*
ret
);
HRESULT
WIN
API
PropVariantToBoolean
(
REFPROPVARIANT
propvarIn
,
BOOL
*
ret
);
HRESULT
WIN
API
PropVariantToBuffer
(
REFPROPVARIANT
propvarIn
,
void
*
ret
,
UINT
cb
);
HRESULT
WIN
API
PropVariantToString
(
REFPROPVARIANT
propvarIn
,
PWSTR
ret
,
UINT
cch
);
P
CWSTR
WINAPI
PropVariantToStringWithDefault
(
REFPROPVARIANT
propvarIn
,
LPCWSTR
pszDefault
);
P
CWSTR
WINAPI
VariantToStringWithDefault
(
const
VARIANT
*
pvar
,
LPCWSTR
pszDefault
);
HRESULT
WIN
API
VariantToString
(
REFVARIANT
var
,
PWSTR
ret
,
UINT
cch
);
HRESULT
WIN
API
PropVariantToStringAlloc
(
REFPROPVARIANT
propvarIn
,
WCHAR
**
ret
);
PSSTD
API
InitPropVariantFromFileTime
(
const
FILETIME
*
pftIn
,
PROPVARIANT
*
ppropvar
);
PSSTD
API
InitPropVariantFromStringVector
(
PCWSTR
*
strs
,
ULONG
count
,
PROPVARIANT
*
ppropvar
);
PSSTD
API
PropVariantToDouble
(
REFPROPVARIANT
propvarIn
,
double
*
ret
);
PSSTD
API
PropVariantToInt16
(
REFPROPVARIANT
propvarIn
,
SHORT
*
ret
);
PSSTD
API
PropVariantToInt32
(
REFPROPVARIANT
propvarIn
,
LONG
*
ret
);
PSSTD
API
PropVariantToInt64
(
REFPROPVARIANT
propvarIn
,
LONGLONG
*
ret
);
PSSTD
API
PropVariantToUInt16
(
REFPROPVARIANT
propvarIn
,
USHORT
*
ret
);
PSSTD
API
PropVariantToUInt32
(
REFPROPVARIANT
propvarIn
,
ULONG
*
ret
);
PSSTDAPI_
(
ULONG
)
PropVariantToUInt32WithDefault
(
REFPROPVARIANT
propvarIn
,
ULONG
uLDefault
);
PSSTD
API
PropVariantToUInt64
(
REFPROPVARIANT
propvarIn
,
ULONGLONG
*
ret
);
PSSTD
API
PropVariantToBoolean
(
REFPROPVARIANT
propvarIn
,
BOOL
*
ret
);
PSSTD
API
PropVariantToBuffer
(
REFPROPVARIANT
propvarIn
,
void
*
ret
,
UINT
cb
);
PSSTD
API
PropVariantToString
(
REFPROPVARIANT
propvarIn
,
PWSTR
ret
,
UINT
cch
);
P
SSTDAPI_
(
PCWSTR
)
PropVariantToStringWithDefault
(
REFPROPVARIANT
propvarIn
,
LPCWSTR
pszDefault
);
P
SSTDAPI_
(
PCWSTR
)
VariantToStringWithDefault
(
const
VARIANT
*
pvar
,
LPCWSTR
pszDefault
);
PSSTD
API
VariantToString
(
REFVARIANT
var
,
PWSTR
ret
,
UINT
cch
);
PSSTD
API
PropVariantToStringAlloc
(
REFPROPVARIANT
propvarIn
,
WCHAR
**
ret
);
#ifdef __cplusplus
...
...
@@ -208,8 +218,8 @@ inline BOOL IsPropVariantString(REFPROPVARIANT propvar)
#endif
/* NO_PROPVAR_INLINES */
#endif
/* __cplusplus */
HRESULT
WIN
API
StgSerializePropVariant
(
const
PROPVARIANT
*
ppropvar
,
SERIALIZEDPROPERTYVALUE
**
ppprop
,
ULONG
*
pcb
);
HRESULT
WIN
API
StgDeserializePropVariant
(
const
SERIALIZEDPROPERTYVALUE
*
pprop
,
ULONG
cbmax
,
PROPVARIANT
*
ppropvar
);
PSSTD
API
StgSerializePropVariant
(
const
PROPVARIANT
*
ppropvar
,
SERIALIZEDPROPERTYVALUE
**
ppprop
,
ULONG
*
pcb
);
PSSTD
API
StgDeserializePropVariant
(
const
SERIALIZEDPROPERTYVALUE
*
pprop
,
ULONG
cbmax
,
PROPVARIANT
*
ppropvar
);
#ifdef __cplusplus
}
...
...
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