File: dynamic_mode_compatible.h

package info (click to toggle)
vmg 3.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,528 kB
  • sloc: pascal: 5,160; cpp: 605; sh: 278; lex: 105; ansic: 68; makefile: 37
file content (53 lines) | stat: -rw-r--r-- 1,839 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the DYNAMIC_MODE_COMPATIBLE_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// DYNAMIC_MODE_COMPATIBLE_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifdef DYNAMIC_MODE_COMPATIBLE_EXPORTS
#define DYNAMIC_MODE_COMPATIBLE_API __declspec(dllexport)
#else
#define DYNAMIC_MODE_COMPATIBLE_API __declspec(dllimport)
#endif

// This class is exported from the dynamic_mode_compatible.dll
class DYNAMIC_MODE_COMPATIBLE_API Cdynamic_mode_compatible {
public:
	Cdynamic_mode_compatible(void);
	// TODO: add your methods here.
};

extern DYNAMIC_MODE_COMPATIBLE_API int ndynamic_mode_compatible;

DYNAMIC_MODE_COMPATIBLE_API int fndynamic_mode_compatible(void);

////////////////////////////////////////////////////////////////////////////////

/* Definition of Pascal data types */

/* Cardinal is a unsigned 32-bits integer */
#define Cardinal unsigned int

/* Integer is a signed 32-bits integer */
#define Integer int

/* PInteger is a pointer to a Integer */
#define PInteger Integer*

/*  Plugin data structure */
struct TPluginData
{
    Cardinal DesktopWidth;
    Cardinal DesktopHeight;
    double* Magnification;
    PInteger GlassTop;
    PInteger GlassLeft;
    PInteger GlassWidth;
    PInteger GlassHeight;
    Integer  PluginData;
};

/* Prototypes of the exported functions */

DYNAMIC_MODE_COMPATIBLE_API Cardinal Initialize (struct TPluginData vPluginData);
DYNAMIC_MODE_COMPATIBLE_API void Finalize (void);