[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
4 changed files with 19 additions and 12 deletions

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)
*/