ah, danke. allerdings bekomm eich jetzt eine AccessViolation:
Delphi-Quellcode:
type
TSHMessageBoxCheck =
function(hWnd: THandle; Text: PWideChar; Title: PWideChar;
Tpye: DWORD;
Default: Integer; RegVal: PWideChar): Integer;
procedure TForm1.Button1Click(Sender: TObject);
var
hLib: THandle;
SHMessageboxCheck: TSHMessageBoxCheck;
begin
hLib := LoadLibrary('
shlwapi.dll');
if hLib <> INVALID_HANDLE_VALUE
then
begin
@SHMessageboxCheck := GetProcAddress(hLib, PChar(185));
if Assigned(SHMessageboxCheck)
then
begin
SHMessageboxCheck(
Handle, '
Test', '
Titel', MB_OK, 0, '
1CD2DD9C-92CB-4931-B03D-E4164D134501');
end
else
RaiseLastOSError;
end
else
RaiseLastOSError;
end;