列出MFC 6中所有可用的USB驱动器? [英] list all available usb drives in mfc vc6?

查看:100
本文介绍了列出MFC 6中所有可用的USB驱动器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是vc6的新手,尤其是在MFC中,我的问题是如何执行ff:
1.如何列出所有当前插入的USB驱动器,使用列表视图+ USB详细信息列出它们,例如可用内存,设备名称等.仅USB驱动器而不是HDD
2.列出Windows安全中心中的所有防病毒软件,防火墙和软件,并在列表视图中列出及其状态(如果打开/关闭/过期)
3.列出所有自动启动程序+删除按钮
4.在vc6中进行注册表的删除/添加/修改 我知道如何在VB.NET中执行此操作,但在VC6 MFC中不行
请帮助我

Hello, I am completely new to vc6 especially in mfc, my question is how to do the ff:
1. How to list all currently inserted USB drives, list them using listview + USB details, like, free memory, device name etc. only usb drives not the HDD
2. List all antivirus, firewall, softwares in Windows Security Center and list in list view + their status if on/off/out of date
3. list all autostart programs + delete button
4. doing registry delete/add/modify in vc6
I know how to do this in VB.NET but not in VC6 MFC
Please help me

推荐答案

1.也许尝试 http://cboard.cprogramming.com/windows- programming/114294-getting-list-usb-devices-listed-system.html [ MSDN [ ^ ]

3.这些居住在2个基本地点.当前用户的开始菜单中的Startup文件夹,共享用户的开始菜单和Run注册表,例如HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunHKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run(对于诸如安装程序之类的RunOnce).注意:在64位计算机上,这些密钥可以存储在64位和32位注册表位置中,或同时存储在这两个位置中.这意味着您还必须检查HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
之类的内容
4.使用注册表API [ ^ ].在 MSDN [ ^ ](链接到左侧的更多示例)
1. Perhaps try http://cboard.cprogramming.com/windows-programming/114294-getting-list-usb-devices-listed-system.html[^]

2. No idea, there is probably an API somewhere, or a registry key. At least the Windows Firewall has an API documented on MSDN[^]

3. These live in 2 basic locations. The Startup folder in the start menu of the current user, and the shared user start menu, and the Run registry, such as HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run (also the RunOnce for things like installers). Note: On a 64 bit computer these keys can be stored in either the 64 and 32 bit registry locations, or both. This means you must also check things like HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run

4. Using the Registry API[^]. Check out the example on MSDN[^] (links to some more examples on the left hand side)


这篇关于列出MFC 6中所有可用的USB驱动器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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