-
Notifications
You must be signed in to change notification settings - Fork 162
/
openS7online.h
53 lines (42 loc) · 1.43 KB
/
openS7online.h
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
/*
Part of Libnodave, a free communication libray for Siemens S7 300/400.
(C) Thomas Hergenhahn ([email protected]) 2002, 2003.2004
Libnodave is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
Libnodave is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Libnodave; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __openS7online
#define __openS7online
#ifdef __cplusplus
extern "C" { // All here is C, *** NOT *** C++
#endif
#include "nodave.h"
#ifdef BCCWIN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define DECL2 __stdcall
#define us unsigned short
#ifdef DOEXPORT
#define EXPORTSPEC __declspec (dllexport)
#else
#define EXPORTSPEC __declspec (dllimport)
#endif
//EXPORTSPEC HANDLE DECL2 openS7online(const char * accessPoint);
EXPORTSPEC HANDLE DECL2 openS7online(const char * accessPoint, HWND handle);
EXPORTSPEC HANDLE DECL2 closeS7online(int h);
#endif
#ifdef __cplusplus
}
#endif
#endif
/*
01/09/07 Used Axel Kinting's version.
*/