Go to the source code of this file.
◆ 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)
◆ 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