Changeset 2501 for trunk/src/win32k/include/OS2KIO.h
- Timestamp:
- Jan 22, 2000, 7:21:03 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/OS2KIO.h
r2461 r2501 1 /* $Id: OS2KIO.h,v 1. 2 2000-01-17 16:52:25bird Exp $1 /* $Id: OS2KIO.h,v 1.3 2000-01-22 18:20:58 bird Exp $ 2 2 * 3 * OS/2 kernel IO , typedefs and macros.3 * OS/2 kernel IO: prototypes, typedefs and macros. 4 4 * 5 5 * Project Odin Software License can be found in LICENSE.TXT … … 10 10 #define _OS2KIO_h_ 11 11 12 APIRET KRNLCALL IOSftOpen(PSZ pszFilename, 13 ULONG flOpenFlags, /* probably similar to DosOpen */ 14 ULONG fsOpenMode, /* probably similar to DosOpen */ 15 PSFN phFile, 16 PULONG pulsomething); /* EA? */ 17 APIRET KRNLCALL IOSftClose(SFN hFile); 18 APIRET KRNLCALL IOSftTransPath(PSZ pszPath /* IN and OUT? */); 19 APIRET KRNLCALL IOSftReadAt(SFN hFile, 20 PULONG pulActual, 21 PVOID pvBuffer, 22 ULONG flFlags, 23 ULONG cbBuffer); 24 APIRET KRNLCALL IOSftWriteAt(SFN hFile, 25 PULONG pulActual, 26 PVOID pvBuffer, 27 ULONG flFlags, 28 ULONG cbBuffer); 29 /* APIRET KRNLCALL IOSft(1,2,3,4,5); */ 12 13 /** 14 * Opens a given file. 15 * @returns NO_ERROR on success. other on error. 16 * @param pszFilename Pointer to filename. 17 * @param flOpenFlags Open flags. (similar to DosOpen) 18 * @param fsOpenMode Open mode flags. (similar to DosOpen) 19 * @param phFile Pointer to filehandle. 20 * @param pulsomething 16-bit near (?) pointer to a variable - unknown. NULL is allowed. EA? 21 */ 22 APIRET KRNLCALL IOSftOpen( 23 PSZ pszFilename, 24 ULONG flOpenFlags, 25 ULONG fsOpenMode, 26 PSFN phFile, 27 PULONG pulsomething 28 ); 29 30 31 /** 32 * Closes the specified file. 33 * @returns NO_ERROR on success. other on error. 34 * @param hFile File handle - System File Number. 35 */ 36 APIRET KRNLCALL IOSftClose( 37 SFN hFile 38 ); 39 40 41 /** 42 * Probably this function will expand a relative path to a full path. 43 * @returns NO_ERROR on success. other on error. (?) 44 * @param pszPath Pointer to path to expand. Contains the full path upon return. (?) 45 * This buffer should probably be of CCHMAXPATH length. 46 */ 47 APIRET KRNLCALL IOSftTransPath( 48 PSZ pszPath 49 ); 50 51 52 /** 53 * Read at a given offset in the a file. 54 * @returns NO_ERROR on success. other on error. 55 * @param hFile File handle - System File Number. 56 * @param pcbActual Pointer to variable which upon input holds the number 57 * of bytes to read, on output the actual number of bytes read. 58 * @param pvBuffer Pointer to the read buffer. 59 * @param flFlags Read flags? 60 * @param ulOffset File offset to read from. (0=start of file) 61 */ 62 APIRET KRNLCALL IOSftReadAt( 63 SFN hFile, 64 PULONG pcbActual, 65 PVOID pvBuffer, 66 ULONG flFlags, 67 ULONG ulOffset 68 ); 69 70 71 /** 72 * Write at a given offset in the a file. 73 * @returns NO_ERROR on success. other on error. 74 * @param hFile File handle - System File Number. 75 * @param pcbActual Pointer to variable which upon input holds the number 76 * of bytes to write, on output the actual number of bytes write. 77 * @param pvBuffer Pointer to the write buffer. 78 * @param flFlags Read flags? 79 * @param ulOffset File offset to write from. (0=start of file) 80 */ 81 APIRET KRNLCALL IOSftWriteAt( 82 SFN hFile, 83 PULONG pcbActual, 84 PVOID pvBuffer, 85 ULONG flFlags, 86 ULONG ulOffset 87 ); 30 88 31 89 #endif
Note:
See TracChangeset
for help on using the changeset viewer.