Go to the source code of this file.
|
static INT | LengthOfStrResource (IN HINSTANCE hInst, IN UINT uID) |
|
INT | AllocAndLoadString (OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID) |
|
DWORD | LoadAndFormatString (IN HINSTANCE hInstance, IN UINT uID, OUT LPTSTR *lpTarget,...) |
|
BOOL | StatusBarLoadAndFormatString (IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID,...) |
|
BOOL | StatusBarLoadString (IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID) |
|
INT | GetTextFromEdit (OUT LPTSTR lpString, IN HWND hDlg, IN UINT Res) |
|
VOID | GetError (DWORD err) |
|
◆ AllocAndLoadString()
Definition at line 40 of file misc.c.
43{
45
47 uID);
48 if (ln++ > 0)
49 {
52 if ((*lpTarget) !=
NULL)
53 {
56 {
58 }
59 return Ret;
60 }
61 }
62 return 0;
63}
INT LengthOfStrResource(IN HINSTANCE hInst, IN UINT uID)
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
◆ GetError()
Definition at line 183 of file misc.c.
184{
186
189
197 0,
199
201
203}
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
◆ GetTextFromEdit()
Definition at line 164 of file misc.c.
167{
170 {
172 Res,
173 lpString,
175 }
176 else
178
180}
#define GetWindowTextLength
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
◆ LengthOfStrResource()
Definition at line 4 of file misc.c.
6{
7 HRSRC hrSrc;
10
12 {
13 return -1;
14 }
15
16
18
19
23 {
25
26
27 uID &= 0xF;
28 for (
x = 0;
x < uID;
x++)
29 {
30 lpStr += (*lpStr) + 1;
31 }
32
33
34 return (int)(*lpStr);
35 }
36 return -1;
37}
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
GLint GLint GLint GLint GLint x
◆ LoadAndFormatString()
Definition at line 66 of file misc.c.
70{
74
77 uID) > 0)
78 {
80
81
84 0,
85 0,
87 0,
88 &lArgs);
90
92 }
93
94 return Ret;
95}
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
#define FORMAT_MESSAGE_FROM_STRING
◆ StatusBarLoadAndFormatString()
Definition at line 98 of file misc.c.
103{
107
110 uID) > 0)
111 {
113
114
117 0,
118 0,
120 0,
121 &lArgs);
123
125 {
131 }
132
134 }
135
136 return Ret;
137}
◆ StatusBarLoadString()
Definition at line 140 of file misc.c.
144{
147
150 uID) > 0)
151 {
157 }
158
159 return Ret;
160}