Debian Codegraph @

test cases/windows/12 resources with custom targets/prog.c

raw
1 #include<windows.h>
2
3 #define MY_ICON 1
4
5 int APIENTRY
6 WinMain(
7 HINSTANCE hInstance,
8 HINSTANCE hPrevInstance,
9 LPSTR lpszCmdLine,
10 int nCmdShow) {
11 HICON hIcon;
12 hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(MY_ICON));
13 // avoid unused argument error while matching template
14 ((void)hInstance);
15 ((void)hPrevInstance);
16 ((void)lpszCmdLine);
17 ((void)nCmdShow);
18 return hIcon ? 0 : 1;
19 }