Here's the output of building the netapi32 tests under MSVC with MSVC headers. I don't get those warnings with Wine's headers.
Deleting intermediate files and output files for project 'winetest - Win32 MSVC Headers'. Deleting intermediate files and output files for project 'netapi32_test - Win32 MSVC Headers'. --------------------Configuration: winetest - Win32 MSVC Headers-------------------- Performing Custom Build Step on .\include\wine\unicode.h 1 fichier(s) copi‚(s). Performing Custom Build Step on .\include\wine\test.h 1 fichier(s) copi‚(s). Performing Custom Build Step on .\include\wine\exception.h 1 fichier(s) copi‚(s). --------------------Configuration: netapi32_test - Win32 MSVC Headers-------------------- Compiling... access.c apibuf.c wksta.c c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(76) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(79) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(85) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(85) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(89) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(90) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(91) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(92) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(98) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(98) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' c:\tt\wine-20021210-1430\dlls\netapi32\tests\wksta.c(102) : warning C4133: 'function' : incompatible types - from 'char *' to 'const unsigned short *' testlist.c Generating Code... Linking...
netapi32_test.exe - 0 error(s), 11 warning(s)
Seems the definition of lstr*W is different, but I couldn't find any differences in header files. Both define lstr*W(LPCWSTR[,LPCWSTR]). Also, the arguments are really unsigned short * (at least it's what MSDEV tells me when I hoover over them).
Vincent