/[winpt]/trunk/Include/wptW32API.h
ViewVC logotype

Diff of /trunk/Include/wptW32API.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 137 by twoaday, Mon Jan 9 14:01:51 2006 UTC revision 175 by twoaday, Tue Feb 7 08:58:04 2006 UTC
# Line 1  Line 1 
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   *   *
# Line 31  struct curr_wnd_ctx { Line 31  struct curr_wnd_ctx {
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);
# Line 70  const char * get_folder_dlg( HWND hwnd, Line 71  const char * get_folder_dlg( HWND hwnd,
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) )
# Line 87  const char* get_locale_date (long tm_t, Line 88  const char* get_locale_date (long tm_t,
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; \
# Line 104  const char* get_locale_date (long tm_t, Line 103  const char* get_locale_date (long tm_t,
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    

Legend:
Removed from v.137  
changed lines
  Added in v.175

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26