📄 project1.dpr
字号:
program Project1;
uses
Forms,System,Windows,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
var
hReadPipe,hWritePipe:THandle;
strBuff:array[0..255] of char;
WorkDir,mns:String;
StartupInfo:TStartupInfo;
ProcessInfo:TProcessInformation;
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
FillChar(StartupInfo,Sizeof(StartupInfo),#0);
StartupInfo.cb:=Sizeof(StartupInfo);
if Form1.g_bIsRunAgain then
CreateProcess(nil,
PChar(Application.exename), { pointer to command line string }
nil, { pointer to process security attributes }
nil, { pointer to thread security attributes }
False, { handle inheritance flag }
NORMAL_PRIORITY_CLASS,
nil, { pointer to new environment block }
nil, { pointer to current directory name, PChar}
StartupInfo, { pointer to STARTUPINFO }
ProcessInfo); { pointer to PROCESS_INF }
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -