Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a C++ Expert!

Join 244,288 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 986 people online right now. Registration is fast and FREE... Join Now!




NetShareAdd creates shared folders but access is denied from remote co

 
Reply to this topicStart new topic

NetShareAdd creates shared folders but access is denied from remote co

talkapon
25 Nov, 2008 - 02:41 AM
Post #1

New D.I.C Head
*

Joined: 25 Nov, 2008
Posts: 1

I am trying to use NetShareAdd to create shared folders. The function call succeeds and the shared folder is seen on the remote computer. However, when trying to open a file or a sub-folder, you get "Access Denied". Note that when you share the folder manually, everything works fine.
CODE

    SHARE_INFO_2 shareInfo;
    DWORD parm_err = 0;
    NET_API_STATUS res;

                // Fill out rhw SHARE_INFO_2 structure

    BOOL res = NetShareAdd(NULL,2,(LPBYTE)&shareInfo, &parm_err);




User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic

Time is now: 7/4/09 03:30PM

Live C++ Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month