/*++ Copyright (c) 1989 Microsoft Corporation Module Name: os2file.c Abstract: This is a test OS/2 application to test the file system component of OS/2 Author: Therese Stowell (thereses) 24-Oct-1989 Environment: User Mode Only Revision History: --*/ #define OS2_API32 #define INCL_OS2V20_ERRORS #define INCL_OS2V20_FILESYS #define INCL_OS2V20_TASKING #include #define NEWMAXFH 25 #define SECONDNEWMAXFH 27 // create file // query handle type // set file size // set file pointer // write // read // open 21 handles // test sharing, open directory, open for write code // setmaxfh to 23 // open 3 more handles // set verify // query verify // set fhstate // query fhstate // dup handle // close 1 handle // open 1 handle int main( int argc, char *argv[], char *envp[] ) { int i; APIRET rc; HFILE FileHandle; HFILE HandleArray[NEWMAXFH]; ULONG ActionTaken; ULONG DiskNumber, LogicalDrives; char DirectoryName[30]; ULONG DirectoryNameLength=30; DbgPrint( "*** Entering OS/2 File System Test Application\n" ); DbgPrint( "argc: %ld\n", argc ); for (i=0; i