The GetFileType function returns the type of the specified file.
DWORD GetFileType(
HANDLE hFile |
// file handle |
); |
The return value is one of the following values:
Value |
Meaning |
FILE_TYPE_UNKNOWN |
The type of the specified file is unknown. |
FILE_TYPE_DISK |
The specified file is a disk file. |
FILE_TYPE_CHAR |
The specified file is a character file, typically an LPT device or a console. |
FILE_TYPE_PIPE |
The specified file is either a named or anonymous pipe. |
file: /Techref/os/win/api/win32/func/src/f32_3.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/23 10:58,
3.14.132.178:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f32_3.htm"> GetFileType</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.