Jump to content
Nytro

[Delphi]Inline ASM MessageBox

Recommended Posts

by mjrod5:

You can flame me or whatever you want...

Here is code i made =)

Seems like delphi doesnt support invoke, only call xP

Have fun doing nothing with this

program InlineASM;

uses
Windows;

var
_msg: String = 'Inline ASM, Delphi';
_cpt: String = 'woot!';

begin
asm
//MessageBox: function(hWnd: HWND; lpText, lpCaption: PAnsiChar; uType: UINT): Integer;
push 0 //uType
push _cpt //lpCaption
push _msg //lpText
push 0 //hWnd
call messagebox //Call the MessageBoxAPI with params you pushed
//Delphi Equivalent would be
//MessageBox(0,PChar(_msg),PChar(_cpt),0);
end;
end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...