13 #ifndef ROOT_TWinNTSystem 14 #define ROOT_TWinNTSystem 29 #if !defined(__CINT__) 34 struct WIN32_FIND_DATA;
35 typedef void* HIMAGELIST;
42 #define MAX_SID_SIZE 1024 44 #define MAX_NAME_STRING 1024 72 typedef Bool_t (*ThreadMsgFunc_t)(MSG*);
92 Bool_t CountMembers(
const char *lpszGroupName);
93 const char *GetLinkedLibraries();
95 Long_t LookupSID (
const char *lpszAccountName,
int what,
int &groupIdx,
int &memberIdx);
96 Bool_t CollectMembers(
const char *lpszGroupName,
int &groupIdx,
int &memberIdx);
99 void DoBeep(
Int_t freq=-1,
Int_t duration=-1)
const;
103 void FillWithHomeDirectory(
const char *userName,
char *mydir)
const;
104 char *GetWorkingDirectory(
char driveletter)
const;
108 static int WinNTUnixConnect(
int port);
109 static int WinNTUnixConnect(
const char *path);
110 static int WinNTUdpConnect(
const char *hostname,
int port);
118 Bool_t HandleConsoleEvent();
122 const char *BaseName(
const char *
name);
123 void SetProgname(
const char *name);
124 const char *GetError();
125 const char *HostName();
128 void SetGUIThreadMsgHandler(ThreadMsgFunc_t
func);
129 void NotifyApplicationCreated();
155 int Exec(
const char *shellcmd);
156 FILE *OpenPipe(
const char *shellcmd,
const char *mode);
157 int ClosePipe(FILE *pipe);
159 void Abort(
int code = 0);
163 const char *Getenv(
const char *name);
164 void Setenv(
const char *name,
const char *value);
168 int MakeDirectory(
const char *name);
169 Bool_t ChangeDirectory(
const char *path);
170 const char *GetDirEntry(
void *dirp);
171 const char *DirName(
const char *pathname);
172 void FreeDirectory(
void *dirp);
173 void *OpenDirectory(
const char *name);
174 const char *WorkingDirectory(
char driveletter);
175 const char *WorkingDirectory();
176 std::string GetWorkingDirectory()
const;
177 const char *HomeDirectory(
const char *userName=0);
178 std::string GetHomeDirectory(
const char *userName=0)
const;
179 const char *TempDirectory()
const;
180 FILE *TempFileName(
TString &base,
const char *dir = 0);
183 Int_t GetUid(
const char *user = 0);
185 Int_t GetEffectiveUid();
186 Int_t GetEffectiveGid();
193 const char DriveName(
const char *pathname=
"/");
194 const char *PrependPathName(
const char *dir,
TString& name);
196 char *ExpandPathName(
const char *path);
198 Bool_t IsPathLocal(
const char *path);
199 Bool_t IsAbsoluteFileName(
const char *dir);
200 int CopyFile(
const char *from,
const char *to,
Bool_t overwrite =
kFALSE);
201 int Rename(
const char *from,
const char *to);
202 int Link(
const char *from,
const char *to);
203 int Symlink(
const char *from,
const char *to);
204 int Unlink(
const char *name);
205 int SetNonBlock(
int fd);
206 int GetPathInfo(
const char *path,
FileStat_t &buf);
210 int Umask(
Int_t mask);
211 int Utime(
const char *file,
Long_t modtime,
Long_t actime);
212 const char *UnixPathName(
const char *unixpathname);
220 void AddDynamicPath(
const char *dir);
221 const char *GetDynamicPath();
222 void SetDynamicPath(
const char *path);
224 int Load(
const char *module,
const char *entry =
"",
Bool_t system =
kFALSE);
225 const char *GetLibraries(
const char *regexp =
"",
226 const char *option =
"",
231 void AddTimer(
TTimer *ti);
233 void Sleep(
UInt_t milliSec);
238 int ConnectService(
const char *servername,
int port,
int tcpwindowsize,
const char *protocol =
"tcp");
242 int GetServiceByName(
const char *service);
243 char *GetServiceByPort(
int port);
244 int OpenConnection(
const char *server,
int port,
int tcpwindowsize = -1,
const char *protocol =
"tcp");
245 int AnnounceTcpService(
int port,
Bool_t reuse,
int backlog,
int tcpwindowsize = -1);
246 int AnnounceUdpService(
int port,
int backlog);
247 int AnnounceUnixService(
int port,
int backlog);
248 int AnnounceUnixService(
const char *sockpath,
int backlog);
249 int AcceptConnection(
int sock);
251 int RecvRaw(
int sock,
void *buffer,
int length,
int flag);
252 int SendRaw(
int sock,
const void *buffer,
int length,
int flag);
253 int RecvBuf(
int sock,
void *buffer,
int length);
254 int SendBuf(
int sock,
const void *buffer,
int length);
255 int SetSockOpt(
int sock,
int opt,
int val);
256 int GetSockOpt(
int sock,
int opt,
int *val);
void * GetGUIThreadHandle() const
WIN32_FIND_DATA fFindFileData
RooCmdArg Link(const char *state, RooAbsData &data)
This class represents an Internet Protocol (IP) address.
static void ThreadStub(void *Parameter)
Basic time type with millisecond precision.
#define ClassDef(name, id)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
R__EXTERN ULong_t gConsoleWindow
struct passwd * fPasswords
ULong_t GetGUIThreadId() const
Handles synchronous and a-synchronous timer events.
RooCmdArg Rename(const char *suffix)
double func(double *x, double *p)
Abstract base class defining a generic interface to the underlying Operating System.