首页
社区
课程
招聘
[求助]PsGetProcessImageFileName引用失败
发表于: 2013-8-10 23:19 8317

[求助]PsGetProcessImageFileName引用失败

2013-8-10 23:19
8317
我照大神的方法定义,但是还是出错,请问为什么啊。
NTKERNELAPI UCHAR * PsGetProcessImageFileName(__in PEPROCESS Process);
下面是错误提示:
1>1>hook.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned char * __stdcall PsGetProcessImageFileName(struct _EPROCESS *)" (__imp_?PsGetProcessImageFileName@@YGPAEPAU_EPROCESS@@@Z) referenced in function "long __stdcall FuckSecurityProcedure(void *,enum _SECURITY_OPERATION_CODE,unsigned long *,void *,unsigned long *,void * *,enum _POOL_TYPE,struct _GENERIC_MAPPING *,unsigned long)" (?FuckSecurityProcedure@@YGJPAXW4_SECURITY_OPERATION_CODE@@PAK02PAPAXW4_POOL_TYPE@@PAU_GENERIC_MAPPING@@K@Z)
1>1>c:\ddkfile\hook\hook\hook.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned char * __stdcall PsGetProcessImageFileName(struct _EPROCESS *)" (__imp_?PsGetProcessImageFileName@@YGPAEPAU_EPROCESS@@@Z) referenced in function "long __stdcall FuckSecurityProcedure(void *,enum _SECURITY_OPERATION_CODE,unsigned long *,void *,unsigned long *,void * *,enum _POOL_TYPE,struct _GENERIC_MAPPING *,unsigned long)" (?FuckSecurityProcedure@@YGJPAXW4_SECURITY_OPERATION_CODE@@PAK02PAPAXW4_POOL_TYPE@@PAU_GENERIC_MAPPING@@K@Z)
1>1>c:\ddkfile\hook\hook\objchk_wxp_x86\i386\Hook.sys : fatal error LNK1120: 1 unresolved externals
1>1>c:\ddkfile\hook\hook\objchk_wxp_x86\i386\hook.sys : error LNK1120: 1 unresolved externals

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 261
活跃值: (547)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
2
extern
2013-9-19 23:39
0
雪    币: 541
活跃值: (654)
能力值: ( LV12,RANK:250 )
在线值:
发帖
回帖
粉丝
3
extern "C"
2013-9-20 00:47
0
雪    币: 45
活跃值: (339)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
困扰了我一个小时的问题解决了,十分感谢
2013-12-25 13:20
0
游客
登录 | 注册 方可回帖
返回
//