NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED)
vasilwnag opened this issue · comments
WNAG commented
when use this library to get share forder on win10 smb2 , I get this exception NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED)
WNAG commented
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 commented
@vasilwnag I opened #30 to address this.