forked from AUTOMATIC1111/3ds-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShellUtils.h
More file actions
55 lines (39 loc) · 1.36 KB
/
ShellUtils.h
File metadata and controls
55 lines (39 loc) · 1.36 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef __SHELL__UTILS__
#define __SHELL__UTILS__
#include <windows.h>
#include <string>
#include <list>
namespace std{
#ifdef _UNICODE
typedef wstring tstring;
#else
typedef string tstring;
#endif
};
unsigned long long swapLongLong(unsigned long long x);
typedef std::tstring String;
#define cstr(a) ((TCHAR *)((a).c_str()))
std::tstring format(const TCHAR *fmt,va_list ap);
std::tstring format(const TCHAR *fmt, ...);
std::string formatA(const char *fmt, ...);
std::tstring format(const TCHAR *fmt, ...);
#include "exstream.h"
#define QUOTEQUOTE(a) #a
#define QUOTE(a) QUOTEQUOTE(a)
std::wstring s2ws(const std::string& s);
std::string ws2s(const std::wstring& s);
std::wstring cs2ws(const char *s);
std::string cws2s(const TCHAR *s);
std::wstring js2ws(const std::string& s);
std::string ws2js(const std::wstring& s);
std::wstring jcs2ws(const char *s);
std::string cws2js(const TCHAR *s);
std::tstring lcfirst(const std::tstring& s);
std::tstring ucfirst(const std::tstring& s);
extern HRESULT (*PropVariantToStringDLL)(REFPROPVARIANT propvar, PWSTR psz, UINT cch);
extern HRESULT (*PSRegisterPropertySchemaDLL)(PCWSTR pszPath);
extern HRESULT (*PSUnregisterPropertySchemaDLL)(PCWSTR pszPath);
std::tstring filesize(size_t size);
void listFiles(TCHAR *path, std::list<String> & files);
void reloadExplorer();
#endif