forked from win32service/win32service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_win32service_int.h
52 lines (46 loc) · 1.95 KB
/
php_win32service_int.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
/*
+----------------------------------------------------------------------+
| PHP Version 8 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2020 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_0.txt. |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Wez Furlong <[email protected]> |
| Maintainer: Jean-Baptiste Nahan <[email protected]> |
+----------------------------------------------------------------------+
*/
/* $Id: php_win32service_int.h 309260 2011-03-15 17:03:59Z rquadling $ */
#ifndef PHP_WIN32SERVICE_INT_H
#define PHP_WIN32SERVICE_INT_H
#ifdef ZTS
# include "TSRM.h"
# define SVCG(v) TSRMG(win32service_globals_id, zend_win32service_globals *, v)
#else
# define SVCG(v) (win32service_globals.v)
#endif
ZEND_BEGIN_MODULE_GLOBALS(win32service)
HANDLE svc_thread; /* MUST be first in struct */
DWORD svc_thread_id;
HANDLE event;
DWORD code;
zend_bool gracefulExit;
zend_long exitCode;
SERVICE_STATUS st;
SERVICE_STATUS_HANDLE sh;
SERVICE_TABLE_ENTRY te[2];
char *service_name;
/* args for the control handler */
struct {
DWORD dwControl, dwEventType;
LPVOID lpEventData;
} args;
ZEND_END_MODULE_GLOBALS(win32service)
ZEND_DECLARE_MODULE_GLOBALS(win32service);
#endif