mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:59:11 +02:00
+ Add StartupConsoleMode as for win32
git-svn-id: trunk@14125 -
This commit is contained in:
parent
19cc28d974
commit
90d1dac1d3
@ -93,6 +93,7 @@ var
|
|||||||
argv : ppchar;
|
argv : ppchar;
|
||||||
{ Win32 Info }
|
{ Win32 Info }
|
||||||
startupinfo : tstartupinfo;
|
startupinfo : tstartupinfo;
|
||||||
|
StartupConsoleMode : dword;
|
||||||
hprevinst,
|
hprevinst,
|
||||||
MainInstance : qword;
|
MainInstance : qword;
|
||||||
cmdshow : longint;
|
cmdshow : longint;
|
||||||
@ -423,12 +424,14 @@ procedure Exe_entry;[public,alias:'_FPC_EXE_Entry'];
|
|||||||
system_exit;
|
system_exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function GetConsoleMode(hConsoleHandle: THandle; var lpMode: DWORD): Boolean; stdcall; external 'kernel32' name 'GetConsoleMode';
|
||||||
|
|
||||||
function Dll_entry{$ifdef FPC_HAS_INDIRECT_MAIN_INFORMATION}(const info : TEntryInformation){$endif FPC_HAS_INDIRECT_MAIN_INFORMATION} : longbool;forward;
|
function Dll_entry{$ifdef FPC_HAS_INDIRECT_MAIN_INFORMATION}(const info : TEntryInformation){$endif FPC_HAS_INDIRECT_MAIN_INFORMATION} : longbool;forward;
|
||||||
|
|
||||||
procedure _FPC_mainCRTStartup;stdcall;public name '_mainCRTStartup';
|
procedure _FPC_mainCRTStartup;stdcall;public name '_mainCRTStartup';
|
||||||
begin
|
begin
|
||||||
IsConsole:=true;
|
IsConsole:=true;
|
||||||
|
GetConsoleMode(GetStdHandle((Std_Input_Handle)),StartupConsoleMode);
|
||||||
Exe_entry;
|
Exe_entry;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user