-
把快捷方式的文件的路径,使用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
-
sendmail发送邮件程序
该delphi程序 采用最新的mail sender技术, 简洁 快速发送mail,采用delphi技术开发
- 2022-02-09 15:27:43下载
- 积分:1
-
A written using visual basic to change the color of the text of the procedures
一个用visual basic写的能够改变文字的颜色的程序-A written using visual basic to change the color of the text of the procedures
- 2023-01-09 10:50:03下载
- 积分:1
-
能够将BMP文件直接转化成JPG文件,并且是纯C代码,不用任何的插件。...
能够将BMP文件直接转化成JPG文件,并且是纯C代码,不用任何的插件。-Be able to BMP files directly into JPG files, and is a pure C code, without any plug-ins.
- 2022-03-09 15:11:43下载
- 积分:1
-
C++ GDI 不规则透明按钮 完整的源代码
VS 2008的完成 工程 源代码 全透明 按钮 PNG图片 可以实现透明按钮 和不规则图形 按钮。。。
- 2022-04-07 16:25:45下载
- 积分:1
-
数控插补,跨象限的直线和圆弧,其中包括几种常见的插补方式...
数控插补,跨象限的直线和圆弧,其中包括几种常见的插补方式-NC interpolation, cross-quadrant linear and circular, including several common interpolation methods
- 2022-12-31 08:50:03下载
- 积分:1
-
拉格朗日插值法的C++源程序,通过测试
lagrange插值方法的c++源码,通过测试-lagrange interpolation method c++ source, pass the test
- 2023-03-14 19:10:03下载
- 积分:1
-
开通或关闭ppc手机数据线充电功能的源代码
开通或关闭ppc手机数据线充电功能的源代码-Opened or closed ppc phone data line charging function source code
- 2023-02-27 20:45:03下载
- 积分:1
-
system to support the Math : PI! ^% SQR SQRT INT/TRUNC ROUND ABS FRAC SIN COS TA...
系统支持的数学函数:PI ! ^ % SQR SQRT INT/TRUNC ROUND ABS FRAC SIN COS TAN ARCSIN ARCCOS ARCTAN LN LOG2 LOG10PI:圆周率。Exp!:计算Exp(表达式)的介乘。Exp1^Exp2:计算Exp1的Exp2次方。Exp1%Exp2:计算Exp1除以Exp2后的余数。Sqr(Exp):计算Exp的平方。Sqrt(Exp):计算Exp的平方根。Int(Exp)/Trunc(Exp):把Exp截断取整。Round(Exp):把Exp四舍五入。Abs(Exp):取Exp的绝对值。Frac(Exp):取Exp的小数部分。Sin(Exp):求Exp的正玄。Cos(Exp):求Exp的余玄。Tan(Exp):求Exp的正切。ArcSin(Exp):求Exp的反正玄。ArcCos(Exp):求Exp的反余玄。ArcTan(Exp):求Exp的反正切。Ln(Exp):求Exp的自然对数。Log2(Exp):求Exp的以2为低的对数。Log10(Exp):求Exp的以10为低的对数。-system to support the Math : PI! ^% SQR SQRT INT/TRUNC ROUND ABS FRAC SIN COS TAN LN ARCSIN ARCCOS ARCTAN LOG2 LOG10PI : pi. Exp. : Computational Exp (expression) of the referral by. Exp1 ^ Exp2 : computational power of Exp1 the Exp2. Exp1% Exp2 : Exp1 calculated by dividing Exp2 the remainder. Monaco (Exp) : Exp calculating the square. Sqrt (Exp) : Exp calculating the square root. Int (Exp)/Trunc (Exp) : With Exp disconnected from the whole. Round (Exp) : With Exp rounding. Abs (Exp) : Exp take the absolute valu
- 2023-02-10 21:40:04下载
- 积分:1
-
这是一个实现放大镜功能的代码,通过选择工具条上的放大镜按钮然后单击鼠标左健并且拖动就可以放大窗口内的内容。...
这是一个实现放大镜功能的代码,通过选择工具条上的放大镜按钮然后单击鼠标左健并且拖动就可以放大窗口内的内容。-This is a realization of a magnifier function of the code, by selecting the magnifying glass toolbar button then click the left mouse and drag Kin can enlarge the contents of the window.
- 2022-11-01 11:35:03下载
- 积分:1