~ubuntu-branches/ubuntu/gutsy/amsn/gutsy

« back to all changes in this revision

Viewing changes to utils/windows/winutils/winutils.h

  • Committer: Bazaar Package Importer
  • Author(s): Theodore Karkoulis
  • Date: 2006-01-04 15:26:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104152602-ipe1yg00rl3nlklv
Tags: 0.95-1
New Upstream Release (closes: #345052, #278575).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*      
 
2
                File : winutils.h
 
3
 
 
4
                Description : Header file for Ariehs windows utilities library
 
5
 
 
6
                Author : Arieh Schneier ( lio_lion - lio_lion@user.sourceforge.net)
 
7
 
 
8
  */
 
9
 
 
10
#ifndef _WINUTILS
 
11
#define _WINUTILS
 
12
 
 
13
// Include files, must include windows.h before tk.h and tcl.h before tk.h
 
14
#include <windows.h>
 
15
 
 
16
#include <tcl.h>
 
17
#include <tk.h>
 
18
#include <tkPlatDecls.h>
 
19
#include <shellapi.h>
 
20
#include <sapi.h>
 
21
 
 
22
// Defined as described in tcl.tk compiling extension help
 
23
#ifndef STATIC_BUILD
 
24
 
 
25
#if defined(_MSC_VER)
 
26
#   define EXPORT(a,b) __declspec(dllexport) a b
 
27
#   define DllEntryPoint DllMain
 
28
#else
 
29
#   if defined(__BORLANDC__)
 
30
#       define EXPORT(a,b) a _export b
 
31
#   else
 
32
#       define EXPORT(a,b) a b
 
33
#   endif
 
34
#endif
 
35
#endif
 
36
 
 
37
 
 
38
#define DLL_BUILD
 
39
#define BUILD_Winutils
 
40
 
 
41
#ifdef BUILD_Winutils
 
42
#  undef TCL_STORAGE_CLASS
 
43
#  define TCL_STORAGE_CLASS DLLEXPORT
 
44
#endif
 
45
 
 
46
#ifdef __cplusplus
 
47
extern "C"
 
48
#endif
 
49
 
 
50
 
 
51
// Prototype of my functions
 
52
 
 
53
EXTERN int Winutils_Init _ANSI_ARGS_((Tcl_Interp *interp));
 
54
 
 
55
 
 
56
EXTERN int Tk_WinLoadFile (ClientData clientData,
 
57
                                                                Tcl_Interp *interp,
 
58
                                                                int objc,
 
59
                                                                Tcl_Obj *CONST objv[]);
 
60
 
 
61
EXTERN int Tk_WinPlaySound (ClientData clientData,
 
62
                                                                Tcl_Interp *interp,
 
63
                                                                int objc,
 
64
                                                                Tcl_Obj *CONST objv[]);
 
65
 
 
66
EXTERN int Tk_WinSayit (ClientData clientData,
 
67
                                                                Tcl_Interp *interp,
 
68
                                                                int objc,
 
69
                                                                Tcl_Obj *CONST objv[]);
 
70
 
 
71
EXTERN int Tk_WinRemoveTitle (ClientData clientData,
 
72
                                                                Tcl_Interp *interp,
 
73
                                                                int objc,
 
74
                                                                Tcl_Obj *CONST objv[]);
 
75
 
 
76
EXTERN int Tk_WinReplaceTitle (ClientData clientData,
 
77
                                                                Tcl_Interp *interp,
 
78
                                                                int objc,
 
79
                                                                Tcl_Obj *CONST objv[]);
 
80
 
 
81
# undef TCL_STORAGE_CLASS
 
82
# define TCL_STORAGE_CLASS DLLIMPORT
 
83
#endif /* _WINUTILS */
 
 
b'\\ No newline at end of file'