comctl32: Load function pointers by ordinal.

This commit is contained in:
Paul Vriens 2006-11-08 12:39:35 +01:00 committed by Alexandre Julliard
parent a51e02c5d6
commit 6e9f335656
1 changed files with 6 additions and 3 deletions

View File

@ -285,9 +285,12 @@ START_TEST(subclass)
hdll = GetModuleHandleA("comctl32.dll");
assert(hdll);
pSetWindowSubclass = (void*)GetProcAddress(hdll, "SetWindowSubclass");
pRemoveWindowSubclass = (void*)GetProcAddress(hdll, "RemoveWindowSubclass");
pDefSubclassProc = (void*)GetProcAddress(hdll, "DefSubclassProc");
/* Functions have to be loaded by ordinal. Only XP and W2K3 export
* them by name.
*/
pSetWindowSubclass = (void*)GetProcAddress(hdll, (LPSTR)410);
pRemoveWindowSubclass = (void*)GetProcAddress(hdll, (LPSTR)412);
pDefSubclassProc = (void*)GetProcAddress(hdll, (LPSTR)413);
if(!pSetWindowSubclass || !pRemoveWindowSubclass || !pDefSubclassProc)
return;