Hello Eric!
Sunday June 22 1997, Eric Schreiber writes to Carl Waring:
ES> It's since ocured to me to whip together a prog that will display to
ES> me the entire command line, so I can see exactly what Win95 is
ES> sending. Perhaps then I'll figure it out.
type PShortString = ^ShortString; { I don't know if Delphi has this
defined already --- Replace ShortString with String if you're running Delphi
_1_ }
var CmdLine : PAnsiString;
begin
CmdLine:=Ptr(PrefixSeg,$80); { This is a pointer to the whole command line
}
end;
This is the official, down-to-the-bone method of getting the whole command
line under DOS...
My two sources do not agree on whether this works under Windows as well, and
I have no way to test it since my Windows is _very_ unstable.
Lars
--- GoldED/386 2.50 UNREG
---------------
* Origin: Yet another T.P.I. Point (2:238/64.46)
|