hmmm, irgendwie verwirrend
MSDN:
The WNetEnumResource function does not enumerate users connected to a share; you can call the NetConnectionEnum function to accomplish this task. To enumerate hidden shares, call the NetShareEnum function.
Delphi Hilfe:
The NetConnectionEnum function is obsolete. It is provided only for compatibility with LAN Manager and 16-bit versions of Windows.
Win32-based applications should use the WNetEnumResource function.