Hi Konstantin,
- providerTable->table[index].dwEnumScopes & dwScope) + providerTable->table[index].dwEnumScopes & WNNC_ENUM_GLOBAL)
This change looks correct, but it should be changed in the next block as well:
ret = providerTable->table[index].openEnum( dwScope, dwType, dwUsage, lpNet, &handle);
It also looks incorrect in _enumerateGlobalPassthroughW: ret = providerTable->table[enumerator->providerIndex]. openEnum(enumerator->dwScope, enumerator->dwType, enumerator->dwUsage, enumerator->lpNet, &enumerator->handle);
In fact, all of these usages of dwScope look to confuse the two meanings. (D'oh.) --Juan