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. How to Create A Shared Folder

How to Create A Shared Folder

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialsysadminsecurityquestion
1 Posts 1 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.
  • F Offline
    F Offline
    f2
    wrote on last edited by
    #1

    i was surfing the whole noon just looking on how to create a shared folder over network with permission. i also couldn't found any example in MSDN. at last i found some code snippets on some forum.. anyone could give some code snippets? thanks in advanced. SECURITY_INFORMATION SecurityInformation; SecurityInformation = OWNER_SECURITY_INFORMATION; SECURITY_DESCRIPTOR SecurityDescriptor; ACL Acl; SID Sid; DWORD dwAclAllowed; dwAclAllowed = sizeof(ACCESS_ALLOWED_ACE) - sizeof(DWORD) + GetLengthSid(&Sid); InitializeAcl(&Acl, dwAclAllowed, ACL_REVISION); InitializeSecurityDescriptor(&SecurityDescriptor, SECURITY_DESCRIPTOR_REVISION); SetSecurityDescriptorOwner(&SecurityDescriptor, &Sid, TRUE); SetSecurityDescriptorGroup(&SecurityDescriptor, &Sid, TRUE); SetSecurityDescriptorDacl(&SecurityDescriptor, TRUE, &Acl, TRUE); SetSecurityDescriptorSacl(&SecurityDescriptor, TRUE, &Acl, TRUE); SetFileSecurity(strOCRDownloadFontLibPath, SecurityInformation, &SecurityDescriptor); from, -= aLbert =-

    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