-
把快捷方式的文件的路径,使用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
-
一个时钟的界面,很漂亮的
一个时钟的界面,很漂亮的- A clock contact surface, is very attractive
- 2022-04-29 20:15:53下载
- 积分:1
-
calculated another way, can increase code
另一种计算方法,可以增加代码
- 2022-04-07 07:57:38下载
- 积分:1
-
Automatic Updates IP, can be updated outside the network, within the network, is...
自动更新IP,可以更新外网,内网,工具还不错的,提供大家-Automatic Updates IP, can be updated outside the network, within the network, is also a good instrument to provide U.S.
- 2022-01-25 21:49:50下载
- 积分:1
-
用win32SDK实现了一个与MFC类似的程序,虽然不完美,但很适合MFC初学者学习之用,此程序对MFC的实现原理做了很好的描述。...
用win32SDK实现了一个与MFC类似的程序,虽然不完美,但很适合MFC初学者学习之用,此程序对MFC的实现原理做了很好的描述。
- 2022-02-03 18:17:26下载
- 积分:1
-
4:1 mux test version.
4:1 mux test version.
- 2023-08-16 15:20:03下载
- 积分:1
-
这是一个图形变换的程序,按字母“Y”画一个用点组成的圆;按字母“S”画一 个用不同颜色填充的三角形;按字母“Z”画一个用不同颜色填充且带有边框图案 的矩形;按“...
这是一个图形变换的程序,按字母“Y”画一个用点组成的圆;按字母“S”画一 个用不同颜色填充的三角形;按字母“Z”画一个用不同颜色填充且带有边框图案 的矩形;按“q”键退出。-This a graphic transformation process based on the letter "Y" with a painting consisting of a round; According to the letter "S" painted a different color-filled triangle; According to the letter "Z" painted a different color but filled with a pattern of the rectangular frame; According to the "q" key to exit .
- 2022-05-27 13:35:50下载
- 积分:1
-
在D3D中创建三维字模型。可以设置颜色,位置,旋转等功能
在D3D中创建三维字模型。可以设置颜色,位置,旋转等功能-created in 3D Display word model. Can set the color, position, rotation and other functions
- 2023-01-08 02:50:02下载
- 积分:1
-
自己阅读,希望对你有所帮助,谢谢谢谢,快点下巴
自己阅读,希望对你有所帮助,谢谢谢谢,快点下巴-NOTHING BUN ENOUGH
- 2023-04-18 13:00:04下载
- 积分:1
-
windows的API函数的归纳电子书,系统全面的介绍了百分之九十的API函数。...
windows的API函数的归纳电子书,系统全面的介绍了百分之九十的API函数。-windows into the API function of e-books, systematic and comprehensive introduction to the 90 of the API function.
- 2022-02-26 18:37:21下载
- 积分:1