VB6 code - using SHBrowseForFolder API Function - how to prevent access to network folders?

    Question by:
    On

    Topics:

    Hi Experts,

    I am using VB^ code (see article here:  http://www.codeguru.com/vb/controls/vb_shell/article.php/c3051/ ) that uses the SHBrowseForFolder API Function.

    How can I modify that code so that will either:

    a. hide network folders?, OR
    b. prevent access to network folders?

    I already suspect a simple solution is to check for folders that start with "\\", but I am hoping for a more sophisicated solution.

    Regards,
    Leigh

    Good Question?
    0
     

    ?

    The member who asked this question verified this comment provided the solution that solved their problem.

    Accepted Solution on 2008-08-27 at 05:49:48ID: 22324124

    You can just simply assign it:

    .pIDLRoot=CSIDL_DRIVES

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201511-LO-Qu-074

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    Rgonzo1971

    1

    Articles

    Expert in:

    • MS Excel
    • MS Office
    • MS Word
    • VB Script
    • Visual Basic Classic

    Martin Liss

    16

    Articles

    Expert in:

    • MS Excel
    • Visual Basic Classic
    • MS Office
    • VB Script
    • MS Applications

    Rey Obrero

    Expert in:

    • MS Access
    • Query Syntax
    • Visual Basic Classic
    • Databases
    • MS Applications

    Excel amusant

    Expert in:

    • MS Excel
    • VB Script

    sktneer

    Expert in:

    • MS Excel
    • MS Office
    • Visual Basic Classic

    Gustav Brock

    9

    Articles

    Expert in:

    • MS Access
    • Query Syntax
    • Databases
    • Visual Basic Classic
    • .NET Programming

    mlmcc

    Expert in:

    • Crystal Reports
    • .NET Programming
    • DB Reporting Tools
    • Visual Basic.NET
    • ASP.NET

    Big Monty

    Expert in:

    • ASP
    • JavaScript
    • ASP.NET
    • HTML
    • VB Script

    Abhigyan Srivastava

    Expert in:

    • .NET Programming
    • ASP.NET

    RELATED TOPICS view all topics

    1. MS Excel
      (125,078)
    2. VB Script
      (35,475)
    3. MS Access
      (214,001)
    4. .NET Programming
      (131,070)
    5. Visual Basic.NET
      (91,422)
    6. MS Development
      (48,689)
    7. Programming Languages
      (19,576)
    8. Programming
      (51,611)
    9. MS Office
      (55,897)
    10. MS Word
      (26,627)