summaryrefslogtreecommitdiff
path: root/plugins/VersionInfo/src/utils.h
blob: 7c8711ad3e11ba39538442eb15cd539eb45a1aa3 (plain)
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
33
34
35
36
37
38
39
40
41
42
#ifndef _M_VERSIONINFO_UTILS_H
#define _M_VERSIONINFO_UTILS_H

//utils.cpp
void Log(const TCHAR*);
TCHAR *StrTrim(TCHAR *, const TCHAR *);

//returns a string from the database and uses MirandaFree to deallocate the string, leaving only the local copy
//utils.cpp
int GetStringFromDatabase(char *szSettingName, TCHAR *szError, TCHAR *szResult, size_t size);

//a string of the form %s(start) | %s(end) is split into the two strings (start and end)
//utils.cpp
int SplitStringInfo(const TCHAR *szWholeText, TCHAR *szStartText, TCHAR *szEndText);

//utils.cpp
bool DoesDllExist(char *dllName);

//utils.cpp
void GetModuleTimeStamp(LPTSTR lpszString, DWORD dwSize);
void GetISO8061Time(SYSTEMTIME* stLocal, LPTSTR lpszString, DWORD dwSize);
void NotifyError(DWORD, const TCHAR*, int);

//utils.cpp
PLUGININFOEX *CopyPluginInfo(PLUGININFOEX *);
void FreePluginInfo(PLUGININFOEX *);

//utils.cpp

BOOL IsCurrentUserLocalAdministrator();

TCHAR *GetLanguageName(LANGID language);
TCHAR *GetLanguageName(LCID locale);

BOOL GetWindowsShell(TCHAR *shellPath, size_t shSize);
BOOL GetInternetExplorerVersion(TCHAR *ieVersion, size_t ieSize);

BOOL UUIDToString(MUUID uuid, TCHAR *str, size_t len);

BOOL IsUUIDNull(MUUID uuid);

#endif