http://www.ousob.com --- Legacy Redefined #include <extend50.h> #include <nwconn.h> #include <nit.h> CLIPPER b_conusage() { int ccode, structSize = 256; WORD connID, connNumber; char server[48]; CONN_USAGE CU; _reta(2); if( (connNumber = GetConnectionNumber()) == 0 ) { _ret(); return; } connID = GetDefaultConnectionID(); GetFileServerName(connID,server); ccode = GetConnectionID(server,&connID); ccode = GetConnectionUsageStats( connID, connNumber, structSize, &CU); _stornl( (long)CU.systemElapsedTime, -1, 1); _stornl( (long)CU.totalRequestPackets, -1, 2); _ret(); }