Hi. Whenever I try to compile Network Management functions of windows api, like NetWkstaSetInfo or NetShareEnum, I receive a build error like "undefined reference to 'NetWkstaSetInfo@16' ". The @16 always comes appended to the function name, maybe it refers to 16-bits versions?
The _WIN32_WINNT constant have already been set to 0x500 and a #pragma comment(lib, "netapi32.lib") line inserted, but none solved my problem. By the way, I searched my computer for the netapi32.lib file and couldn't find it. Is it necessary to install the SDK for these calls to work? I can use windows.h and call many Windows API functions already.
Bookmarks