[pso] [Tema1][win] intrebare alocare memorie pt noua KSDT
Alex Drenea
alexdrenea at gmail.com
Thu Apr 3 01:36:49 EEST 2008
Incearca in felul urmator :
Declara o noua structura sdt. Aloca memorie pentru acel nou sdt. Fa-l pe
KeSDT sa pointeze la noua structura alocata:
In cod ar fi ceva de genul
struct sdt newSDT;
newSDT.st = ExAllocatePool(NonPagedPool,(MY_SYSCALL_NO+1)*sizeof(void*));
WPOFF();
KeServiceDescriptorTable[0].st = newSDT.st; WPON();
Presupun ca vei mai vrea sa aloci si restul campurilor din SDT si poti sa
faci in acelasi mod.
Alex.
2008/4/3 Buciuc Victor <victor.buciuc at gmail.com>:
> Pai tu aloci spatiul da' nu copiezi nimc in el.
>
> 2008/4/2 georgi mania <georgi_mania at yahoo.com>:
>
> > salut
> >
> > am o problema la alocarea de memorie pentru noua KSDT:
> >
> > WPOFF();
> >
> > KeServiceDescriptorTable[0].st=ExAllocatePool(NonPagedPool,(MY_SYSCALL_NO+1)*sizeof(void*));
> > WPON();
> >
> > daca comentez alocarea pot adauga/scoate modulul. daca nu, imi da blue
> > screen.
> > stie cineva care ar putea fi problema?
> >
> > multumesc
> > georgiana
> >
> > ------------------------------
> > You rock. That's why Blockbuster's offering you one month of Blockbuster
> > Total Access<http://us.rd.yahoo.com/evt=47523/*http://tc.deals.yahoo.com/tc/blockbuster/text5.com>,
> > No Cost.
> > _______________________________________________
> > pso mailing list
> > pso at cursuri.cs.pub.ro
> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
> >
> >
>
>
> --
> Victor Buciuc
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080403/5812b058/attachment.htm
More information about the pso
mailing list