22 INT nPaddedLength = 35;
47 wHour = SystemTime.
wHour;
61 (SystemTime.
wHour >= 1 && SystemTime.
wHour < 13) ?
L"AM" :
L"PM");
115 if (StatisticsInfo !=
NULL)
118 if (ServerInfo !=
NULL)
135 INT nPaddedLength = 47;
140 (
PBYTE*)&WorkstationInfo);
148 (
LPBYTE*)&StatisticsInfo);
162 wHour = SystemTime.
wHour;
176 (SystemTime.
wHour >= 1 && SystemTime.
wHour < 13) ?
L"AM" :
L"PM");
237 if (StatisticsInfo !=
NULL)
240 if (WorkstationInfo !=
NULL)
260 if (bWorkstation ==
FALSE)
267 if (bServer ==
FALSE)
296 else if (bWorkstation)
static VOID PrintErrorMessage(DWORD dwError)
void ConPuts(FILE *fp, LPCWSTR psz)
void ConPrintf(FILE *fp, LPCWSTR psz,...)
VOID PrintNetMessage(DWORD dwMessage)
VOID PrintPaddedMessageString(DWORD dwMessage, INT nPaddedLength)
VOID PrintMessageStringV(DWORD dwMessage,...)
VOID PrintMessageString(DWORD dwMessage)
static INT DisplayServerStatistics(VOID)
static INT DisplayWorkstationStatistics(VOID)
INT cmdStatistics(INT argc, WCHAR **argv)
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
BOOL WINAPI FileTimeToLocalFileTime(IN CONST FILETIME *lpFileTime, OUT LPFILETIME lpLocalFileTime)
NET_API_STATUS WINAPI NetApiBufferFree(LPVOID Buffer)
NET_API_STATUS WINAPI NetStatisticsGet(_In_ LPWSTR server, _In_ LPWSTR service, _In_ DWORD level, _In_ DWORD options, _Out_ LPBYTE *bufptr)
NET_API_STATUS WINAPI NetServerGetInfo(LMSTR servername, DWORD level, LPBYTE *bufptr)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
NTSYSAPI VOID NTAPI RtlSecondsSince1970ToTime(_In_ ULONG SecondsSince1970, _Out_ PLARGE_INTEGER Time)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
Deprecated header file that includes net_sockets.h.
DWORD sts0_bytessent_high
DWORD sts0_bytesrcvd_high
LARGE_INTEGER StatisticsStartTime
LARGE_INTEGER SmbsTransmitted
DWORD InitiallyFailedOperations
LARGE_INTEGER BytesReceived
DWORD FailedCompletionOperations
LARGE_INTEGER BytesTransmitted
LARGE_INTEGER SmbsReceived
LPWSTR wki100_computername
struct _LARGE_INTEGER::@2299 u
NET_API_STATUS WINAPI NetWkstaGetInfo(_In_ LPWSTR servername, _In_ DWORD level, _Out_ LPBYTE *bufptr)