ROOT 6.12/07 Reference Guide |
#include "Windows4Root.h"
#include "TWinNTSystem.h"
#include "TROOT.h"
#include "TError.h"
#include "TOrdCollection.h"
#include "TRegexp.h"
#include "TException.h"
#include "TEnv.h"
#include "TSocket.h"
#include "TApplication.h"
#include "TWin32SplashThread.h"
#include "Win32Constants.h"
#include "TInterpreter.h"
#include "TObjString.h"
#include "TVirtualX.h"
#include "TUrl.h"
#include <sys/utime.h>
#include <sys/timeb.h>
#include <process.h>
#include <io.h>
#include <direct.h>
#include <ctype.h>
#include <float.h>
#include <sys/stat.h>
#include <signal.h>
#include <stdio.h>
#include <errno.h>
#include <lm.h>
#include <dbghelp.h>
#include <Tlhelp32.h>
#include <sstream>
#include <iostream>
#include <list>
#include <shlobj.h>
#include <conio.h>
Macros | |
#define | BUFSIZE 80 |
#define | isin(address, start, length) ((address)>=(start) && (address)<(start)+(length)) |
#define | Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + (double)((x).LowPart)) |
#define | SM_SERVERR2 89 |
#define | SystemBasicInformation 0 |
#define | SystemPerformanceInformation 2 |
Typedefs | |
typedef void(WINAPI * | PGNSI) (LPSYSTEM_INFO) |
typedef struct _PROCESS_MEMORY_COUNTERS * | PPROCESS_MEMORY_COUNTERS |
typedef struct _PROCESS_MEMORY_COUNTERS | PROCESS_MEMORY_COUNTERS |
typedef LONG(WINAPI * | PROCNTQSI) (UINT, PVOID, ULONG, PULONG) |
Functions | |
static void | __cpuid (int *cpuid_data, int) |
__int64 | __rdtsc () |
void * | _ReturnAddress (void) |
__inline BOOL | DBL_BSLASH (LPCTSTR psz) |
Inline function to check for a double-backslash at the beginning of a string. More... | |
static DWORD | GetCPUSpeed () |
Calculate the CPU clock speed using the 'rdtsc' instruction. More... | |
static int | GetL2CacheSize () |
Use assembly to retrieve the L2 cache information ... More... | |
static char * | GetWindowsVersion () |
static void | GetWinNTCpuInfo (CpuInfo_t *cpuinfo, Int_t sampleTime) |
Get CPU stat for Window. More... | |
static void | GetWinNTMemInfo (MemInfo_t *meminfo) |
Get VM stat for Windows NT. More... | |
static void | GetWinNTProcInfo (ProcInfo_t *procinfo) |
Get process info for this process on Windows NT. More... | |
static void | GetWinNTSysInfo (SysInfo_t *sysinfo) |
Get system info for Windows NT. More... | |
void | Gl_setwidth (int width) |
BOOL | PathIsRoot (LPCTSTR pPath) |
check if a path is a root More... | |
BOOL | PathIsUNC (LPCTSTR pszPath) |
Returns TRUE if the given string is a UNC path. More... | |
Variables | |
const TCHAR | c_szColonSlash [] = TEXT(":\\") |
ULong_t | gConsoleWindow = 0 |
const Double_t | gTicks = 1.0e-7 |
static char | shellEscape = '\\' |
static char * | shellMeta = "~*[]{}?$%" |
static char * | shellStuff = "(){}<>\"'" |
#define BUFSIZE 80 |
Definition at line 5494 of file TWinNTSystem.cxx.
#define isin | ( | address, | |
start, | |||
length | |||
) | ((address)>=(start) && (address)<(start)+(length)) |
Definition at line 5462 of file TWinNTSystem.cxx.
#define SM_SERVERR2 89 |
Definition at line 5495 of file TWinNTSystem.cxx.
#define SystemBasicInformation 0 |
Definition at line 5421 of file TWinNTSystem.cxx.
#define SystemPerformanceInformation 2 |
Definition at line 5422 of file TWinNTSystem.cxx.
typedef void(WINAPI * PGNSI) (LPSYSTEM_INFO) |
Definition at line 5496 of file TWinNTSystem.cxx.
typedef struct _PROCESS_MEMORY_COUNTERS * PPROCESS_MEMORY_COUNTERS |
typedef struct _PROCESS_MEMORY_COUNTERS PROCESS_MEMORY_COUNTERS |
typedef LONG(WINAPI * PROCNTQSI) (UINT, PVOID, ULONG, PULONG) |
Definition at line 5460 of file TWinNTSystem.cxx.
|
static |
Definition at line 92 of file TWinNTSystem.cxx.
__int64 __rdtsc | ( | ) |
Definition at line 98 of file TWinNTSystem.cxx.
__inline BOOL DBL_BSLASH | ( | LPCTSTR | psz | ) |
Inline function to check for a double-backslash at the beginning of a string.
Definition at line 1976 of file TWinNTSystem.cxx.
|
static |
Calculate the CPU clock speed using the 'rdtsc' instruction.
RDTSC: Read Time Stamp Counter.
Definition at line 5468 of file TWinNTSystem.cxx.
|
static |
Use assembly to retrieve the L2 cache information ...
Definition at line 5725 of file TWinNTSystem.cxx.
|
static |
Definition at line 5500 of file TWinNTSystem.cxx.
Get CPU stat for Window.
Use sampleTime to set the interval over which the CPU load will be measured, in ms (default 1000).
Definition at line 5819 of file TWinNTSystem.cxx.
Get VM stat for Windows NT.
Definition at line 5908 of file TWinNTSystem.cxx.
|
static |
Get process info for this process on Windows NT.
Definition at line 5937 of file TWinNTSystem.cxx.
Get system info for Windows NT.
Definition at line 5743 of file TWinNTSystem.cxx.
void Gl_setwidth | ( | int | width | ) |
BOOL PathIsRoot | ( | LPCTSTR | pPath | ) |
check if a path is a root
returns: TRUE for "\" "X:\" "\\foo\asdf" "\\foo\" FALSE for others
Definition at line 2011 of file TWinNTSystem.cxx.
BOOL PathIsUNC | ( | LPCTSTR | pszPath | ) |
Returns TRUE if the given string is a UNC path.
TRUE "\\foo\bar" "\\foo" <- careful "\\" FALSE "\foo" "foo" "c:\foo"
Definition at line 1993 of file TWinNTSystem.cxx.
const TCHAR c_szColonSlash[] = TEXT(":\\") |
Definition at line 1999 of file TWinNTSystem.cxx.
ULong_t gConsoleWindow = 0 |
Definition at line 947 of file TWinNTSystem.cxx.
const Double_t gTicks = 1.0e-7 |
Definition at line 4354 of file TWinNTSystem.cxx.
|
static |
Definition at line 2884 of file TWinNTSystem.cxx.
|
static |
Definition at line 2882 of file TWinNTSystem.cxx.
|
static |
Definition at line 2883 of file TWinNTSystem.cxx.