获取所选文件win32 API的文件信息 [英] Get file information of a selected file win32 API

查看:214
本文介绍了获取所选文件win32 API的文件信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想实现一个在后台运行的应用程序,并获取有关用户选择的文件的信息。我搜索了一下关于win32 API的问题,我的想法是使用鼠标钩子来检测鼠标点击事件,然后获取我想要的文件信息。这是一个研究项目。我的基本想法是捕获用户想要打印输出的文件信息。

也许这是一个更广泛的话题。但我想知道是否可以使用win32 API检测用户选择的文件信息?



任何指导都将不胜感激! :-)



我尝试了什么:



我发现这个用于检测全局鼠标挂钩。



globalmousekeyhook

解决方案

也许你可以使用 普通项目对话框。

它支持对话框中事件的调用者通知,例如选择更改或文件类型更改。还可以使调用进程挂钩对话框中的某些事件,例如解析。

Hi guys,

I want to implement an application which runs in the background and gets the information about whatever the file selected by the user. I searched an find out about the win32 API and my idea was to use mouse hooks to detect the mouse click event and then get the file information I want. This is a research project. My basic idea was to capture the file information which user wants to take a printout.
Maybe this is a broader topic. But I want to know whether can I detect a user selected file information using win32 API?

Any guidance would be appreciated! :-)

What I have tried:

I found this for detecting global mouse hooks.

globalmousekeyhook

解决方案

Maybe you could use Common Item Dialog.
It "Supports caller notification of events within the dialog, such as selection change or file type change. Also enables the calling process to hook certain events in the dialog, such as the parsing."


这篇关于获取所选文件win32 API的文件信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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