[pso] ZwOpenFile access denied

Grigore Ovidiu pso@cursuri.cs.pub.ro
Sat, 30 Apr 2005 01:52:50 -0700 (PDT)


  C:\file0 , asadar sirul ascii este "\\??\\C:\\file0"
care este apoi convertit in Unicode - unicodeName.

--- Razvan Hobeanu <mindphobia@yahoo.com> wrote:
> Si ce fisier incerci sa deschizi?
> 
> --- Grigore Ovidiu <ovidiugrigore@yahoo.com> wrote:
> > 
> >   Am urmatoarea problema : in rutina firului de
> > executie incerc sa deschid fisierul corespunzator
> cu
> > ZwOpenFile dar imi intoarce codul de eroare
> c0000022
> > (
> > STATUS_ACCESS_DENIED ) . Stiu ca numele fisierului
> > este dat corect pentru ca altfel mi-ar intoarce
> > STATUS_OBJECT_PATH_INVALID . Codul este :
> >                                                   
>  
> >  
> >    
> > InitializeObjectAttributes(&objectAttributes,     
>  
> >  
> >      &unicodeName, OBJ_KERNEL_HANDLE, NULL, NULL);
> > 
> > status=ZwOpenFile(&handle, GENERIC_ALL,
> > &objectAttributes,&statusBlock,
> > FILE_SHARE_READ|FILE_SHARE_WRITE, 0);
> > 
> > Trebuie sa setez drepturi de acces pe undeva ?
> > 
> >                                    Multumesc
> > anticipat,
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> _______________________________________________
> pso mailing list
> pso@cursuri.cs.pub.ro
>
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com