views:

274

answers:

1

I have a shared folder (New Folder) in a remote pc with current users (user1 and user2). When I try to access the shared folder with the ff credentials in a program, the GetLastError API returns 5 but I expect that GetLastError API should return 1326.

path: \\PC1\New Folder
user: 12345
pwd: 12345

Please explain to me the difference. Thank you.

A: 

Seems like you have the wrong path. Should it not be \\PC1\New Folder? That still does not explain the error code, so we need to look at the code to access the folder (atleast).

Moron