Closed maxkleiner closed 5 years ago
now inbuilt to exe with import lib
type (----------------------------------------------------------------------------) TPSImport_WinAPI = class(TPSPlugin) protected procedure CompileImport1(CompExec: TPSScript); override; procedure ExecImport1(CompExec: TPSScript; const ri: TPSRuntimeClassImporter); override; end;
function AttachConsole(dwProcessID: Integer): Boolean;
stdcall; external 'kernel32.dll' name 'AttachConsole';
function FreeConsole(): Boolean;
stdcall; external 'kernel32.dll' name 'FreeConsole';
add attachconsole and freeconsole to base library
function AttachConsole(dwProcessID: Integer): Boolean;external'AttachConsole@kernel32.dll stdcall'; function FreeConsole(): Boolean;external'FreeConsole@kernel32.dll stdcall'; document: NativeWriteln()