mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SHELL32] Implement ExtractIconResInfoA (#5846)
- Add ExtractIconResInfoA implementation. - Add ExtractIconResInfo prototype to <undocshell.h>.
This commit is contained in:
parent
9dfb3e8e05
commit
81e936486e
3 changed files with 43 additions and 20 deletions
|
@ -939,26 +939,12 @@ Printers_AddPrinterPropPages(LPVOID lpUnknown1, LPVOID lpUnknown2)
|
|||
*/
|
||||
EXTERN_C WORD
|
||||
WINAPI
|
||||
ExtractIconResInfoA(HANDLE hHandle,
|
||||
LPSTR lpFile,
|
||||
WORD wIndex,
|
||||
LPWORD lpSize,
|
||||
LPHANDLE lpIcon)
|
||||
{
|
||||
FIXME("ExtractIconResInfoA() stub\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Unimplemented
|
||||
*/
|
||||
EXTERN_C WORD
|
||||
WINAPI
|
||||
ExtractIconResInfoW(HANDLE hHandle,
|
||||
LPWSTR lpFile,
|
||||
WORD wIndex,
|
||||
LPWORD lpSize,
|
||||
LPHANDLE lpIcon)
|
||||
ExtractIconResInfoW(
|
||||
_In_ HANDLE hHandle,
|
||||
_In_ LPCWSTR lpFileName,
|
||||
_In_ WORD wIndex,
|
||||
_Out_ LPWORD lpSize,
|
||||
_Out_ LPHANDLE lpIcon)
|
||||
{
|
||||
FIXME("ExtractIconResInfoW() stub\n");
|
||||
return 0;
|
||||
|
|
|
@ -65,6 +65,27 @@ PathIsSlowA(
|
|||
return PathIsSlowW(strFileW, dwAttr);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* ExtractIconResInfoA (SHELL32.221)
|
||||
*/
|
||||
EXTERN_C
|
||||
WORD WINAPI
|
||||
ExtractIconResInfoA(
|
||||
_In_ HANDLE hHandle,
|
||||
_In_ LPCSTR lpFileName,
|
||||
_In_ WORD wIndex,
|
||||
_Out_ LPWORD lpSize,
|
||||
_Out_ LPHANDLE lpIcon)
|
||||
{
|
||||
TRACE("(%p, %s, %u, %p, %p)\n", hHandle, debugstr_a(lpFileName), wIndex, lpSize, lpIcon);
|
||||
|
||||
if (!lpFileName)
|
||||
return 0;
|
||||
|
||||
CStringW strFileNameW(lpFileName);
|
||||
return ExtractIconResInfoW(hHandle, strFileNameW, wIndex, lpSize, lpIcon);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* SHOpenEffectiveToken (SHELL32.235)
|
||||
*/
|
||||
|
|
|
@ -239,6 +239,22 @@ HICON WINAPI SHGetFileIcon(
|
|||
|
||||
BOOL WINAPI FileIconInit(BOOL bFullInit);
|
||||
|
||||
WORD WINAPI
|
||||
ExtractIconResInfoA(
|
||||
_In_ HANDLE hHandle,
|
||||
_In_ LPCSTR lpFileName,
|
||||
_In_ WORD wIndex,
|
||||
_Out_ LPWORD lpSize,
|
||||
_Out_ LPHANDLE lpIcon);
|
||||
|
||||
WORD WINAPI
|
||||
ExtractIconResInfoW(
|
||||
_In_ HANDLE hHandle,
|
||||
_In_ LPCWSTR lpFileName,
|
||||
_In_ WORD wIndex,
|
||||
_Out_ LPWORD lpSize,
|
||||
_Out_ LPHANDLE lpIcon);
|
||||
|
||||
/****************************************************************************
|
||||
* File Menu Routines
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue