Fixes the importing of SHSendBackToFocusWindow in wince

git-svn-id: trunk@27790 -
This commit is contained in:
sekelsenmat 2010-10-21 11:11:15 +00:00
parent 0ef33b2c49
commit b0b573e30a

View File

@ -739,7 +739,8 @@ initialization
aygshelldllhandle := LoadLibrary('aygshell');
if aygshelldllhandle <> 0 then
begin
p := GetProcAddress(aygshelldllhandle, 'SHSendBackToFocusWindow');
// p := GetProcAddress(aygshelldllhandle, 'SHSendBackToFocusWindow'); <<-- This code doesn't work because the function is only exported by number
p := GetProcAddress(aygshelldllhandle, PWideChar(PtrInt(97)));
if p <> nil then Pointer(SHSendBackToFocusWindow) := p
else SHSendBackToFocusWindow := @_SHSendBackToFocusWindow_;
end