-
把快捷方式的文件的路径,使用IShellLink。
怎样获取快捷方式所指向的目标文件名? HRESULT hres IShellLink* psl HRESULT hres IShellLink* psl char szGotPath[MAX_PATH] char szDescription[MAX_PATH] WIN32_FIND_DATA wfd OleInitialize(0) hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl) if (SUCCEEDED(hres)) { IPersistFile* ppf hres = psl->QueryInterface(IID_IPersistFile, (void**)&ppf) if (SUCCEEDED(hres)) { WCHAR wsz[MAX_PATH] char lpszLinkFile[MAX_PATH] //这里存放的是快捷方式的路径 if(MultiByteToWideChar(CP_ACP, 0, lpszLinkFile, -1, wsz, MAX_PATH)==0) return hres = ppf->Load(wsz, STGM_READ) if (SUCCEEDED(hres)) { hres = psl->Resolve(m_hWnd, 0) if (SUCCEEDED(hres)) { hres = psl->GetPath(szGotPath, MAX_PATH, (WIN32_FIND_DATA*)&wfd, SLGP_SHORTPATH)-Get the path file of the Shortcut, using IShellLink.
- 2023-07-15 01:10:03下载
- 积分:1
-
Directory Info
使用
- 2022-03-21 09:39:52下载
- 积分:1
-
快速搜索磁盘文件
资源描述
可以快速搜索磁盘文件。
使用DeviceIoControl对磁盘文件管理表进行快速的搜索。可以快速的检索到磁盘上的文件。
- 2022-02-12 17:27:10下载
- 积分:1
-
sends SMS information to another mobile phone
sends SMS information to another mobile phone
- 2022-01-24 08:53:33下载
- 积分:1
-
maze is the essence of the plan traverse the problem, we can use a two
迷宫的问题实质上就是图的遍历问题,我们可以用一个二维数组存储一个迷宫的各个结点,给定一个开始的坐标和一个结束的坐标.本程序可以寻找一条路径,但这条路径不是最短的.就是说不是最优的.-maze is the essence of the plan traverse the problem, we can use a two-dimensional array storage a maze of the various nodes, to set a beginning and an end coordinates of the coordinates. This procedure can find a path, but this is not the shortest path. Not to say the best.
- 2022-05-24 03:36:41下载
- 积分:1
-
一组用于管理可执行资源的组件的组件
a set of components useful for managing the resources of an executable
- 2022-03-06 10:12:58下载
- 积分:1
-
STM32的485双机通信
应用背景RS-485 接口电路的主要功能是:将来自微处理器的发送信号TX 通过“发送器”转换成通讯网络中的差分信号,也可以将通讯网络中的差分信号通过“接收器”转换成被微处理器接收的RX 信号。任一时刻,RS-485 收发器只能够工作在“接收”或“发送”两种模式之一,因此,必须为RS-485 接口电路增加一个收/发逻辑控制电路。另外,由于应用环境的各不相同,RS-485 接口电路的附加保护措施也是必须重点考虑的环节。关键技术该程序使用485通讯协议使用STM32F103来完成双机通信.本实验为使用串口2通过485收发数据的实验,485芯片为SN65LBC184
实验步骤:
1、把主机端、从机端的工程分别烧录到两块板子上
2、用两根导线使两个板子的485A -485A,485B-485B接口相连。
3、先给从机上电,再给主机上电,实验调试信息可由串口1打印到PC终端。
- 2022-05-10 20:17:43下载
- 积分:1
-
小弟从网上掘一代码,奉献出来,希望对大家有帮助
小弟从网上掘一代码,奉献出来,希望对大家有帮助-Boy dug one code from the Internet, and dedication out to be helpful for all of us
- 2022-06-30 00:40:39下载
- 积分:1
-
GpsMap, 本程序利用MapX做的电子地图,通过串口接收GPS模块数据,实现在电子地图上对当前在地图上位置的定位,同时显示当前经纬度,当前时间,速度,海拔等...
GpsMap, 本程序利用MapX做的电子地图,通过串口接收GPS模块数据,实现在电子地图上对当前在地图上位置的定位,同时显示当前经纬度,当前时间,速度,海拔等信息的功能。注意使用时要安装MAPX(本程序使用MAPX_V5,如使用其它版本,则可能要修改头文件)。-GpsMap, this procedure use MapX E-map and GPS module, and receive the GPS Data through the serial port, to locate the location on the E-map, at the same time shows the current latitude and longitude, the current time, speed, altitude and other information. Attention: MAPX should be installed if u use this program, this procedure is on MAPX_V5, if u use other versions, you may modify header files.
- 2022-02-13 19:19:58下载
- 积分:1
-
将bin文件转化为数组文件。使用
方法:将你要转化的bin文件改为test.bin,然后再dos下运行,生成相应的c文件。...
将bin文件转化为数组文件。使用
方法:将你要转化的bin文件改为test.bin,然后再dos下运行,生成相应的c文件。
-The bin file into an array of files
- 2023-09-06 20:20:03下载
- 积分:1