Go to the source code of this file.
◆ AllocAndLoadString()
Definition at line 42 of file misc.c.
44{
46
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)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
◆ LengthOfStrResource()
static INT LengthOfStrResource |
( |
IN UINT |
uID | ) |
|
|
static |
Definition at line 12 of file misc.c.
13{
14 HRSRC hrSrc;
17
18
20
21
25 {
27
28
29 uID &= 0xF;
30 for (
x = 0;
x < uID;
x++)
31 {
32 lpStr += (*lpStr) + 1;
33 }
34
35
36 return (int)(*lpStr);
37 }
38 return -1;
39}
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
#define MAKEINTRESOURCEW(i)
◆ LoadAndFormatString()
Definition at line 90 of file misc.c.
91{
94
98
99 return Ret;
100}
static DWORD VarListLoadAndFormatString(IN UINT uID, OUT PWSTR *lpTarget, IN va_list *Args)
◆ LocalizedError()
Definition at line 103 of file misc.c.
104{
107
111
114}
#define HeapFree(x, y, z)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
Referenced by DoFileSave(), and InitFont().
◆ VarListLoadAndFormatString()
Definition at line 66 of file misc.c.
67{
70
72 {
73
74
77 0,
78 0,
80 0,
82
84 }
85
86 return Ret;
87}
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
#define FORMAT_MESSAGE_FROM_STRING
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Referenced by LoadAndFormatString(), and LocalizedError().