Message-ID: <004801c09ba2$4bc43150$050714ac@ypwang> From: "ypwang" To: "Eli Zaretskii" Cc: References: <95sfgm$sne$1 AT pippin DOT nask DOT waw DOT pl> <96iivg$ssn$1 AT mail DOT cn99 DOT com> <2427-Fri16Feb2001123739+0200-eliz AT is DOT elta DOT co DOT il> Subject: Re: Win2k vs Win NT4 -how to distinguish Date: Wed, 21 Feb 2001 09:04:38 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id UAA21701 Reply-To: djgpp AT delorie DOT com > Let me reiterate the problem. The issue is how do library functions > detect W2K. Not application programs, _library_ functions. > > It is IMHO inappropriate for a general-purpose library function to > invoke an external program (the shell, which implements the VER > command), especially since W2K is known to not like nested programs > too much. OK, I agree with you that we can't invoke a program in the library while it's useful for applications. but if we can get the method of VER did, I mean maybe VER just invoke a INTxx to get that version info, then we can invoke a INTxx in the library, isn't it?