You mean something like,

Code:
procedure OpenNotepad;

var
  StartInfo : STARTUPINFO;
  ProcessReturnInfo : PROCESS_INFORMATION;

begin
  StartInfo.cb := sizeof(STARTUPINFO);
  StartInfo.lpReserved := nil;
  StartInfo.lpDesktop := nil;
  StartInfo.lpTitle := PChar('');
  StartInfo.dwFlags := STARTF_USESTDHANDLES;
  StartInfo.cbReserved2 := 0;
  StartInfo.lpReserved2 := nil;
  StartInfo.hStdInput := 0;
  StartInfo.hStdOutput := 0;
  StartInfo.hStdError := 0;
  
  CreateProcess(nil,
                PChar('NOTEPAD.EXE'),
                nil,
                nil,
                FALSE,
                NORMAL_PRIORITY_CLASS,
                nil,
                nil,
                StartInfo,
                ProcessReturnInfo);
end;
yeah I know. Just playing around... (Read mood)

Actually, at one time programmed with Win16 and the ObjectWindows Library. (Borland Pascal 7, early 90s)