summaryrefslogtreecommitdiff
path: root/!NotAdopted/Skype/skypeproxy/skypeproxy.h
blob: 8ce122990bbf71b9af91d0d908e116395e42042b (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
/*** Skype API ***/
//Messages
#define SKYPECONTROLAPI_ATTACH_SUCCESS					0
#define SKYPECONTROLAPI_ATTACH_PENDING_AUTHORIZATION	1
#define SKYPECONTROLAPI_ATTACH_REFUSED					2
#define SKYPECONTROLAPI_ATTACH_NOT_AVAILABLE			3
#define SKYPECONTROLAPI_ATTACH_API_AVAILABLE			0x8001

// Errors
#define MISC_ERROR				1
#define USER_NOT_FOUND			2
#define USER_NOT_ONLINE			3
#define USER_BLOCKED			4
#define TYPE_UNSUPPORTED		5
#define SENDER_NOT_FRIEND		6
#define SENDER_NOT_AUTHORIZED	7


/*** Debugging macros ***/
#define OUTPUT(a) printf("* %s\n", a);
#define LOG(a, b) printf("- %s: %s\n", a, b);
#define LOGL(a, b) printf("- %s: %d\n", a, b);

/*** Program settings ***/
#define PING_INTERVAL	10000	// Ping every 10000 msec to see if Skype is still available
#define USE_AUTHENTICATION 0x01	// Program supports authentication -> Comment to disable!

/*** Commands ***/
#define AUTHENTICATE	0x01
#define CAPABILITIES	0x02

/*** Sockets ***/
#pragma comment(lib, "ws2_32")

/*** Prototypes ***/
void WatchDogTimer(char *);