Mail Archives: djgpp/2000/06/28/09:00:39
From: | "Laurs Laursen" <lsl AT force DOT dk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Long Filename and NT and lfn0005
|
Date: | Wed, 28 Jun 2000 14:48:11 +0200
|
Organization: | UNI-C
|
Lines: | 26
|
Message-ID: | <8jcs6e$jm2$1@news.net.uni-c.dk>
|
NNTP-Posting-Host: | gateway.force.dk
|
X-Trace: | news.net.uni-c.dk 962196494 20162 130.226.97.129 (28 Jun 2000 12:48:14 GMT)
|
X-Complaints-To: | usenet AT news DOT net DOT uni-c DOT dk
|
NNTP-Posting-Date: | 28 Jun 2000 12:48:14 GMT
|
X-Newsreader: | Microsoft Outlook Express 4.72.3155.0
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Wojciech Galazka made a long filename program LFN0005 for Windows NT 4
I tried to to use it from a Watcom / Causeway Dos extended program which
runs with long filesnames in Win9x, but it did not return valid
informations.
The lfnload.com and the dll report installed ok on screen
I used the following code to convert a filename from long to short:
int IntrGetNameFunctions(unsigned short subcall,char *infile, char *outfile)
{
struct SREGS sregs;
union REGS regs;
segread(&sregs);
sregs.ds=FP_SEG(infile); // vector address
regs.x.esi=FP_OFF(infile);
sregs.es=FP_SEG(outfile); // info dump address
regs.x.edi=FP_OFF(outfile);
regs.h.cl=subcall; // Get full path/long/short
regs.h.ch=0x80; // Use Subst drive
regs.w.ax=0x7160; // UserErrTerm
int386x(0x21,®s,®s,&sregs);
return (regs.w.cflag);
}
- Raw text -