Hello

In user mode, when you set sharing on a directory the NetShareAdd
function is called.
What function is called in kernel mode when you share a directory?

When ZwCreateFile is called due to directory access, is there any way
to know if the directory is shared?

Thanks

Re: NetShareAdd() In Kernel Mode by Arkady

Arkady
Mon Mar 21 07:33:26 CST 2005

Nt(Zw)OpenDirectoryObject() and
Nt(Zw)QueryD­irectoryObject will show you all drives including shared]


Arkady


"sharon sahar" <sharon.sahar@gmail.com> wrote in message
news:1111404698.827878.132090@f14g2000cwb.googlegroups.com...
> Hello
>
> In user mode, when you set sharing on a directory the NetShareAdd
> function is called.
> What function is called in kernel mode when you share a directory?
>
> When ZwCreateFile is called due to directory access, is there any way
> to know if the directory is shared?
>
> Thanks
>