Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. BIF_RETURNFSANCESTORS in BROWSEINFO - what does it really mean?

BIF_RETURNFSANCESTORS in BROWSEINFO - what does it really mean?

Scheduled Pinned Locked Moved Windows API
csharpasp-netquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Charles Oppermann
    wrote on last edited by
    #1

    I'm familiar with the MSDN documentation on the flag, but can't really figure out a difference when I have:

    BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_UAHINT | BIF_RETURNFSANCESTORS

    Does BIF_RETURNONLYFSDIRS imply BIF_RETURNFSANCESTORS?

    /* Charles Oppermann */ http://weblogs.asp.net/chuckop

    P 1 Reply Last reply
    0
    • C Charles Oppermann

      I'm familiar with the MSDN documentation on the flag, but can't really figure out a difference when I have:

      BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_UAHINT | BIF_RETURNFSANCESTORS

      Does BIF_RETURNONLYFSDIRS imply BIF_RETURNFSANCESTORS?

      /* Charles Oppermann */ http://weblogs.asp.net/chuckop

      P Offline
      P Offline
      Paul M Watt
      wrote on last edited by
      #2

      It appears that the set of files that are returned between the two will be similar, but they are not the same. BIF_RETURNONLYFSDIRS only returns FOLDERS that are part of the users local file-system. I am not sure if this flag will prevent the root directory from being selected or not. This flag will also allow certain network share directories to be returned. BIF_RETURNFSANCESTORS definitely excludes the root dir, which might be the difference between the two flags, and this flag also excludes the use of certain network shares. That's my interpretation, hopefully it helps.

      C 1 Reply Last reply
      0
      • P Paul M Watt

        It appears that the set of files that are returned between the two will be similar, but they are not the same. BIF_RETURNONLYFSDIRS only returns FOLDERS that are part of the users local file-system. I am not sure if this flag will prevent the root directory from being selected or not. This flag will also allow certain network share directories to be returned. BIF_RETURNFSANCESTORS definitely excludes the root dir, which might be the difference between the two flags, and this flag also excludes the use of certain network shares. That's my interpretation, hopefully it helps.

        C Offline
        C Offline
        Charles Oppermann
        wrote on last edited by
        #3

        Thanks for the info, but I can't reproduce.

        Paul Watt wrote:

        BIF_RETURNFSANCESTORS definitely excludes the root dir, which might be the difference between the two flags, and this flag also excludes the use of certain network shares.

        With these flags, I do get root directories (C:\ for example):

        BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_UAHINT | BIF_RETURNFSANCESTORS

        Weird, huh? Thanks anyway. I'm not blocked by this problem thankfully.

        /* Charles Oppermann */ http://weblogs.asp.net/chuckop

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups