: error C2664: 'NetShareEnum' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetServerDiskEnum' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetWkstaGetInfo' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetServerGetInfo' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetSessionEnum' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetServerTransportEnum' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetServerDiskEnum' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetWkstaGetInfo' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetServerGetInfo' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetSessionEnum' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
: error C2664: 'NetServerTransportEnum' : cannot convert parameter 1 from 'unsigned short [18]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
state = NetServerGetInfo(A2W(name), 101, &p101);
NetShareEnum(
LPWSTR servername,
DWORD level,
LPBYTE* bufptr,
DWORD prefmaxlen,
LPDWORD entriesread,
LPDWORD totalentries,
LPDWORD resume_handle
);