Windows NT/2000/XP: The parameter order is as follows.NET_API_STATUS NetShareEnum(
  LPWSTR servername,     
  DWORD level,           
  LPBYTE *bufptr,        
  DWORD prefmaxlen,      
  LPDWORD entriesread,   
  LPDWORD totalentries,  
  LPDWORD resume_handle  
);
Windows 95/98/Me: The calling application must use the cbBuffer parameter to specify the size, in bytes, of the information buffer pointed to by the pbBuffer parameter. (The cbBuffer parameter replaces the Windows NT/Windows 2000/Windows XP prefmaxlen parameter.) A resume handle parameter is not available on this platform. Therefore, the parameter list is as follows. extern API_FUNCTION
 NetShareEnum(
  const char FAR * pszServer,         
  short sLevel,                       
  char FAR * pbBuffer,                
  unsigned short  cbBuffer,           
  unsigned short FAR * pcEntriesRead, 
  unsigned short FAR * pcTotalAvail   
);