How to call function CreateProcess in Delphi Prism?

Posted by Ilya on Stack Overflow See other posts from Stack Overflow or by Ilya
Published on 2010-04-25T14:22:45Z Indexed on 2010/04/25 14:33 UTC
Read the original article Hit count: 401

Filed under:
|
|

I wrote

function CreateProcess(
            lpApplicationName:String;
            lpCommandLine:String;
            lpProcessAttributes:IntPtr;
            lpThreadAttributes:IntPtr;
            bInheritHandles:Boolean;
            dwCreationFlags:Int32;
            lpEnvironment:IntPtr;
            lpCurrentDirectory:IntPtr;
            lpStartupInfo:STARTUPINFO;
            lpProcessInformation:ProcessInfo):Boolean;
         external 'kernel32.dll';

but VStudio said "Semicolon" expected - after external and " "end" expected" after 'kernel32.dll'; Can you help me to load and call a function please?

© Stack Overflow or respective owner

Related posts about delphi-prism

Related posts about createprocess