I need to get the address of a Win APi method (FindWindowW
) , I'm using the @
operator and the GetProcAddress
but both returns differents results.
var
p1, p2 : Pointer;
begin
p1:= @Winapi.Windows.FindWindowW;
p2:=GetProcAddress(GetModuleHandle('user32.dll'), 'FindWindowW');
ShowMessage(Format('p1 %p p2 %p ', [p1, p2]));
end;
Why the values returned are different?