Replace call to ExtractIconExW (shell32.dll) by a call to PrivateExtractIconExw ...
authorEric Kohl <eric.kohl@reactos.org>
Sat, 6 Dec 2008 11:13:50 +0000 (11:13 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 6 Dec 2008 11:13:50 +0000 (11:13 +0000)
Please remember: Don't use high-level DLLs in low-level components (dll or exe)!!!!

svn path=/trunk/; revision=37891

reactos/subsystems/win32/csrss/win32csr/appswitch.c
reactos/subsystems/win32/csrss/win32csr/win32csr.rbuild

index e499794..43d241e 100644 (file)
@@ -26,6 +26,9 @@ static DWORD NumOfWindows = 0;
 static HWND hAppWindowDlg = NULL;
 static HHOOK hhk = NULL;
 
+UINT WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT);
+
+
 BOOL
 CALLBACK 
 EnumWindowEnumProc(
@@ -55,7 +58,7 @@ EnumWindowEnumProc(
            if (GetModuleFileNameExW(hProcess, NULL, szFileName, MAX_PATH))
            {
                szFileName[MAX_PATH-1] = L'\0';
-               ExtractIconExW(szFileName, 0, &hIcon, NULL, 1);
+               PrivateExtractIconExW(szFileName, 0, &hIcon, NULL, 1);
            }
        }
     }
index ba304e4..bcccf39 100644 (file)
@@ -13,9 +13,8 @@
        <library>user32</library>
        <library>gdi32</library>
        <library>advapi32</library>
-        <library>win32ksys</library>
+       <library>win32ksys</library>
        <library>psapi</library>
-       <library>shell32</library>
        <pch>w32csr.h</pch>
        <file>alias.c</file>
        <file>conio.c</file>