Defines | Enumerations | Functions | Variables

xap_Win32Slurp.cpp File Reference

#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ut_types.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_string.h"
#include "ut_go_file.h"
#include "ut_Win32LocaleString.h"
#include "xap_Frame.h"
#include "xap_Win32App.h"
#include "xap_Win32Slurp.h"
#include "xap_Prefs.h"

Defines

#define MY_DDE_TOPICNAME   L"System"
#define VALUE_DDEEXEC_OPEN   "[Open(\"%1\")]"
#define FORMAT_OUR_INDIRECTION   "AbiSuite.%s"
#define CONTENT_TYPE_KEY   "Content Type"
#define DOCUMENT_ICON_POSITION   2
#define xx(s)   ((LPBYTE)(s)),(strlen(s)+1)
#define xxw(s)   ((LPBYTE)(s)),((lstrlenW(s)+1)<<1)
#define KILLKEY(k)   do { if (k) RegCloseKey(k); (k) = 0; } while (0)

Enumerations

enum  XX_Status { X_Error, X_CreatedKey, X_ExistingKey }

Functions

static HDDEDATA CALLBACK s_DdeServerCallback (UINT uType, UINT uFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2)
static XX_Status _fetchKey (HKEY k1, const char *szSubKey, HKEY *pkNew)

Variables

static XAP_Win32Slurps_Slurp = NULL

Define Documentation

#define CONTENT_TYPE_KEY   "Content Type"
#define DOCUMENT_ICON_POSITION   2
#define FORMAT_OUR_INDIRECTION   "AbiSuite.%s"
#define KILLKEY (   k  )     do { if (k) RegCloseKey(k); (k) = 0; } while (0)
#define MY_DDE_TOPICNAME   L"System"
#define VALUE_DDEEXEC_OPEN   "[Open(\"%1\")]"
#define xx (   s  )     ((LPBYTE)(s)),(strlen(s)+1)
#define xxw (   s  )     ((LPBYTE)(s)),((lstrlenW(s)+1)<<1)

Enumeration Type Documentation

enum XX_Status
Enumerator:
X_Error 
X_CreatedKey 
X_ExistingKey 

Function Documentation

static XX_Status _fetchKey ( HKEY  k1,
const char *  szSubKey,
HKEY *  pkNew 
) [static]
static HDDEDATA CALLBACK s_DdeServerCallback ( UINT  uType,
UINT  uFmt,
HCONV  hConv,
HSZ  hsz1,
HSZ  hsz2,
HDDEDATA  hData,
DWORD  dwData1,
DWORD  dwData2 
) [static]

Variable Documentation

XAP_Win32Slurp* s_Slurp = NULL [static]