summaryrefslogtreecommitdiff
path: root/plugins/ShellExt/src/stdafx.h
blob: a40ae5dee12fe5293f12f9a4c8b3fae7446bff18 (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
#pragma once

#include <windows.h>
#include <CommCtrl.h>
#include <ShlObj.h>
#include <Wincodec.h>

#include <string.h>
#include <stddef.h>

#include <newpluginapi.h>
#include <m_clistint.h>
#include <m_contacts.h>
#include <m_protocols.h>
#include <m_protosvc.h>
#include <m_file.h>
#include <m_ignore.h>
#include <m_skin.h>
#include <m_clist.h>
#include <m_langpack.h>
#include <m_options.h>
#include <m_database.h>
#include <win2k.h>

#include "version.h"

#define SHLExt_MRU             "MRU"
#define SHLExt_UseGroups       "UseGroups"
#define SHLExt_UseCListSetting "UseCLGroups"
#define SHLExt_UseHITContacts  "UseHITContacts"
#define SHLExt_UseHIT2Contacts "UseHIT2Contacts"
#define SHLExt_ShowNoProfile   "ShowNoProfile"
#define SHLExt_ShowNoIcons     "ShowNoIcons"
#define SHLExt_ShowNoOffline   "ShowNoOffline"

#define COMREG_UNKNOWN  0
#define COMREG_OK       1
#define COMREG_APPROVED 2

void    CheckRegisterServer();
void    CheckUnregisterServer();
void    InvokeThreadServer();
int     IsCOMRegistered();
HRESULT RemoveCOMRegistryEntries();

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

	int Load() override;
};

extern bool bIsVistaPlus;
extern int DllFactoryCount, DllObjectCount;

int OnOptionsInit(WPARAM wParam, LPARAM lParam);

#ifdef _DEBUG
#define LOG_ENABLED
#endif

#ifdef LOG_ENABLED
#define logA g_plugin.debugLogA
#else
#define logA(A, ...) 
#endif

UINT murmur_hash(const char* str);