-
把快捷方式的文件的路径,使用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
-
This the VB6 code for Dot Matrix in VB6,
This the VB6 code for Dot Matrix in VB6,-This is the VB6 code for Dot Matrix in VB6,
- 2022-01-26 00:53:32下载
- 积分:1
-
利用相片的拍照时间查找冗余相片 C#
输入要查找相片的目录 改名 可以将所有相片名称改为拍照时间查找可以找出相同相片生成结果 存在 c:重复相片.TXT主要代码在form1.cs 中
- 2022-01-26 07:51:42下载
- 积分:1
-
生命科学导论在线考试系统
生命科学导论在线考试系统--可以实现在线考试,自动抽卷批改评分
- 2022-02-11 12:02:07下载
- 积分:1
-
poj1010sticks源代码,欢迎大家下载
poj1010sticks源代码,欢迎大家下载-poj1010sticks source code, welcome you to download
- 2023-07-26 19:15:03下载
- 积分:1
-
此程式为利用opencv产生色彩模型(gamut)
此程式为利用opencv产生色彩模型(gamut)-this program for the use of opencv produce color model (roadmap)
- 2022-03-18 09:23:11下载
- 积分:1
-
非常好的MODBUS RTU MASTER程序,特别是其中的CRC
非常好的MODBUS RTU MASTER程序,特别是其中的CRC-16码的算法,非常经典,可以移植到任何的地方使用。-very good MODBUS RTU MASTER procedures, Special is one of the CRC-16 code algorithm, very classic, can be transferred to any use.
- 2022-05-07 06:41:44下载
- 积分:1
-
在命令将帮助你制作电话接待CA列表
list of at commands which will help you to maker a call and recieve a ca-list of at commands which will help you to maker a call and recieve a call
- 2022-08-12 12:30:13下载
- 积分:1
-
它包括描述的模块功能和重要日期的openser S.
it consists of descriptions for openser s modules functions and important date structure. also it s my own opinion maybe not very accurate but for referrnce enough
- 2022-03-11 04:16:48下载
- 积分:1
-
mfc examples a2
mfc examples a2
- 2023-08-01 06:35:03下载
- 积分:1