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. C / C++ / MFC
  4. network share

network share

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelpsysadminjsontutorial
2 Posts 2 Posters 1 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.
  • O Offline
    O Offline
    orcun colak
    wrote on last edited by
    #1

    I have a remote Win 2K computer on my network which is sharing two folders and these folders are writable to me because I can create files within them. However, when I call NetShareGetInfo ("Path",502,etc. etc.) I get "Access Denied" error because according to documentation I have to be member of admin group on the remote computer. My question is how can I understand if a share is writable or not ? I tried to use GetFileSecurity API but I failed because it is too complicated for me. I could not understand how to use it. Which API I should be using and how ? Can somebody help me with this please. Thanks, Orcun Colak

    M 1 Reply Last reply
    0
    • O orcun colak

      I have a remote Win 2K computer on my network which is sharing two folders and these folders are writable to me because I can create files within them. However, when I call NetShareGetInfo ("Path",502,etc. etc.) I get "Access Denied" error because according to documentation I have to be member of admin group on the remote computer. My question is how can I understand if a share is writable or not ? I tried to use GetFileSecurity API but I failed because it is too complicated for me. I could not understand how to use it. Which API I should be using and how ? Can somebody help me with this please. Thanks, Orcun Colak

      M Offline
      M Offline
      Mukkie
      wrote on last edited by
      #2

      Hello! Try to use SHPathPrepareForWrite GetAttributesOf SHGetFileInfo with SHGFI_ATTRIBUTES Have a nice day

      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