| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | HPFS |
MB> I'm writing an OS/2 app, and would like to include MB> support for HPFS long names. I've never worked with MB> long names, or EAs at all for that matter. :) Could MB> someone explain or give me an example of how to access MB> the EA.Longname from my program? I never fuss with that EA. Under OS/2 1.x, pmfile.exe was the only program that used it. Under 2.x, I think WPS is the only thing that uses it (if you use the COPY or XCOPY commands from the command line,for example, they ignore this EA). Therefore, my programs will not allow long names with the FAT file system (who cares). The only programming changes I worry about are: full path names can be up to 260 bytes (CCHMAXPATH), and I don't assume there is only only period in a file name. To check the maximum file name len (ie: FAT or HPFS), use DosQuerySysInfo(). What I usually do is allow any name the user supplies, then deal with the error if it doesn't work, buy displaying a useful error message and letting them try again. To allow your C program to use long file names with fopen() et al,don't forget to link (Cset) with "NEWFILES" in your *.def file, or use the EXEHDR utility with the "/NEWFILES" switch. --- Maximus/2 2.01* Origin: Beer bellies = great waist. (905)858-8488 (1:259/414) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430 SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 259/414 400 99 98 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.