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
79d671b7
Commit
79d671b7
authored
Sep 02, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Implement stubs for SHFormatDateTimeA/W.
parent
9e7c8e06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
2 deletions
+52
-2
ordinal.c
dlls/shlwapi/ordinal.c
+50
-0
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-2
No files found.
dlls/shlwapi/ordinal.c
View file @
79d671b7
...
...
@@ -4622,3 +4622,53 @@ HRESULT WINAPI SHGetViewStatePropertyBag(LPCITEMIDLIST pidl, LPWSTR bag_name,
return
E_NOTIMPL
;
}
/***********************************************************************
* SHFormatDateTimeW [SHLWAPI.354]
*
* Produces a string representation of a time.
*
* PARAMS
* fileTime [I] Pointer to FILETIME structure specifying the time
* flags [I] Flags specifying the desired output
* buf [O] Pointer to buffer for output
* bufSize [I] Number of characters that can be contained in buffer
*
* RETURNS
* success: number of characters written to the buffer
* failure: 0
*
*/
INT
WINAPI
SHFormatDateTimeW
(
const
FILETIME
UNALIGNED
*
fileTime
,
DWORD
*
flags
,
LPWSTR
buf
,
UINT
bufSize
)
{
FIXME
(
"%p %p %s %d STUB
\n
"
,
fileTime
,
flags
,
debugstr_w
(
buf
),
bufSize
);
return
0
;
}
/***********************************************************************
* SHFormatDateTimeA [SHLWAPI.353]
*
* See SHFormatDateTimeW.
*
*/
INT
WINAPI
SHFormatDateTimeA
(
const
FILETIME
UNALIGNED
*
fileTime
,
DWORD
*
flags
,
LPCSTR
buf
,
UINT
bufSize
)
{
WCHAR
*
bufW
;
DWORD
buflenW
,
convlen
;
INT
retval
;
if
(
!
buf
||
!
bufSize
)
return
0
;
buflenW
=
bufSize
;
bufW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WCHAR
)
*
buflenW
);
retval
=
SHFormatDateTimeW
(
fileTime
,
flags
,
bufW
,
buflenW
);
if
(
retval
!=
0
)
convlen
=
WideCharToMultiByte
(
CP_ACP
,
0
,
bufW
,
-
1
,
(
LPSTR
)
buf
,
bufSize
,
NULL
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
bufW
);
return
retval
;
}
dlls/shlwapi/shlwapi.spec
View file @
79d671b7
...
...
@@ -350,8 +350,8 @@
350 stdcall -noname GetFileVersionInfoSizeWrapW(wstr ptr)
351 stdcall -noname GetFileVersionInfoWrapW(wstr long long ptr)
352 stdcall -noname VerQueryValueWrapW(ptr wstr ptr ptr)
353 st
ub -noname SHFormatDateTimeA
354 st
ub -noname SHFormatDateTimeW
353 st
dcall -noname SHFormatDateTimeA(ptr ptr str long)
354 st
dcall -noname SHFormatDateTimeW(ptr ptr wstr long)
355 stdcall -noname IUnknown_EnableModeless(ptr long)
356 stdcall -noname CreateAllAccessSecurityAttributes(ptr ptr long)
357 stdcall -noname SHGetNewLinkInfoWrapW(wstr wstr wstr long long)
...
...
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