+++ /dev/null
-========================================================================\r
- WIN32 APPLICATION : libzrtp_test_GUI Project Overview\r
-========================================================================\r
-\r
-AppWizard has created this libzrtp_test_GUI application for you. \r
-\r
-This file contains a summary of what you will find in each of the files that\r
-make up your libzrtp_test_GUI application.\r
-\r
-\r
-libzrtp_test_GUI.vcproj\r
- This is the main project file for VC++ projects generated using an Application Wizard. \r
- It contains information about the version of Visual C++ that generated the file, and \r
- information about the platforms, configurations, and project features selected with the\r
- Application Wizard.\r
-\r
-libzrtp_test_GUI.cpp\r
- This is the main application source file.\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-AppWizard has created the following resources:\r
-\r
-\r
-libzrtp_test_GUIppc.rc\r
- This is a listing of all of the Microsoft Windows resources that the\r
- program uses when compiling for the Pocket PC 2003 platform, or a platform \r
- that supports the same user interface model. It includes the icons, bitmaps, \r
- and cursors that are stored in the RES subdirectory. This file can be \r
- directly edited in Microsoft Visual C++. When the .rc file is persisted, \r
- the defines in the data section are persisted as the hexadecimal version\r
- of the numeric value they are defined to rather than the friendly name of\r
- the define.\r
-\r
-libzrtp_test_GUIppc.rc2\r
- This file contains resources that are not edited by Microsoft \r
- Visual C++. You should place all resources not editable by\r
- the resource editor in this file.\r
-\r
-Resourceppc.h\r
- This is the standard header file, which defines new resource IDs.\r
- Microsoft Visual C++ reads and updates this file.\r
-\r
-libzrtp_test_GUIsp.rc\r
- This is a listing of all of the Microsoft Windows resources that the\r
- program uses when compiling for the Smartphone 2003 platform, or a \r
- platform that supports the same user interface model. It includes the \r
- icons, bitmaps, and cursors that are stored in the RES subdirectory. \r
- This file can be directly edited in Microsoft Visual C++. When the \r
- .rc file is persisted, the defines in the data section are persisted\r
- as the hexadecimal version of the numeric value they are defined to\r
- rather than the friendly name of the define.\r
-\r
-libzrtp_test_GUIsp.rc2\r
- This file contains resources that are not edited by Microsoft \r
- Visual C++. You should place all resources not editable by\r
- the resource editor in this file.\r
-\r
-Resourcesp.h\r
- This is the standard header file, which defines new resource IDs.\r
- Microsoft Visual C++ reads and updates this file.\r
-\r
-\r
-\r
-libzrtp_test_GUI.ico\r
- This is an icon file, which is used as the application's icon (32x32).\r
- This icon is included by the main resource file libzrtp_test_GUI.rc.\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-Other standard files:\r
-\r
-StdAfx.h, StdAfx.cpp\r
- These files are used to build a precompiled header (PCH) file\r
- named libzrtp_test_GUI.pch and a precompiled types file named StdAfx.obj.\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-Other notes:\r
-\r
-AppWizard uses "TODO:" comments to indicate parts of the source code you\r
-should add to or customize.\r
-\r
-/////////////////////////////////////////////////////////////////////////////s
\ No newline at end of file
+++ /dev/null
-/*\r
- * libZRTP SDK library, implements the ZRTP secure VoIP protocol.\r
- * Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.\r
- * Contact: http://philzimmermann.com\r
- * For licensing and other legal details, see the file zrtp_legal.c.\r
- * \r
- * Nikolay Popok mailto: <chaser@soft-industry.com>\r
- */\r
-\r
-#include "stdafx.h"\r
-#include "libzrtp_test_GUI.h"\r
-#include <windows.h>\r
-#include <commctrl.h>\r
-\r
-//#include "resourcesp.h"\r
-\r
-#include <Afx.h>\r
-\r
-\r
-extern "C" \r
-{\r
- #include "zrtp.h"\r
- #include "zrtp_test_core.h"\r
-}\r
-\r
-#define MAX_LOADSTRING 100\r
-\r
-// Global Variables:\r
-HINSTANCE g_hInst; // current instance\r
-HWND g_hWndMenuBar; // menu bar handle\r
-HWND hWndList;\r
-HWND g_hWnd;\r
-\r
-HFONT font;\r
-\r
-int action_id = 0;\r
-\r
-static void do_action();\r
-static void print_log_ce(int level, const char *data, int len, int offset);\r
-static DWORD WINAPI destroy_func(void *param);\r
-\r
-static FILE *log_file = NULL;\r
-\r
-typedef struct zrtp_test_command\r
-{ \r
- int32_t code;\r
- int first_conn;\r
- int last_conn;\r
- uint32_t extra, extra2;\r
-} zrtp_test_command_t;\r
-\r
-typedef enum zrtp_test_code\r
-{\r
- ZRTP_TEST_CREATE = 0,\r
- ZRTP_TEST_DESTROY,\r
- ZRTP_TEST_ZSTART,\r
- ZRTP_TEST_ZSECURE,\r
- ZRTP_TEST_QUIT,\r
- ZRTP_TEST_INC,\r
- ZRTP_TEST_DEC,\r
- ZRTP_TEST_CLEAR, \r
- ZRTP_TEST_SLEEP,\r
- ZRTP_TEST_LOGS,\r
- ZRTP_TEST_INFO,\r
- ZRTP_TEST_HELP,\r
- ZRTP_TEST_CMD_SIZE\r
-} zrtp_test_code_t;\r
-\r
-extern "C" {\r
- void do_quit();\r
- int zrtp_test_zrtp_init();
- void zrtp_test_crypto(zrtp_global_t* zrtp);
- int zrtp_add_system_state(zrtp_global_t* zrtp, MD_CTX *ctx);
-}\r
-\r
-// Forward declarations of functions included in this code module:\r
-ATOM MyRegisterClass(HINSTANCE, LPTSTR);\r
-BOOL InitInstance(HINSTANCE, int);\r
-LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);\r
-#ifndef WIN32_PLATFORM_WFSP\r
-INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);\r
-#endif // !WIN32_PLATFORM_WFSP\r
-\r
-int WINAPI WinMain(HINSTANCE hInstance,\r
- HINSTANCE hPrevInstance,\r
- LPTSTR lpCmdLine,\r
- int nCmdShow)\r
-{\r
- MSG msg;\r
-\r
- // Perform application initialization:\r
- if (!InitInstance(hInstance, nCmdShow)) \r
- {\r
- return FALSE;\r
- }\r
-\r
-#ifndef WIN32_PLATFORM_WFSP\r
- HACCEL hAccelTable;\r
- hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_LIBZRTP_TEST_GUI));\r
-#endif // !WIN32_PLATFORM_WFSP\r
-\r
- // Main message loop:\r
- while (GetMessage(&msg, NULL, 0, 0)) \r
- {\r
- if ( msg.message == WM_KEYDOWN )\r
- {\r
- switch ( msg.wParam ) \r
- {\r
- case VK_LEFT:\r
- {\r
- msg.wParam = 0;\r
- break;\r
- }\r
- case VK_RIGHT:\r
- {\r
- msg.wParam = 0;\r
- break;\r
- }\r
- }\r
- }\r
-\r
-#ifndef WIN32_PLATFORM_WFSP\r
- if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) \r
-#endif // !WIN32_PLATFORM_WFSP\r
- {\r
- TranslateMessage(&msg);\r
- DispatchMessage(&msg);\r
- }\r
- }\r
-\r
- return (int) msg.wParam;\r
-}\r
-\r
-//\r
-// FUNCTION: MyRegisterClass()\r
-//\r
-// PURPOSE: Registers the window class.\r
-//\r
-// COMMENTS:\r
-//\r
-ATOM MyRegisterClass(HINSTANCE hInstance, LPTSTR szWindowClass)\r
-{\r
- WNDCLASS wc;\r
-\r
- wc.style = CS_HREDRAW | CS_VREDRAW;\r
- wc.lpfnWndProc = WndProc;\r
- wc.cbClsExtra = 0;\r
- wc.cbWndExtra = 0;\r
- wc.hInstance = hInstance;\r
- wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_LIBZRTP_TEST_GUI));\r
- wc.hCursor = 0;\r
- wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);\r
- wc.lpszMenuName = 0;\r
- wc.lpszClassName = szWindowClass;\r
-\r
- return RegisterClass(&wc);\r
-}\r
-\r
-//\r
-// FUNCTION: InitInstance(HINSTANCE, int)\r
-//\r
-// PURPOSE: Saves instance handle and creates main window\r
-//\r
-// COMMENTS:\r
-//\r
-// In this function, we save the instance handle in a global variable and\r
-// create and display the main program window.\r
-//\r
-BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)\r
-{\r
- HWND hWnd;\r
- TCHAR szTitle[MAX_LOADSTRING]; // title bar text\r
- TCHAR szWindowClass[MAX_LOADSTRING]; // main window class name\r
-\r
- g_hInst = hInstance; // Store instance handle in our global variable\r
-\r
-#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)\r
- // SHInitExtraControls should be called once during your application's initialization to initialize any\r
- // of the device specific controls such as CAPEDIT and SIPPREF.\r
- SHInitExtraControls();\r
-#endif // WIN32_PLATFORM_PSPC || WIN32_PLATFORM_WFSP\r
-\r
- LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); \r
- LoadString(hInstance, IDC_LIBZRTP_TEST_GUI, szWindowClass, MAX_LOADSTRING);\r
-\r
-#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)\r
- //If it is already running, then focus on the window, and exit\r
- hWnd = FindWindow(szWindowClass, szTitle); \r
- if (hWnd) \r
- {\r
- // set focus to foremost child window\r
- // The "| 0x00000001" is used to bring any owned windows to the foreground and\r
- // activate them.\r
- SetForegroundWindow((HWND)((ULONG) hWnd | 0x00000001));\r
- return 0;\r
- } \r
-#endif // WIN32_PLATFORM_PSPC || WIN32_PLATFORM_WFSP\r
-\r
- if (!MyRegisterClass(hInstance, szWindowClass))\r
- {\r
- return FALSE;\r
- }\r
-\r
- hWnd = CreateWindow(szWindowClass, szTitle, WS_VISIBLE,\r
- CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);\r
-\r
- if (!hWnd)\r
- {\r
- return FALSE;\r
- }\r
-\r
- g_hWnd = hWnd;\r
-#ifdef WIN32_PLATFORM_PSPC\r
- // When the main window is created using CW_USEDEFAULT the height of the menubar (if one\r
- // is created is not taken into account). So we resize the window after creating it\r
- // if a menubar is present\r
- if (g_hWndMenuBar)\r
- {\r
- RECT rc;\r
- RECT rcMenuBar;\r
-\r
- GetWindowRect(hWnd, &rc);\r
- GetWindowRect(g_hWndMenuBar, &rcMenuBar);\r
- rc.bottom -= (rcMenuBar.bottom - rcMenuBar.top);\r
- \r
- MoveWindow(hWnd, rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top, FALSE);\r
- }\r
-#endif // WIN32_PLATFORM_PSPC\r
-\r
- ShowWindow(hWnd, nCmdShow);\r
- UpdateWindow(hWnd);\r
-\r
- return TRUE;\r
-}\r
-\r
-//\r
-// FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)\r
-//\r
-// PURPOSE: Processes messages for the main window.\r
-//\r
-// WM_COMMAND - process the application menu\r
-// WM_PAINT - Paint the main window\r
-// WM_DESTROY - post a quit message and return\r
-//\r
-//\r
-LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)\r
-{\r
- int wmId, wmEvent;\r
- PAINTSTRUCT ps;\r
- HDC hdc;\r
-\r
-#if defined(SHELL_AYGSHELL) && !defined(WIN32_PLATFORM_WFSP)\r
- static SHACTIVATEINFO s_sai;\r
-#endif // SHELL_AYGSHELL && !WIN32_PLATFORM_WFSP\r
- \r
- switch (message) \r
- {\r
- case WM_COMMAND:\r
- wmId = LOWORD(wParam); \r
- wmEvent = HIWORD(wParam); \r
- // Parse the menu selections:\r
- switch (wmId)\r
- {\r
-#ifndef WIN32_PLATFORM_WFSP\r
- case IDM_HELP_ABOUT:\r
- DialogBox(g_hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, About);\r
- break;\r
-#endif // !WIN32_PLATFORM_WFSP\r
-#ifdef WIN32_PLATFORM_WFSP\r
- case IDM_OK:\r
- do_action();\r
-\r
- break;\r
-#endif // WIN32_PLATFORM_WFSP\r
-#ifdef WIN32_PLATFORM_PSPC\r
- case IDM_OK:\r
- do_action();\r
- break;\r
-#endif // WIN32_PLATFORM_PSPC\r
- default:\r
- return DefWindowProc(hWnd, message, wParam, lParam);\r
- }\r
- break;\r
- case WM_CREATE:\r
-#ifdef SHELL_AYGSHELL\r
- SHMENUBARINFO mbi;\r
-\r
- memset(&mbi, 0, sizeof(SHMENUBARINFO));\r
- mbi.cbSize = sizeof(SHMENUBARINFO);\r
- mbi.hwndParent = hWnd;\r
- mbi.nToolBarId = IDR_MENU;\r
- mbi.hInstRes = g_hInst;\r
-\r
- if (!SHCreateMenuBar(&mbi)) \r
- {\r
- g_hWndMenuBar = NULL;\r
- }\r
- else\r
- {\r
- g_hWndMenuBar = mbi.hwndMB;\r
- }\r
-\r
-#ifndef WIN32_PLATFORM_WFSP\r
- // Initialize the shell activate info structure\r
- memset(&s_sai, 0, sizeof (s_sai));\r
- s_sai.cbSize = sizeof (s_sai);\r
-#endif // !WIN32_PLATFORM_WFSP\r
-#endif // SHELL_AYGSHELL\r
-\r
-#ifdef WIN32_PLATFORM_WFSP\r
- hWndList = CreateWindow(TEXT("listbox"),NULL, WS_CHILD|\r
- WS_VISIBLE|WS_HSCROLL|WS_VSCROLL|WS_TABSTOP, 0,0, 300, 200, hWnd, \r
- (HMENU)"", g_hInst, NULL); \r
-#else\r
- hWndList = CreateWindow(TEXT("listbox"),NULL, WS_CHILD|\r
- WS_VISIBLE|WS_HSCROLL|WS_VSCROLL|WS_TABSTOP, 0,0, 250, 200, hWnd, \r
- (HMENU)"", g_hInst, NULL); \r
-#endif // !WIN32_PLATFORM_WFSP\r
- \r
- font = CreateFont(10, // height of font\r
- 0, // average character width\r
- 0, // angle of escapement\r
- 0, // base-line orientation angle\r
- 400, // font weight\r
- 0, // italic attribute option\r
- FALSE, // underline attribute option\r
- FALSE, // strikeout attribute option\r
- ANSI_CHARSET, // character set identifier\r
- OUT_DEFAULT_PRECIS, // output precision\r
- CLIP_DEFAULT_PRECIS, // clipping precision\r
- ANTIALIASED_QUALITY, // output quality\r
- FF_DONTCARE, // pitch and family\r
- TEXT("Times New Roman")); \r
-\r
- SendMessage(hWndList, WM_SETFONT, (WPARAM)font, (LPARAM)TRUE);\r
-\r
- SetFocus(hWndList);\r
- break;\r
- case WM_PAINT:\r
- hdc = BeginPaint(hWnd, &ps);\r
- \r
- EndPaint(hWnd, &ps);\r
- break;\r
- case WM_DESTROY:\r
-#ifdef SHELL_AYGSHELL\r
- CommandBar_Destroy(g_hWndMenuBar);\r
-#endif // SHELL_AYGSHELL\r
- PostQuitMessage(0);\r
- break;\r
-\r
-#if defined(SHELL_AYGSHELL) && !defined(WIN32_PLATFORM_WFSP)\r
- case WM_ACTIVATE:\r
- // Notify shell of our activate message\r
- SHHandleWMActivate(hWnd, wParam, lParam, &s_sai, FALSE);\r
- break;\r
- case WM_SETTINGCHANGE:\r
- SHHandleWMSettingChange(hWnd, wParam, lParam, &s_sai);\r
- break;\r
-#endif // SHELL_AYGSHELL && !WIN32_PLATFORM_WFSP\r
-\r
- default:\r
- return DefWindowProc(hWnd, message, wParam, lParam);\r
- }\r
- return 0;\r
-}\r
-\r
-HWND hwndAbout = NULL;\r
-\r
-#ifndef WIN32_PLATFORM_WFSP\r
-// Message handler for about box.\r
-INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)\r
-{\r
- switch (message)\r
- {\r
- case WM_INITDIALOG:\r
-#ifdef SHELL_AYGSHELL\r
- {\r
- // Create a Done button and size it. \r
- SHINITDLGINFO shidi;\r
- shidi.dwMask = SHIDIM_FLAGS;\r
- shidi.dwFlags = SHIDIF_DONEBUTTON | SHIDIF_SIPDOWN | SHIDIF_SIZEDLGFULLSCREEN | SHIDIF_EMPTYMENU;\r
- shidi.hDlg = hDlg;\r
- SHInitDialog(&shidi);\r
- }\r
-#endif // SHELL_AYGSHELL\r
-\r
- return (INT_PTR)TRUE;\r
-\r
- case WM_COMMAND:\r
-#ifdef SHELL_AYGSHELL\r
- if (LOWORD(wParam) == IDOK)\r
-#endif\r
- {\r
- return (INT_PTR)TRUE;\r
- }\r
- break;\r
-\r
- case WM_CLOSE:\r
- EndDialog(hDlg, message);\r
- return (INT_PTR)TRUE;\r
-\r
-#ifdef _DEVICE_RESOLUTION_AWARE\r
- case WM_SIZE:\r
- {\r
- DRA::RelayoutDialog(\r
- g_hInst, \r
- hDlg, \r
- DRA::GetDisplayMode() != DRA::Portrait ? MAKEINTRESOURCE(IDD_ABOUTBOX_WIDE) : MAKEINTRESOURCE(IDD_ABOUTBOX));\r
- }\r
- break;\r
-#endif\r
- }\r
- return (INT_PTR)FALSE;\r
-}\r
-#endif // !WIN32_PLATFORM_WFSP\r
-\r
-static void do_action()\r
-{\r
- switch (action_id)\r
- {\r
- case 0:\r
- {\r
- int status;
-
- zrtp_log_set_log_engine((zrtp_log_engine*)print_log_ce);
- status = zrtp_test_zrtp_init();
- if (0 != status) {
- return;
- }
-
- zrtp_test_crypto(zrtp_global);
-
- {
- zrtp_test_channel_id_t id;
- zrtp_test_channel_config_t sconfig;
-
- sconfig.is_autosecure = 0;
- sconfig.is_preshared = 0;
- sconfig.streams_count = 1;
-
- status = zrtp_test_channel_create(&sconfig, &id);
-
- if (0 == status) {
- zrtp_test_channel_start(id);
- }
- }
- break;\r
- }\r
- case 1:\r
- {\r
- zrtp_thread_create(destroy_func, NULL);
- break;\r
- }\r
- case 2:\r
- {\r
- DeleteObject(font);\r
- if (log_file) fclose(log_file);\r
-#ifdef WIN32_PLATFORM_WFSP\r
- DestroyWindow(g_hWnd);\r
-#endif\r
-#ifdef WIN32_PLATFORM_PSPC\r
- SendMessage(g_hWnd, WM_CLOSE, 0, 0); \r
-#endif // WIN32_PLATFORM_PSPC\r
- break;\r
- }\r
- }\r
-\r
- action_id++;\r
-}\r
-\r
-static DWORD WINAPI destroy_func(void *param)\r
-{\r
- do_quit();
- return 0;
-}\r
- \r
-static void print_log_ce(int level, const char *data, int len, int offset)\r
-{\r
- if ( !log_file )\r
- log_file = fopen("zrtp_test.log", "a");\r
-\r
- fprintf(log_file, "%s", data);\r
- \r
- if (level < 3 || 1)\r
- {\r
- CString strUnicode = data;\r
- SendMessage(hWndList, LB_ADDSTRING, 0, (LPARAM)strUnicode.GetBuffer(100));\r
- SendMessage(hWndList, WM_VSCROLL, SB_BOTTOM, 0L);\r
- }\r
- \r
-}\r
-\r
+++ /dev/null
-/*\r
- * libZRTP SDK library, implements the ZRTP secure VoIP protocol.\r
- * Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.\r
- * Contact: http://philzimmermann.com\r
- * For licensing and other legal details, see the file zrtp_legal.c.\r
- * \r
- * Nikolay Popok mailto: <chaser@soft-industry.com>\r
- */\r
-\r
-#pragma once\r
-#ifdef POCKETPC2003_UI_MODEL\r
-#include "resourceppc.h"\r
-#endif \r
-#ifdef SMARTPHONE2003_UI_MODEL\r
-#include "resourcesp.h"\r
-#endif\r
+++ /dev/null
-// Microsoft Visual C++ generated resource script.\r
-//\r
-#include "resourceppc.h"\r
-\r
-#define APSTUDIO_READONLY_SYMBOLS\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Generated from the TEXTINCLUDE 2 resource.\r
-//\r
-#define APSTUDIO_HIDDEN_SYMBOLS\r
-#include "resdefce.h"\r
-#undef APSTUDIO_HIDDEN_SYMBOLS\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-#undef APSTUDIO_READONLY_SYMBOLS\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// Russian resources\r
-\r
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)\r
-#ifdef _WIN32\r
-LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT\r
-#pragma code_page(1251)\r
-#endif //_WIN32\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Icon\r
-//\r
-\r
-// Icon with lowest ID value placed first to ensure application icon\r
-// remains consistent on all systems.\r
-IDI_LIBZRTP_TEST_GUI ICON "libzrtp_test_GUI.ico"\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Menu\r
-//\r
-\r
-IDR_MENU MENU \r
-BEGIN\r
- POPUP "Help"\r
- BEGIN\r
- MENUITEM "About", IDM_HELP_ABOUT\r
- END\r
-END\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Accelerator\r
-//\r
-\r
-IDC_LIBZRTP_TEST_GUI ACCELERATORS \r
-BEGIN\r
- "A", IDM_HELP_ABOUT, VIRTKEY, CONTROL, NOINVERT\r
- "Q", IDM_OK, VIRTKEY, CONTROL, NOINVERT\r
-END\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Dialog\r
-//\r
-\r
-IDD_ABOUTBOX DIALOG 0, 0, 164, 172\r
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION\r
-EXSTYLE 0x80000000L\r
-CAPTION "About libzrtp_test_GUI"\r
-FONT 8, "MS Shell Dlg"\r
-BEGIN\r
- LISTBOX IDC_LIST1,7,7,150,158,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP\r
-END\r
-\r
-IDD_ABOUTBOX_WIDE DIALOG 0, 0, 210, 129\r
-STYLE DS_SETFONT | WS_POPUP | WS_CAPTION\r
-EXSTYLE 0x80000000L\r
-CAPTION "About libzrtp_test_GUI"\r
-FONT 8, "MS Shell Dlg"\r
-BEGIN\r
- ICON IDI_LIBZRTP_TEST_GUI,IDC_STATIC_1,12,12,21,20,SS_REALSIZEIMAGE\r
- LTEXT "libzrtp_test_GUI Version 1.0",IDC_STATIC_2,48,12,66,8,SS_NOPREFIX\r
- LTEXT "Copyright (C) 2008",IDC_STATIC_3,48,24,66,8\r
-END\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// DESIGNINFO\r
-//\r
-\r
-#ifdef APSTUDIO_INVOKED\r
-GUIDELINES DESIGNINFO \r
-BEGIN\r
- IDD_ABOUTBOX, DIALOG\r
- BEGIN\r
- LEFTMARGIN, 7\r
- RIGHTMARGIN, 157\r
- TOPMARGIN, 7\r
- BOTTOMMARGIN, 165\r
- END\r
-\r
- IDD_ABOUTBOX_WIDE, DIALOG\r
- BEGIN\r
- LEFTMARGIN, 7\r
- RIGHTMARGIN, 203\r
- TOPMARGIN, 7\r
- BOTTOMMARGIN, 122\r
- END\r
-END\r
-#endif // APSTUDIO_INVOKED\r
-\r
-\r
-#ifdef APSTUDIO_INVOKED\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// TEXTINCLUDE\r
-//\r
-\r
-1 TEXTINCLUDE \r
-BEGIN\r
- "resourceppc.h\0"\r
-END\r
-\r
-2 TEXTINCLUDE \r
-BEGIN\r
- "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"\r
- "#include ""resdefce.h""\r\n"\r
- "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"\r
- "\0"\r
-END\r
-\r
-3 TEXTINCLUDE \r
-BEGIN\r
- "\r\n"\r
- "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)\r\n"\r
- "LANGUAGE 25, 1\r\n"\r
- "#pragma code_page(1251)\r\n"\r
- "#include ""libzrtp_test_GUIppc.rc2"" // non-Microsoft Visual C++ edited resources\r\n"\r
- "#endif\r\n"\r
- "\0"\r
-END\r
-\r
-#endif // APSTUDIO_INVOKED\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// String Table\r
-//\r
-\r
-STRINGTABLE \r
-BEGIN\r
- IDS_APP_TITLE "libzrtp_test_GUI"\r
- IDC_LIBZRTP_TEST_GUI "LIBZRTP_TEST_GUI"\r
-END\r
-\r
-STRINGTABLE \r
-BEGIN\r
- IDS_OK "OK"\r
- IDS_HELP "HELP"\r
-END\r
-\r
-#endif // Russian resources\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-\r
-\r
-#ifndef APSTUDIO_INVOKED\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Generated from the TEXTINCLUDE 3 resource.\r
-//\r
-\r
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)\r
-LANGUAGE 25, 1\r
-#pragma code_page(1251)\r
-#include "libzrtp_test_GUIppc.rc2" // non-Microsoft Visual C++ edited resources\r
-#endif\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-#endif // not APSTUDIO_INVOKED\r
-\r
+++ /dev/null
-//\r
-// libzrtp_test_GUIPPC.RC2 - resources Microsoft Visual C++ does not edit directly\r
-//\r
-\r
-#ifdef APSTUDIO_INVOKED\r
-#error this file is not editable by Microsoft Visual C++\r
-#endif //APSTUDIO_INVOKED\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// Add manually edited resources here...\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-HI_RES_AWARE CEUX {1} // turn off the emulation layer\r
- // Remove this resource to enable pixel-\r
- // doubling on platforms that support it\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// SHMENUBAR\r
-//\r
-\r
-IDR_MENU SHMENUBAR DISCARDABLE\r
-BEGIN\r
- IDR_MENU, \r
- 2,\r
-\r
- I_IMAGENONE, IDM_OK, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE,\r
- IDS_OK, 0, NOMENU,\r
- \r
- I_IMAGENONE, IDM_HELP, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,\r
- IDS_HELP, 0, 0,\r
-END\r
-\r
+++ /dev/null
-//Microsoft Visual C++ generated resource script.\r
-//\r
-#include "resourcesp.h"\r
-\r
-#define APSTUDIO_READONLY_SYMBOLS\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Generated from the TEXTINCLUDE 2 resource.\r
-//\r
-#define APSTUDIO_HIDDEN_SYMBOLS\r
-#include "resdefce.h"\r
-#undef APSTUDIO_HIDDEN_SYMBOLS\r
-/////////////////////////////////////////////////////////////////////////////\r
-#undef APSTUDIO_READONLY_SYMBOLS\r
-\r
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)\r
-LANGUAGE 25, 1\r
-#pragma code_page(1251)\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Icon\r
-//\r
-\r
-// Icon with lowest ID value placed first to ensure application icon\r
-// remains consistent on all systems.\r
-\r
-IDI_LIBZRTP_TEST_GUI ICON "libzrtp_test_GUI.ico"\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Menu\r
-//\r
-\r
-#ifdef APSTUDIO_INVOKED\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// TEXTINCLUDE\r
-//\r
-1 TEXTINCLUDE \r
-BEGIN\r
- "resourcesp.h\0"\r
-END\r
-\r
-2 TEXTINCLUDE \r
-BEGIN\r
- "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"\r
- "#include ""resdefce.h""\r\n"\r
- "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"\r
- "\0"\r
-END\r
-\r
-3 TEXTINCLUDE \r
-BEGIN\r
- "\r\n"\r
- "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)\r\n"\r
- "LANGUAGE 25, 1\r\n"\r
- "#pragma code_page(1251)\r\n"\r
- "#include ""libzrtp_test_GUIsp.rc2"" // non-Microsoft Visual C++ edited resources\r\n"\r
- "#endif\r\n"\r
- "\0"\r
-END\r
-\r
-#endif // APSTUDIO_INVOKED\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// String Table\r
-//\r
-STRINGTABLE \r
-BEGIN\r
- IDC_LIBZRTP_TEST_GUI "LIBZRTP_TEST_GUI"\r
- IDS_APP_TITLE "libzrtp_test_GUI"\r
- IDS_OK "Ok"\r
-END\r
-\r
-#endif\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-\r
-#ifndef APSTUDIO_INVOKED\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Generated from the TEXTINCLUDE 3 resource.\r
-//\r
-\r
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)\r
-LANGUAGE 25, 1\r
-#pragma code_page(1251)\r
-#include "libzrtp_test_GUIsp.rc2" // non-Microsoft Visual C++ edited resources\r
-#endif\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-#endif // not APSTUDIO_INVOKED\r
+++ /dev/null
-//\r
-// libzrtp_test_GUISP.RC2 - resources Microsoft Visual C++ does not edit directly\r
-//\r
-\r
-#ifdef APSTUDIO_INVOKED\r
-#error this file is not editable by Microsoft Visual C++\r
-#endif //APSTUDIO_INVOKED\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// Add manually edited resources here...\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-HI_RES_AWARE CEUX {1} // turn off the emulation layer\r
- // Remove this resource to enable pixel-\r
- // doubling on platforms that support it\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-//\r
-// Data\r
-//\r
-\r
-IDR_MENU SHMENUBAR DISCARDABLE \r
-BEGIN\r
- IDR_MENU, \r
- 1,\r
-\r
- I_IMAGENONE, IDM_OK, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, \r
- IDS_OK, 0, NOMENU,\r
-END\r
+++ /dev/null
-//{{NO_DEPENDENCIES}}\r
-// Microsoft Visual C++ generated include file.\r
-// Used by libzrtp_test_GUIppc.rc\r
-//\r
-#define IDS_APP_TITLE 1\r
-#define IDC_LIBZRTP_TEST_GUI 2\r
-#define IDI_LIBZRTP_TEST_GUI 101\r
-#define IDR_MENU 102\r
-#define IDS_OK 103\r
-#define IDS_HELP 104\r
-#define IDD_ABOUTBOX 105\r
-#define IDD_ABOUTBOX_WIDE 106\r
-#define IDC_STATIC_1 201\r
-#define IDC_STATIC_2 202\r
-#define IDC_STATIC_3 203\r
-#define IDC_LIST1 1000\r
-#define ID_CMD_INCREASERATE 32771\r
-#define ID_CMD_DESCREASERATE 32772\r
-#define ID_ACCELERATOR32773 32773\r
-#define IDM_ZRTP_LEFT 32773\r
-#define IDM_OK 40000\r
-#define IDM_HELP 40001\r
-#define IDM_HELP_ABOUT 40002\r
-#define IDC_STATIC -1\r
-\r
-// Next default values for new objects\r
-// \r
-#ifdef APSTUDIO_INVOKED\r
-#ifndef APSTUDIO_READONLY_SYMBOLS\r
-#define _APS_NO_MFC 1\r
-#define _APS_NEXT_RESOURCE_VALUE 129\r
-#define _APS_NEXT_COMMAND_VALUE 32775\r
-#define _APS_NEXT_CONTROL_VALUE 1001\r
-#define _APS_NEXT_SYMED_VALUE 110\r
-#endif\r
-#endif\r
+++ /dev/null
-//{{NO_DEPENDENCIES}}\r
-// Microsoft Visual C++ generated include file.\r
-// Used by libzrtp_test_GUIsp.rc\r
-//\r
-\r
-#define IDS_APP_TITLE 1\r
-#define IDC_LIBZRTP_TEST_GUI 2\r
-#define IDI_LIBZRTP_TEST_GUI 101\r
-#define IDR_MENU 102\r
-#define IDS_OK 104\r
-#define IDM_OK 40001\r
-#ifndef IDC_STATIC\r
-#define IDC_STATIC -1\r
-#define ID_CMD_INCREASERATE 32771\r
-#define ID_CMD_DESCREASERATE 32772\r
-#endif\r
-\r
-// Next default values for new objects\r
-// \r
-#ifdef APSTUDIO_INVOKED\r
-#ifndef APSTUDIO_READONLY_SYMBOLS\r
-#define _APS_NO_MFC 130\r
-#define _APS_NEXT_RESOURCE_VALUE 129\r
-#define _APS_NEXT_COMMAND_VALUE 32771\r
-#define _APS_NEXT_CONTROL_VALUE 1000\r
-#define _APS_NEXT_SYMED_VALUE 110\r
-#endif\r
-#endif\r
+++ /dev/null
-/*\r
- * libZRTP SDK library, implements the ZRTP secure VoIP protocol.\r
- * Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.\r
- * Contact: http://philzimmermann.com\r
- * For licensing and other legal details, see the file zrtp_legal.c.\r
- * \r
- * Nikolay Popok mailto: <chaser@soft-industry.com>\r
- */\r
-\r
-\r
-// stdafx.cpp : source file that includes just the standard includes\r
-// libzrtp_test_GUI.pch will be the pre-compiled header\r
-// stdafx.obj will contain the pre-compiled type information\r
-\r
-#include "stdafx.h"\r
-\r
-// TODO: reference any additional headers you need in STDAFX.H\r
-// and not in this file\r
+++ /dev/null
-// stdafx.h : include file for standard system include files,\r
-// or project specific include files that are used frequently, but\r
-// are changed infrequently\r
-//\r
-\r
-#pragma once\r
-\r
-#pragma comment(linker, "/nodefaultlib:libc.lib")\r
-#pragma comment(linker, "/nodefaultlib:libcd.lib")\r
-\r
-// NOTE - this value is not strongly correlated to the Windows CE OS version being targeted\r
-#define WINVER _WIN32_WCE\r
-\r
-#include <ceconfig.h>\r
-#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)\r
-#define SHELL_AYGSHELL\r
-#endif\r
-\r
-#ifdef _CE_DCOM\r
-#define _ATL_APARTMENT_THREADED\r
-#endif\r
-\r
-#ifdef SHELL_AYGSHELL\r
-#include <aygshell.h>\r
-#pragma comment(lib, "aygshell.lib") \r
-#endif // SHELL_AYGSHELL\r
-\r
-\r
-// Windows Header Files:\r
-#include <windows.h>\r
-\r
-// C RunTime Header Files\r
-#include <stdlib.h>\r
-#include <malloc.h>\r
-#include <memory.h>\r
-#include <tchar.h>\r
-\r
-#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)\r
-#ifndef _DEVICE_RESOLUTION_AWARE\r
-#define _DEVICE_RESOLUTION_AWARE\r
-#endif\r
-#endif\r
-\r
-#ifdef _DEVICE_RESOLUTION_AWARE\r
-#include "DeviceResolutionAware.h"\r
-#endif\r
-\r
-#if _WIN32_WCE < 0x500 && ( defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) )\r
- #pragma comment(lib, "ccrtrtti.lib")\r
- #ifdef _X86_ \r
- #if defined(_DEBUG)\r
- #pragma comment(lib, "libcmtx86d.lib")\r
- #else\r
- #pragma comment(lib, "libcmtx86.lib")\r
- #endif\r
- #endif\r
-#endif\r
-\r
-#include <altcecrt.h>\r
-\r
-// TODO: reference additional headers your program requires here\r