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
47120f50
Commit
47120f50
authored
Feb 27, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Feb 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys: Add an initial implementation of PropVariantChangeType.
parent
83aee6b1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
135 additions
and
2 deletions
+135
-2
Makefile.in
dlls/propsys/Makefile.in
+2
-1
propsys.spec
dlls/propsys/propsys.spec
+1
-1
propvar.c
dlls/propsys/propvar.c
+88
-0
Makefile.in
include/Makefile.in
+1
-0
propidl.idl
include/propidl.idl
+2
-0
propvarutil.h
include/propvarutil.h
+41
-0
No files found.
dlls/propsys/Makefile.in
View file @
47120f50
...
...
@@ -6,7 +6,8 @@ MODULE = propsys.dll
IMPORTS
=
kernel32
C_SRCS
=
\
propsys_main.c
propsys_main.c
\
propvar.c
@MAKE_DLL_RULES@
...
...
dlls/propsys/propsys.spec
View file @
47120f50
...
...
@@ -93,7 +93,7 @@
@ stub PSSetPropertyValue
@ stub PSStringFromPropertyKey
@ stub PSUnregisterPropertySchema
@ st
ub PropVariantChangeType
@ st
dcall PropVariantChangeType(ptr ptr long long)
@ stub PropVariantCompareEx
@ stub PropVariantGetBooleanElem
@ stub PropVariantGetDoubleElem
...
...
dlls/propsys/propvar.c
0 → 100644
View file @
47120f50
/*
* PropVariant implementation
*
* Copyright 2008 James Hawkins 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>
#include <stdio.h>
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winreg.h"
#include "winuser.h"
#include "shlobj.h"
#include "propvarutil.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
propsys
);
static
HRESULT
PROPVAR_ConvertFILETIME
(
PROPVARIANT
*
ppropvarDest
,
REFPROPVARIANT
propvarSrc
,
VARTYPE
vt
)
{
SYSTEMTIME
time
;
FileTimeToSystemTime
(
&
propvarSrc
->
u
.
filetime
,
&
time
);
switch
(
vt
)
{
case
VT_LPSTR
:
{
static
const
char
format
[]
=
"%04d/%02d/%02d:%02d:%02d:%02d.%03d"
;
ppropvarDest
->
u
.
pszVal
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lstrlenA
(
format
)
+
1
);
if
(
!
ppropvarDest
->
u
.
pszVal
)
return
E_OUTOFMEMORY
;
sprintf
(
ppropvarDest
->
u
.
pszVal
,
format
,
time
.
wYear
,
time
.
wMonth
,
time
.
wDay
,
time
.
wHour
,
time
.
wMinute
,
time
.
wSecond
,
time
.
wMilliseconds
);
return
S_OK
;
}
default:
FIXME
(
"Unhandled target type: %d
\n
"
,
vt
);
}
return
E_FAIL
;
}
/******************************************************************
* PropVariantChangeType (PROPSYS.@)
*/
HRESULT
WINAPI
PropVariantChangeType
(
PROPVARIANT
*
ppropvarDest
,
REFPROPVARIANT
propvarSrc
,
PROPVAR_CHANGE_FLAGS
flags
,
VARTYPE
vt
)
{
FIXME
(
"(%p, %p, %d, %d, %d): semi-stub!
\n
"
,
ppropvarDest
,
propvarSrc
,
propvarSrc
->
vt
,
flags
,
vt
);
switch
(
propvarSrc
->
vt
)
{
case
VT_FILETIME
:
return
PROPVAR_ConvertFILETIME
(
ppropvarDest
,
propvarSrc
,
vt
);
default:
FIXME
(
"Unhandled source type: %d
\n
"
,
propvarSrc
->
vt
);
}
return
E_FAIL
;
}
include/Makefile.in
View file @
47120f50
...
...
@@ -326,6 +326,7 @@ SRCDIR_INCLUDES = \
poppack.h
\
powrprof.h
\
profinfo.h
\
propvarutil.h
\
prsht.h
\
psapi.h
\
pshpack1.h
\
...
...
include/propidl.idl
View file @
47120f50
...
...
@@ -206,6 +206,8 @@ interface IPropertyStorage : IUnknown
typedef
struct
tagPROPVARIANT
*
LPPROPVARIANT
;
cpp_quote
(
"#define REFPROPVARIANT const PROPVARIANT *"
)
cpp_quote
(
"#define PIDDI_THUMBNAIL 0x00000002L /* VT_BLOB */"
)
cpp_quote
(
""
)
cpp_quote
(
"#define PIDSI_TITLE 0x00000002L /* VT_LPSTR */"
)
...
...
include/propvarutil.h
0 → 100644
View file @
47120f50
/*
* Copyright 2008 James Hawkins 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
*/
#ifndef __WINE_PROPVARUTIL_H
#define __WINE_PROPVARUTIL_H
#include <propidl.h>
#include <shtypes.h>
#include <shlwapi.h>
enum
tagPROPVAR_CHANGE_FLAGS
{
PVCHF_DEFAULT
=
0x00000000
,
PVCHF_NOVALUEPROP
=
0x00000001
,
PVCHF_ALPHABOOL
=
0x00000002
,
PVCHF_NOUSEROVERRIDE
=
0x00000004
,
PVCHF_LOCALBOOL
=
0x00000008
,
PVCHF_NOHEXSTRING
=
0x00000010
,
};
typedef
int
PROPVAR_CHANGE_FLAGS
;
HRESULT
WINAPI
PropVariantChangeType
(
PROPVARIANT
*
ppropvarDest
,
REFPROPVARIANT
propvarSrc
,
PROPVAR_CHANGE_FLAGS
flags
,
VARTYPE
vt
);
#endif
/* __WINE_PROPVARUTIL_H */
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