The NetUseEnum function is obsolete. It is provided only for compatibility with 16-bit versions of Windows. Win32-based applications should use the WNetEnumResource function.
Code: