hello all
i am anil kumar, pursuing master's degree in Computer applications . now i
have got some opensource project. that is related to USB sniffing. tha t
is snoopypro. Actalluy this is developed under Microsoft visual c++. i
am getting the folloeing problems at following code. can u update me
please,
this code atuclly in winddk.h
static __inline struct _KPCR * KeGetCurrentKPC R(VOID)
{ULONG Value;
__asm__ __volatile__ ("movl %%fs:0x18, %0\n\t"
: "=r" (Value)
: /* no inputs
/ );
return (struct _KPCR *) Value;}
errors: 1.c:\Documents and
Settings\ANil_D esktop\Desktop\ SnoopyProSrc\Sn oopyPro\wind dk.h(124): error
C2065: '__asm__' : undeclared identifier
2.c:\Documents and
Settings\ANil_D esktop\Desktop\ SnoopyProSrc\Sn oopyPro\wind dk.h(124): error
C2146: syntax error : missing ';' before identifier '__vola tile__'
3.c:\Documents and
Settings\ANil_D esktop\Desktop\ SnoopyProSrc\Sn oopyPro\wind dk.h(125): error
C2143: syntax error : missing ')' before ':'
4.c:\Documents and
Settings\ANUPAM A_Desktop\Deskt op\SnoopyProSrc \SnoopyPro\w inddk.h(127):
error C2059: syntax error : ')'
5.c:\Documents and Settings\ANUPAM A_Desktop\Deskt op\SnoopyP
roSrc\SnoopyPro \w inddk.h(124): error C3861: '__volatile__': identifier not
found,
even with argument-dependent lookup and some other warnings.
if anybody know correct solution , i require it urgently.
i think here we need inputs. If you identify those inputs, we can
solve(i think).
plz suggest me.. i will wait for your replies.
thank u all for spending time to read it...
P.V.S.ANIL KUMAR