[pso] [PSO1][Win] UserAdmin()

ionut balosin shmennen at yahoo.com
Fri Mar 9 19:15:15 EET 2007


Octavian Purdila <tavi at cs.pub.ro> wrote: On Thursday 08 March 2007 16:47, ionut balosin wrote:
> 
>  Salut,
>       
> functia UserAdmin() imi intoarce FALSE (0) in toate cazurile. Intoarce 0 atat in my_syscall() cat si in functia DriverEntry().
> 
> Cum pot rezolva aceasta problema ?
> 

Salut,

Verifica ca iti compilezi tema cu enviromentul de 2003 si nu de xp.

tavi
Salut,

da, compilez cu environmentul de 2003. Am atasat mai jos continutul  makefile-urilor + modalitatea de  compilare si rulare a testului. 

Continut Makefile:
!ifdef NTMAKEENV
!include  $(NTMAKEENV)\makefile.def
!else
DDK=C:\WINDDK\3790.1830
kbuild: 
    -del $(DDK)\build.dat  
    pushd . & $(DDK)\bin\setenv.bat $(DDK) chk wnet & @echo on & popd & build -cZ
!endif

Continut NMakefile.checker:
#anybody cares to fix the warnings?
build:
    cl  _test/test.c /link advapi32.lib > errors 

run: build
    test

Setare Environment + Compilare + Rulare test:
"\program files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" && "\program files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.cmd" /SRV32 && nmake

"\program files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" && "\program files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.cmd" /SRV32 && nmake -f NMakefile.checker run

Rezultatul functiei UserAdmin() este acelasi, respectiv tot timpul FALSE  (0).

   Daca a mai intampinat cineva problema asta si a rezolvat-o il rog sa imi comunice si mie solutia.


                                                             Multumesc.
 
---------------------------------
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070309/2ab2b20f/attachment.html


More information about the pso mailing list