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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#ifndef _NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_STRINGS_HEADER
#define _NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_STRINGS_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#define IS_STRING_EMPTY(_string) (NULL == (_string) || L'\0' == *(_string))
wchar_t *
String_Malloc(size_t size);
wchar_t *
String_ReAlloc(wchar_t *string,
size_t size);
void
String_Free(wchar_t *string);
wchar_t *
String_Duplicate(const wchar_t *string);
char *
String_ToAnsi(unsigned int codePage,
unsigned long flags,
const wchar_t *string,
int stringLength,
const char *defaultChar,
BOOL *usedDefaultChar);
size_t
String_CopyTo(wchar_t *destination,
const wchar_t *source,
size_t size);
wchar_t *
String_FromWindowEx(HWND hwnd,
size_t *lengthOut,
BOOL *errorOut);
#define String_FromWindow(/*HWND*/ _hwnd)\
String_FromWindowEx((_hwnd), NULL, NULL)
/*
Ansi String
*/
char *
AnsiString_Malloc(size_t size);
char *
AnsiString_ReAlloc(char *string,
size_t size);
void
AnsiString_Free(char *string);
char *
AnsiString_Duplicate(const char *string);
wchar_t *
AnsiString_ToUnicode(unsigned int codePage,
unsigned long flags,
const char *string,
int stringLength);
/*
Resource String
*/
wchar_t*
ResourceString_Duplicate(const wchar_t *source);
void
ResourceString_Free(wchar_t *string);
size_t
ResourceString_CopyTo(wchar_t *destination,
const wchar_t *source,
size_t size);
#endif //_NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_STRINGS_HEADER
|