mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 07:42:33 +02:00
Fixes the importing of SHSendBackToFocusWindow in wince
git-svn-id: trunk@27790 -
This commit is contained in:
parent
0ef33b2c49
commit
b0b573e30a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user