阅读:1033回复:0
请高手看一下这段代码在WIN2003中应该怎么修改?
ULONG GetProcessNameOffset ( void )
{ PEPROCESS curproc; int i = 0; curproc = PsGetCurrentProcess(); for ( i = 0; i < 3 * PAGE_SIZE; i++ ) { if( !strncmp( "System", (PCHAR)curproc + i, strlen("System") )) { return i; } } return 0; } 上面的代码在WIN2003中始终返回0,应该怎样改? 谢谢. |
|