Mercurial > wgsdk
comparison src/include/main.h @ 0:d91dfd53b8b4
Initial commit
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 07 Aug 2022 07:26:27 -0400 |
parents | |
children | 7abb5d8b20ea |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d91dfd53b8b4 |
---|---|
1 #ifndef __main_h | |
2 #define __main_h | |
3 #ifndef WIN32_LEAN_AND_MEAN | |
4 # define WIN32_LEAN_AND_MEAN | |
5 #endif | |
6 #include <windows.h> | |
7 | |
8 typedef struct { | |
9 int version; // version of the plugin structure | |
10 char *description; // name/title of the plugin | |
11 int(*init)(); // function which will be executed on init event | |
12 void(*config)(); // function which will be executed on config event | |
13 void(*quit)(); // function which will be executed on quit event | |
14 HWND hwndParent; // hwnd of the Winamp client main window (stored by Winamp when dll is loaded) | |
15 HINSTANCE hDllInstance; // hinstance of this plugin DLL. (stored by Winamp when dll is loaded) | |
16 } winamp_general_purpose_plugin; | |
17 | |
18 struct app_t { | |
19 struct IDiscordCore* core; | |
20 struct IDiscordUsers* users; | |
21 struct IDiscordActivityManager* activities; | |
22 }; | |
23 | |
24 void CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD); | |
25 int init(); | |
26 void quit(); | |
27 #endif |