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 12:19, local time: 2024/8/17 08:42,
3.141.7.130: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://sxlist.com/TECHREF/os/win/api/win32/func/src/f32_3.htm"> GetFileType</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
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! |
.