-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSysToolX.h
32 lines (22 loc) · 855 Bytes
/
SysToolX.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __SYSTOOLX_H
#define __SYSTOOLX_H
#define MEM_MOVE(x, y) (*((y *)x))
#define STR_SIZE(x) ((lstrlen(x) + 1) * sizeof(TCHAR))
#define STR_ALLOC(x) ((TCHAR *) GetMem((x + 1) * sizeof(TCHAR)))
void FreeMem(void *block);
void *GetMem(DWORD dwSize);
void *GrowMem(void *block, DWORD dwSize);
TCHAR *LangLoadString(UINT sid);
TCHAR **GetCmdLineArgs(DWORD *argc);
TCHAR *GetFullFilePath(TCHAR *filename);
TCHAR *GetWndText(HWND wnd);
TCHAR *OpenSaveDialog(HWND wnd, TCHAR *filemask, TCHAR *defext, int savedlg);
// v1.1
void URLOpenLink(HWND wnd, TCHAR *s);
int MsgBox(HWND wnd, TCHAR *lpText, UINT uType);
void DialogEnableWindow(HWND hdlg, int idControl, BOOL bEnable);
void AdjustComboBoxHeight(HWND hWndCmbBox, DWORD MaxVisItems); // v1.7
DWORD GetFileVersionMS(TCHAR *filename);
// v1.5
BYTE *HTTPGetContent(TCHAR *url, DWORD *len);
#endif