CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    111

    bkock a user from accessing a fil

    Hi,

    I have an application which will notify me whenever any user accessing any file in my machine through network. ( I used NetFileEnum API for this )

    Now I like to add one more feature to my application. That is to block a user from accessing any files in my machine.

    1) Is there any API for to block a user from accessing my machine.
    2) or I have to close the session, by checking in regular intervals that if the user connected to my machine is a blockable user.

    pls help.

    If there is any Idea for this pls help.

    Ajay

  2. #2
    Join Date
    Jan 2005
    Posts
    111

    Re: bkock a user from accessing a fil

    any one please help

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: bkock a user from accessing a fil

    Maybe I don't understand this fully but why not use standard user rights and/or audit?

  4. #4
    Join Date
    Jan 2005
    Posts
    111

    Re: bkock a user from accessing a fil

    Hi,
    I deveolped an application to display the files on my machine which are being accessed by another machines.

    So with my application I can know which machine access which file in my machine. Now I like to block that user from accessing that file on my machine.

    I had tried by clossing the opened session( using NetFileClose()). Even if the session clossed still the other machine can access that file in may machine.

    Do u have any idea abt this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured