Process/thread work and API fix into network APIs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,17 +65,17 @@ bool wxGetHostName(
|
|||||||
#if wxUSE_NET_API
|
#if wxUSE_NET_API
|
||||||
char zServer[256];
|
char zServer[256];
|
||||||
char zComputer[256];
|
char zComputer[256];
|
||||||
unsigned short nLevel = 0;
|
unsigned long ulLevel = 0;
|
||||||
unsigned char* zBuffer;
|
unsigned char* zBuffer;
|
||||||
unsigned short nBuffer;
|
unsigned long ulBuffer;
|
||||||
unsigned short* pnTotalAvail;
|
unsigned long* pulTotalAvail;
|
||||||
|
|
||||||
NetBios32GetInfo( (const unsigned char*)zServer
|
NetBios32GetInfo( (const unsigned char*)zServer
|
||||||
,(const unsigned char*)zComputer
|
,(const unsigned char*)zComputer
|
||||||
,nLevel
|
,ulLevel
|
||||||
,zBuffer
|
,zBuffer
|
||||||
,nBuffer
|
,ulBuffer
|
||||||
,pnTotalAvail
|
,pulTotalAvail
|
||||||
);
|
);
|
||||||
strcpy(zBuf, zServer);
|
strcpy(zBuf, zServer);
|
||||||
#else
|
#else
|
||||||
@@ -160,7 +160,7 @@ bool wxShell(
|
|||||||
SData.PgmTitle = PgmTitle;
|
SData.PgmTitle = PgmTitle;
|
||||||
SData.PgmName = zShell;
|
SData.PgmName = zShell;
|
||||||
|
|
||||||
// sInputs = "/C " + rCommand;
|
sInputs = "/C " + rCommand;
|
||||||
SData.PgmInputs = NULL; //(BYTE*)sInputs.c_str();
|
SData.PgmInputs = NULL; //(BYTE*)sInputs.c_str();
|
||||||
SData.TermQ = 0;
|
SData.TermQ = 0;
|
||||||
SData.Environment = 0;
|
SData.Environment = 0;
|
||||||
|
@@ -247,17 +247,17 @@ bool wxGetFullHostName(
|
|||||||
#if wxUSE_NET_API
|
#if wxUSE_NET_API
|
||||||
char zServer[256];
|
char zServer[256];
|
||||||
char zComputer[256];
|
char zComputer[256];
|
||||||
unsigned short nLevel = 0;
|
unsigned long ulLevel = 0;
|
||||||
unsigned char* zBuffer;
|
unsigned char* zBuffer;
|
||||||
unsigned short nBuffer;
|
unsigned long ulBuffer;
|
||||||
unsigned short* pnTotalAvail;
|
unsigned long* pulTotalAvail;
|
||||||
|
|
||||||
NetBios32GetInfo( (const unsigned char*)zServer
|
NetBios32GetInfo( (const unsigned char*)zServer
|
||||||
,(const unsigned char*)zComputer
|
,(const unsigned char*)zComputer
|
||||||
,nLevel
|
,ulLevel
|
||||||
,zBuffer
|
,zBuffer
|
||||||
,nBuffer
|
,ulBuffer
|
||||||
,pnTotalAvail
|
,pulTotalAvail
|
||||||
);
|
);
|
||||||
strncpy(zBuf, zComputer, nMaxSize);
|
strncpy(zBuf, zComputer, nMaxSize);
|
||||||
zBuf[nMaxSize] = _T('\0');
|
zBuf[nMaxSize] = _T('\0');
|
||||||
|
Reference in New Issue
Block a user