summaryrefslogtreecommitdiffabout
path: root/stdafx.h
authorMichael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
committer Michael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
commit955d4e00adc9f39ab93bf21f07506eb75b013c70 (patch) (side-by-side diff)
tree92493a2c9ac206b822e24a9e5a6f6b1589be6afb /stdafx.h
downloadT42-955d4e00adc9f39ab93bf21f07506eb75b013c70.zip
T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.gz
T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.bz2
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/T42/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
Diffstat (limited to 'stdafx.h') (more/less context) (ignore whitespace changes)
-rw-r--r--stdafx.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
new file mode 100644
index 0000000..6c6a53e
--- a/dev/null
+++ b/stdafx.h
@@ -0,0 +1,70 @@
+// stdafx.h : include file for standard system include files,
+// or project specific include files that are used frequently, but
+// are changed infrequently
+//
+
+#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
+
+#include <afxwin.h> // MFC core and standard components
+#include <afxext.h> // MFC extensions
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include <afxcmn.h> // MFC support for Windows Common Controls
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
+#include <afxrich.h>
+#include <afxtempl.h>
+
+#include <afxsock.h> // MFC socket extensions
+
+#pragma warning(disable: 4786)
+
+#include "shared-code/FindIFace.h"
+#include "shared-code/kHelpers.h"
+#include "shared-code/BTreendex.h"
+#include "shared-code/BitSet.h"
+
+#define REFS2PTS 16
+
+struct osockaddr {
+ u_short sa_family; // Address family
+ char sa_data[14];// Up to 14 bytes of direct address
+
+ osockaddr& operator=(sockaddr_in& src) { Copy(src); return *this; }
+ void Copy(sockaddr_in& src) {
+ sa_family = htons(src.sin_family);
+ memmove(sa_data,((sockaddr*)&src)->sa_data,sizeof(((sockaddr*)&src)->sa_data));
+ }
+};
+
+#include "talkd.h"
+
+#include "T42CallLog.h"
+
+enum {
+ WM_INITIATETALK = WM_USER+16,
+ WM_TARGETRESOLVED,
+ WM_SOURCERESOLVED,
+ WM_LOOKUP_SUCCESS, WM_LOOKUP_FAILURE,
+ WM_ANNOUNCE_SUCCESS, WM_ANNOUNCE_FAILURE,
+ WM_LEAVEINVITE_SUCCESS, WM_LEAVEINVITE_FAILURE,
+ WM_LOCAL_REMOVE_SUCCESS, WM_LOCAL_REMOVE_FAILURE,
+ WM_REMOTE_REMOVE_SUCCESS, WM_REMOTE_REMOVE_FAILURE,
+ WM_TALKACCEPT,
+ WM_CTLTRANSACT,
+ WM_TALK,
+ WM_TALKCHAR,
+ WM_SPLITTERBDOWN,
+ WM_TALKCONNECT,
+ WM_NAMERESOLVED, WM_IPRESOLVED,
+
+ WM_TRAYICON,
+ WM_DAEMON,
+ WM_UPDATEPREVIEW,
+
+ timerTransact = 1,
+ timerTimeout,
+ timerMinutes
+};
+#include <MMSystem.h>
+// CG: The following line was added by the Windows Multimedia component.
+#pragma comment(lib, "winmm.lib")