summaryrefslogtreecommitdiff
path: root/plugins/SplashScreen/src/stdafx.h
blob: 10fd640553d92b50bf2b75d6da0a18a42ecc527d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
   Splash Screen Plugin for Miranda NG (www.miranda-ng.org)
   (c) 2004-2007 nullbie, (c) 2005-2007 Thief

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef HEADERS_H
#define HEADERS_H

#define _CRT_SECURE_NO_DEPRECATE

#include <tchar.h>
#include <windows.h>
#include <time.h>
#include <dshow.h>

#include <win2k.h>
#include <newpluginapi.h>
#include <m_database.h>
#include <m_clist.h>
#include <m_options.h>
#include <m_langpack.h>
#include <m_imgsrvc.h>

#include <m_splash.h>

#include "version.h"
#include "resource.h"
#include "bitmap_funcs.h"

#ifdef _DEBUG
	#include <m_skin.h>
	#include <m_popup.h>
	#include "debug.h"
#endif

// Internal defines
#define SPLASH_CLASS L"MirandaSplash"

#define WM_LOADED (WM_USER + 10)

struct CMPlugin : public PLUGIN<CMPlugin>
{
	CMPlugin();

	int Load() override;
	int Unload() override;
};

struct SPLASHOPTS
{
	byte active;
	byte playsnd;
	byte fadein;
	byte fadeout;
	byte inheritGS; //???
	byte random;
	byte showversion;
	int showtime;
	int fosteps;
	int fisteps;
};

extern HWND hwndSplash;
extern SPLASHOPTS options;
extern wchar_t szSplashFile[MAX_PATH], szSoundFile[MAX_PATH], szPrefix[128];
extern wchar_t *szMirDir;
extern char szVersion[MAX_PATH];
extern BOOL bserviceinvoked, bmodulesloaded, png2dibavail;

extern int OptInit(WPARAM wParam, LPARAM lParam);
extern BOOL ShowSplash(BOOL bpreview);
extern VOID ReadDbConfig();
extern INT_PTR ShowSplashService(WPARAM wparam,LPARAM lparam);

#endif //HEADERS_H