blob: ed2a94810fd2559597c1f44916de65c3b6283ac7 (
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
|
#ifndef _PINGLIST_H
#define _PINGLIST_H
typedef BinaryTree<PINGADDRESS> PINGLIST;
#include <algorithm> // for sort
extern PINGLIST list_items;
extern HANDLE reload_event_handle;
extern CRITICAL_SECTION list_cs;
INT_PTR LoadPingList(WPARAM wParam, LPARAM lParam);
INT_PTR GetPingList(WPARAM wParam,LPARAM lParam);
INT_PTR SavePingList(WPARAM wParam, LPARAM lParam);
INT_PTR SetPingList(WPARAM wParam, LPARAM lParam); // use when you modified db yourself
INT_PTR SetAndSavePingList(WPARAM wParam, LPARAM lParam);
INT_PTR ClearPingList(WPARAM wParam, LPARAM lParam);
INT_PTR GetListSize(WPARAM wParam, LPARAM lParam);
// only call with list_cs locked!
void write_ping_addresses();
BOOL changing_clist_handle();
void set_changing_clist_handle(BOOL flag);
#endif
|