-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtools.h
More file actions
23 lines (18 loc) · 797 Bytes
/
tools.h
File metadata and controls
23 lines (18 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef ToolsH
#define ToolsH
// ---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <IdComponent.hpp>
// ---------------------------------------------------------------------------
String tl_GetModuleName(); // .exe full path
String tl_GetProgramPath(); // including trailing '\'
typedef void(__closure * FTCdef)(const String);
void tl_RunInMainThread(FTCdef FuncToCall, const String fP1);
String BytesToHexStr(unsigned char *bytes, int count);
String BytesToHexStr(const TIdBytes &bytes);
void t_RunProcess(String runcmd);
String t_GetGateways();
inline int t_Max(int n1, int n2);
void t_SetScrollWidth(TListBox *lb);
// ---------------------------------------------------------------------------
#endif