1 |
/* wptW32API.h - Common API interface |
/* wptW32API.h - Common API interface |
2 |
* Copyright (C) 2001-2005 Timo Schulz |
* Copyright (C) 2001-2006 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
31 |
|
|
32 |
/*-- wptMAPI.cpp --*/ |
/*-- wptMAPI.cpp --*/ |
33 |
int mapi_init (void); |
int mapi_init (void); |
34 |
int mapi_send_pubkey (const char * keyid, char * keyfile); |
int mapi_send_pubkey (const char *keyid, char *keyfile); |
35 |
int mapi_send_ascfile (char * ascfile); |
int mapi_send_ascfile (char *ascfile); |
36 |
void mapi_deinit (void); |
void mapi_deinit (void); |
37 |
|
|
38 |
/*-- wptW32API.cpp --*/ |
/*-- wptW32API.cpp --*/ |
39 |
char* make_filename (const char *path, const char *file, const char *ext); |
char* make_filename (const char *path, const char *file, const char *ext); |
40 |
|
char* make_special_filename (int folder, const char *file, const char *ext); |
41 |
int file_exist_check (const char *fname); |
int file_exist_check (const char *fname); |
42 |
int dir_exist_check (const char *dir); |
int dir_exist_check (const char *dir); |
43 |
DWORD get_file_size (const char *fname); |
DWORD get_file_size (const char *fname); |
71 |
char * m_strdup (const char *str); |
char * m_strdup (const char *str); |
72 |
const char * strtimestamp (long timestamp); |
const char * strtimestamp (long timestamp); |
73 |
const char* get_locale_date (long tm_t, char *buf, DWORD buflen); |
const char* get_locale_date (long tm_t, char *buf, DWORD buflen); |
74 |
|
int get_temp_name (char *buf, DWORD buflen, const char *name); |
75 |
|
|
76 |
#define listbox_add_string(lb, string) \ |
#define listbox_add_string(lb, string) \ |
77 |
SendMessage( (lb), LB_ADDSTRING, 0, (LPARAM)(LPCSTR)(string) ) |
SendMessage( (lb), LB_ADDSTRING, 0, (LPARAM)(LPCSTR)(string) ) |
88 |
#ifdef _MSC_VER |
#ifdef _MSC_VER |
89 |
#include <htmlhelp.h> |
#include <htmlhelp.h> |
90 |
|
|
|
/* Support for the new html context sentensive help. For |
|
|
now it can be only used with native W32 compilers. */ |
|
91 |
#define html_help_init(cookie) \ |
#define html_help_init(cookie) \ |
92 |
HtmlHelp (NULL, NULL, HH_INITIALIZE, (DWORD)(cookie)) |
HtmlHelp (NULL, NULL, HH_INITIALIZE, (DWORD)(cookie)) |
93 |
|
|
94 |
#define html_help_deinit() \ |
#define html_help_deinit(cookie) \ |
95 |
HtmlHelp (NULL, NULL, HH_UNINITIALIZE, 0) |
HtmlHelp (NULL, NULL, HH_UNINITIALIZE, (DWORD)(cookie)) |
96 |
|
|
97 |
#define html_help_dispatch(param, file, helparr) do { \ |
#define html_help_dispatch(param, file, helparr) do { \ |
98 |
HELPINFO *inf; \ |
HELPINFO *inf; \ |
103 |
} while (0) |
} while (0) |
104 |
#else |
#else |
105 |
#define html_help_init(cookie) do {} while (0) |
#define html_help_init(cookie) do {} while (0) |
106 |
#define html_help_deinit() do {} while (0) |
#define html_help_deinit(cookie) do { (cookie) = 0; } while (0) |
107 |
#define html_help_dispatch(param, file, helparr) do {} while (0) |
#define html_help_dispatch(param, file, helparr) do {} while (0) |
108 |
#endif |
#endif |
109 |
|
|