forked from alphp/pecl-system-win32ps
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphp_win32ps.h
More file actions
68 lines (54 loc) · 1.9 KB
/
php_win32ps.h
File metadata and controls
68 lines (54 loc) · 1.9 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
+--------------------------------------------------------------------+
| PECL :: win32ps |
+--------------------------------------------------------------------+
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
| Copyright (c) 2005, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef PHP_WIN32PS_H
#define PHP_WIN32PS_H
#include <windows.h>
#include <psapi.h>
#define PHP_WIN32PS_VERSION "1.0.2-dev"
#define PHP_WIN32PS_MAXPROC 256
/* error flags */
#define PHP_WIN32PS_NOTHING 0
#define PHP_WIN32PS_PID 0x01
#define PHP_WIN32PS_OPEN_HANDLE 0x02
#define PHP_WIN32PS_FILE_NAME 0x04
#define PHP_WIN32PS_MEM_INFO 0x08
#define PHP_WIN32PS_PROC_TIMES 0x10
#define PHP_WIN32PS_HANDLE_OPS \
PHP_WIN32PS_FILE_NAME|PHP_WIN32PS_MEM_INFO|PHP_WIN32PS_PROC_TIMES
#define PHP_WIN32PS_ALL \
PHP_WIN32PS_PID|PHP_WIN32PS_OPEN_HANDLE|PHP_WIN32PS_HANDLE_OPS
extern zend_module_entry win32ps_module_entry;
#define phpext_win32ps_ptr &win32ps_module_entry
#ifdef PHP_WIN32
# define PHP_WIN32PS_API __declspec(dllexport)
#else
# define PHP_WIN32PS_API
#endif
#ifdef ZTS
# include "TSRM.h"
#endif
PHP_MINFO_FUNCTION(win32ps);
PHP_WIN32PS_API int php_win32ps_procinfo(int proc, zval *array, int error_flags);
PHP_WIN32PS_API void php_win32ps_meminfo(zval *array);
PHP_FUNCTION(win32_ps_list_procs);
PHP_FUNCTION(win32_ps_stat_proc);
PHP_FUNCTION(win32_ps_stat_mem);
#endif /* PHP_WIN32PS_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/