TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Jari Laaksonen
date: 1994-08-23 15:04:10
subject: Valid filename?

MSGID: 2:221/360.20 2e5a10e4
REPLY: 1:259/414.0 2e55bc64
PID: GED/2 G0615
RVI>> do that.  Does anyone know of a sure fire technique
RVI>> to identify whether or not a given string represents
RVI>> a valid filename for the given file system?

> DosQueryPathInfo( ... FIL_NAMEISVALID ...);

> Some headers don't define FIL_NAMEISVALID;  it should be equal to 6.

Is this documented anywhere else than in the 16-bit CP Guide? How do you
use it in a 32-bit program? I tried
rc=DosQueryPathInfo(filename,6,NULL,0L); but it generated an access
violation in DOSCALL1.DLL.
        // Albert

---

* Origin: Albert's Point/2 in Finland, Europe (2:221/360.20)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 712/353 623 713/888 800/1
@PATH: 112/75 2400 1 280/1 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808
@PATH: 711/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™.