your help urgently required...

A

anil

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 * KeGetCurrentKPCR(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_Desktop\Desktop\SnoopyProSrc\SnoopyPro\wind dk.h(124): error
C2065: '__asm__' : undeclared identifier
2.c:\Documents and
Settings\ANil_Desktop\Desktop\SnoopyProSrc\SnoopyPro\wind dk.h(124): error
C2146: syntax error : missing ';' before identifier '__vola tile__'
3.c:\Documents and
Settings\ANil_Desktop\Desktop\SnoopyProSrc\SnoopyPro\wind dk.h(125): error
C2143: syntax error : missing ')' before ':'
4.c:\Documents and
Settings\ANUPAMA_Desktop\Desktop\SnoopyProSrc\SnoopyPro\w inddk.h(127):
error C2059: syntax error : ')'
5.c:\Documents and Settings\ANUPAMA_Desktop\Desktop\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
 
B

Bruno van Dooren

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 * KeGetCurrentKPCR(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_Desktop\Desktop\SnoopyProSrc\SnoopyPro\wind dk.h(124):
error C2065: '__asm__' : undeclared identifier
2.c:\Documents and
Settings\ANil_Desktop\Desktop\SnoopyProSrc\SnoopyPro\wind dk.h(124):
error C2146: syntax error : missing ';' before identifier '__vola tile__'
3.c:\Documents and
Settings\ANil_Desktop\Desktop\SnoopyProSrc\SnoopyPro\wind dk.h(125):
error C2143: syntax error : missing ')' before ':'
4.c:\Documents and
Settings\ANUPAMA_Desktop\Desktop\SnoopyProSrc\SnoopyPro\w inddk.h(127):
error C2059: syntax error : ')'
5.c:\Documents and Settings\ANUPAMA_Desktop\Desktop\SnoopyP
roSrc\SnoopyPro\w inddk.h(124): error C3861: '__volatile__': identifier
not found,

Alex already answered your question yesterday in the other newsgroup. I
added some advise afterwards.
you should follow up on that thread, instead of just posting your question
here.

if you do feel that you did not get a satisfying answer, you could post your
question on
microsoft.public.development.device.drivers
which is the correct group for that.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top