-#if wxUSE_NET_API
- char zServer[256];
- char zComputer[256];
- unsigned short nLevel = 0;
- unsigned char* zBuffer;
- unsigned short nBuffer;
- unsigned short* pnTotalAvail;
-
- NetBios32GetInfo( (const unsigned char*)zServer
- ,(const unsigned char*)zComputer
- ,nLevel
- ,zBuffer
- ,nBuffer
- ,pnTotalAvail
- );
- strncpy(zBuf, zComputer, nMaxSize);
- zBuf[nMaxSize] = _T('\0');
-#else
- strcpy(zBuf, "noname");
-#endif
- return *zBuf ? TRUE : FALSE;
- return TRUE;