|
HOOK API-DeleteFile中遇到的问题?
亲,HOOK ShellExecuteA, typedef HINSTANCE (WINAPI *PFNSHELLEXECUTEA)(HWND hwnd,LPCSTR lpOperation,LPCSTR lpFile,LPCSTR lpParameters,LPCSTR lpDirectory,INT nShowCmd); PFNSHELLEXECUTEA TrueShellExecute=(PFNSHELLEXECUTEA)GetProcAddress(GetModuleHandle(L"shell32"),"ShellExecuteA"); HINSTANCE WINAPI HookShellExecute(HWND hwnd,LPCSTR lpOperation,LPCSTR lpFile,LPCSTR lpParameters,LPCSTR lpDirectory,INT nShowCmd) { return TrueShellExecute(hwnd,lpOperation,lpFile,lpParameters,lpDirectory,nShowCmd); } Mhook_SetHook((PVOID*)&TrueShellExecute,HookShellExecute); 这样运行时候弹出:应用程序初始化失败。。。。。调试发现是 GetProcAddress(GetModuleHandle(L"shell32"),"ShellExecuteA");这块的问题,这里如何调整呢,求指导 |
|
HOOK API-DeleteFile中遇到的问题?
经过测试,xp,win7可以hook,WIN8中连dll都没注入到那个进程 |
|
HOOK API-DeleteFile中遇到的问题?
亲,请问在WIN8上有效果么? |
|
[原创][原创]害怕IT猝死 害怕找不到老婆 所以我转行卖蜂蜜了
看了楼主的文章,我也很感动,因为最近我也在筹备卖肉夹馍赠送黄瓜的生意呢,就打算先从地铁站附近起步,客流量大,月入上万还是OK的,最后补充一下,女生买我的肉夹馍我才赠送黄瓜的。 |
|
HOOK API-DeleteFile中遇到的问题?
桌面上的2345.txt文件, Section "MainSection" SEC01 点击安装的时候进行删除文件操作的。 |
|
WIN7(32位)、WIN8上面OK,XP下面无效?
感谢hwangbae提供的一系列思路,通过把窗口嵌入到SHELLDLL_DefView中可以实现上述需要!已搞定。 |
|
[求助]WIN7 64位上如何打开开机启动项?(代码)
感谢HwanBaw提供的资料,搞定了,WIN7 64位上有UAC重定向,参考文档: http://msdn.microsoft.com/en-us/library/aa384187.aspx |
|
[求助]SHFileOperation在WIN7上跟XP上的区别?
用变相的方式解决了这个问题,重命名前判断是否存在这样的文件(夹)然后再进行SHFileOperation操作,thanks all the same,simida! |
|
[求助]SHFileOperation在WIN7上跟XP上的区别?
我在WIN7上是以管理员权限运行的,效果一样,WIN7上照样弹出:重命名成功,I don't konw why,please tell me!thanks all the same. |
|
[求助]关于ShellExecute如何打开文件关联后的文件?
虽然已经解决但还是附带追问一下吧: 用AssocQueryString获取.ico,.jpg等图片格式的关联程序,返回结果是 C:\\WINDOWS\\system32\\shimgvw.dll,用这个打不开ico,jpg格式的图片图标呢,也晓得注册表中是rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %1,想用AssocQueryString写个通用的,结果其他格式的貌似都可以,比如.zip,.doc等,但.jpg.bmp.ico却不满足,这个不晓得是否有办法? |
|
[求助]关于ShellExecute如何打开文件关联后的文件?
灰常感谢,PathQuoteSpaces |
|
[求助]关于ShellExecute如何打开文件关联后的文件?
[QUOTE=wertyuyuyu;1181467]那这样行不,我也没测试,理论上可行。真是有缘啊,我回答你好几个问题了 TCHAR szPath[MAX_PATH]; DWORD cchPath; cchPath = MAX_PATH; AssocQueryString(0, ASSOCSTR_EXECU...[/QUOTE] 缘分啊,首先感谢亲。另外我发现了一个ShllExecute的问题,麻烦亲给解释一下: 本机测试代码: ShellExecute(NULL,_T("open"),_T("C:\\Program Files\\Microsoft Office\\Office12\\WINWORD.EXE"),_T("[COLOR="Red"]C:\\Documents and Settings[/COLOR]\\Administrator\\桌面\\KP520_bug.wps"),NULL,SW_SHOWNORMAL); DWORD error=GetLastError(); 结果,打开了word,但是提示什么找不到文件,目录名无效等错误。 后来又测试了: ShellExecute(NULL,_T("open"),_T("C:\\Program Files\\Microsoft Office\\Office12\\WINWORD.EXE"),_T("C:\\234.docx"),NULL,SW_SHOWNORMAL); 发现是可以正常打开的,经过思考测试,发现问题出在了参数中不能有空格(C:\\Documents and Settings),我的系统是xp 用了很多ShellExecute,都换成CreateProcess成本有点高,所以你看看有啥方式解决这个问题吗,xp桌面路径中包含空格也是客观事实。。。。。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值