Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED) #24

Closed
vasilwnag opened this issue Oct 26, 2017 · 2 comments
Closed

NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED) #24

vasilwnag opened this issue Oct 26, 2017 · 2 comments

Comments

@vasilwnag
Copy link

vasilwnag commented Oct 26, 2017

when use this library to get share forder on win10 smb2 , I get this exception NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED)

@vasilwnag
Copy link
Author

vasilwnag commented Oct 26, 2017

I have solved this problem, edit ServerService.java
final NetrShareEnumRequest request = new NetrShareEnumRequest(2, resumeHandle.getValue());
to
final NetrShareEnumRequest request = new NetrShareEnumRequest(1, resumeHandle.getValue());
but why is this ok???

@bli-r7
Copy link
Contributor

bli-r7 commented Nov 2, 2017

@vasilwnag I opened #30 to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants