WinAPI中的HANDLE和HFILE有什么区别? [英] What is the difference between HANDLE and HFILE in WinAPI?

查看:49
本文介绍了WinAPI中的HANDLE和HFILE有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WinAPI OpenFile函数返回HFILE,而实例的GetFileTime需要处理.当我用(HANDLE)some_hFile喂它时,它似乎工作正常.这种类型是否有任何区别,或者其中之一仅仅是基本的?

WinAPI OpenFile function returns HFILE, and GetFileTime for instance needs HANDLE. When I feed it with (HANDLE)some_hFile it seems to work fine. Is there any difference in this types, or one of these is simply rudimental?

推荐答案

OpenFile是16位Windows向后兼容功能.CreateFile是打开文件的功能.

OpenFile is a 16-bit Windows backward-compatibility function. CreateFile is the function to open files.

这篇关于WinAPI中的HANDLE和HFILE有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆