Welcome![Sign In][Sign Up]
Location:
Search - WIN32_FIND_DATA

Search list

[Windows Develop怎样获取快捷方式所指向的目标文件名

Description: 怎样获取快捷方式所指向的目标文件名? 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.
Platform: | Size: 3317 | Author: | Hits:

[Other resourceVideoViewer

Description: evc编写的一个例子,涉及了 WIN32_FIND_DATA 查找文件的方法,以及listctrl如何使用,可作为参考-evc prepared by an example. WIN32_FIND_DATA involved in the search for documents, listctrl and how to use, may be used as reference
Platform: | Size: 108315 | Author: hoozh | Hits:

[Windows Develop怎样获取快捷方式所指向的目标文件名

Description: 怎样获取快捷方式所指向的目标文件名? 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.
Platform: | Size: 3072 | Author: | Hits:

[Windows CEVideoViewer

Description: evc编写的一个例子,涉及了 WIN32_FIND_DATA 查找文件的方法,以及listctrl如何使用,可作为参考-evc prepared by an example. WIN32_FIND_DATA involved in the search for documents, listctrl and how to use, may be used as reference
Platform: | Size: 108544 | Author: hoozh | Hits:

[OS programAPIViewer

Description: API Viewer.可迅速查找win16/win32/winCE API,并自动生成声明,非常方便。-API Viewer. Can quickly find win16/win32/winCE API, and automatically generate the statement, very convenient.
Platform: | Size: 95232 | Author: limeng | Hits:

[OS programUFW

Description: 基于对话框的MFC优盘杀毒程序,运行程序时.有优盘插入时检测u盘里的autorun.inf-for(char cbNum= D cbNum<= Z cbNum++) //遍历可能的U盘盘符 { strdir.Empty() strdir.Format(" c:",cbNum) if(GetDriveType((LPCTSTR)strdir)==DRIVE_REMOVABLE)// 可移动的磁盘 { //-------设置扫描目录--------- strdir+="\\autorun.inf" WIN32_FIND_DATA FileData //-------搜索autorun.inf文件 HANDLE hSearch = FindFirstFile(strdir , &FileData) //如果U盘中发现了autorun.inf文件就中彩了 if (hSearch != INVALID_HANDLE_VALUE) { //复制病毒路径到全局变量 g_strFile=strdir ShowWindow(SW_SHOW) //如果发现病毒会自动显示程序主窗体 //把病毒路径复制到窗口上 SetDlgItemText(IDC_PATH,strdir) //使用PC机箱的扬声器报警 Beep(2500,500) //结束病毒扫描 KillTimer(0) //设置清除病毒按钮为可用 GetDlgItem(IDC_BTN_KILL)->EnableWindow(TRUE) } CloseHandle(hSearch) }
Platform: | Size: 27648 | Author: 韩宾 | Hits:

CodeBus www.codebus.net