Einzelnen Beitrag anzeigen

venice2
(Gast)

n/a Beiträge
 
#2

AW: LoadLibrary vs GetModuleHandle, eine Verständisfrage

  Alt 14. Mai 2021, 19:56
Hmmm..

Delphi-Quellcode:
var
  hUser: HModule;
begin
  hUser := GetModuleHandle('user32.dll');
  @SetWindowCompositionAttribute := GetProcAddress(hUser, 'SetWindowCompositionAttribute');
end;
was sagt hUser ?

GetModuleHandle(user32) <> GetModuleHandle('user32.dll');

Geändert von venice2 (14. Mai 2021 um 20:00 Uhr)
  Mit Zitat antworten Zitat