[SHELL32][SDK] Implement ShortSizeFormatW (#5829)

- Implement ShortSizeFormatW.
- Add ShortSizeFormatW prototype into <undocshell.h>.
- Modify shell32.spec.
This commit is contained in:
Katayama Hirofumi MZ 2023-10-28 14:55:25 +09:00 committed by GitHub
parent 81e936486e
commit 2ccdd87809
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 12 deletions

View file

@ -200,7 +200,7 @@
201 stdcall -noname SHDesktopMessageLoop(ptr)
202 stub -noname DDEHandleViewFolderNotify
203 stdcall -noname AddCommasW(long wstr)
204 stdcall -noname ShortSizeFormatW(double)
204 stdcall -noname ShortSizeFormatW(long ptr)
205 stdcall -noname Printer_LoadIconsW(wstr ptr ptr)
206 stdcall ExtractAssociatedIconA(long str ptr)
207 stdcall ExtractAssociatedIconExA(long str long long)

View file

@ -14,17 +14,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(shell);
/*
* Unimplemented
*/
EXTERN_C LPWSTR
WINAPI
ShortSizeFormatW(LONGLONG llNumber)
{
FIXME("ShortSizeFormatW() stub\n");
return NULL;
}
/*
* Unimplemented
*/

View file

@ -86,6 +86,19 @@ ExtractIconResInfoA(
return ExtractIconResInfoW(hHandle, strFileNameW, wIndex, lpSize, lpIcon);
}
/*************************************************************************
* ShortSizeFormatW (SHELL32.204)
*/
EXTERN_C
LPWSTR WINAPI
ShortSizeFormatW(
_In_ DWORD dwNumber,
_Out_writes_(0x8FFF) LPWSTR pszBuffer)
{
TRACE("(%lu, %p)\n", dwNumber, pszBuffer);
return StrFormatByteSizeW(dwNumber, pszBuffer, 0x8FFF);
}
/*************************************************************************
* SHOpenEffectiveToken (SHELL32.235)
*/

View file

@ -700,6 +700,11 @@ LargeIntegerToString(
_In_opt_ const NUMBERFMTW *pNumberFormat,
_In_ DWORD dwNumberFlags);
LPWSTR WINAPI
ShortSizeFormatW(
_In_ DWORD dwNumber,
_Out_writes_(0x8FFF) LPWSTR pszBuffer);
BOOL WINAPI SHOpenEffectiveToken(_Out_ LPHANDLE phToken);
DWORD WINAPI SHGetUserSessionId(_In_opt_ HANDLE hToken);