谢谢,帖子已结,我知道-1就是-1,但是不知道-1是什么意思...比如下面的then Result:=-1就是不明白为啥要等于-1,这个-1代表什么?
比如0是false,1是true,-1又是什么呢?
if not CreateProcess(nil, zAppName, nil, nil, false
, CREATE_NEW_CONSOLE or NORMAL_PRIORITY_CLASS
, nil, nil, StartupInfo, ProcessInfo) then
Result := -1
else
begin
.
.
GetExitCodeProcess(ProcessInfo.hProcess, exitCode);
result := Exitcode;
.
.
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货