forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.php
444 lines (386 loc) · 11.5 KB
/
com.php
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<?php
// Start of com v.
/**
* The COM class allows you to instantiate an OLE compatible COM object and call its methods and access its properties.
* @link http://php.net/manual/en/class.com.php
*/
class COM {
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* COM class constructor.
* @param string $module_name
* @param string $server_name [optional]
* @param int $codepage [optional]
* @param string $typelib [optional]
*/
public function __construct ( $module_name, $server_name, $codepage, $typelib ) {}
public function __get ($name) {}
public function __set ($name, $value) {}
public function __call ($name, $args) {}
}
/**
* The DOTNET class allows you to instantiate a class from a .Net assembly and call its methods and access its properties.
* @link http://php.net/manual/en/class.dotnet.php
*/
class DOTNET {
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* COM class constructor.
* @param string $assembly_name
* @param string $class_name
* @param int $codepage [optional]
*/
public function __construct ( $assembly_name , string $class_name, $codepage ) {}
public function __get ($name) {}
public function __set ($name, $value) {}
public function __call ($name, $args) {}
}
/**
* The VARIANT is COM's equivalent of the PHP zval; it is a structure that can contain a value with a range of different possible types. The VARIANT class provided by the COM extension allows you to have more control over the way that PHP passes values to and from COM.
* @link http://php.net/manual/en/class.variant.php
*/
class VARIANT {
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* COM class constructor.
* @param mixed $value [optional]
* @param int $type [optional]
* @param int $codepage [optional]
*/
public function __construct ( $value , string $class_name, $codepage ) {}
public function __get ($name) {}
public function __set ($name, $value) {}
public function __call ($name, $args) {}
}
/**
* (PHP 5, PHP 7)<br/>
* Generate a globally unique identifier (GUID)
* @link http://php.net/manual/en/function.com-create-guid.php
* @return string
*/
function com_create_guid () {}
/**
* (PHP 4 >= 4.2.0, PHP 5, PHP 7)<br/>
* Connect events from a COM object to a PHP object
* @link http://php.net/manual/en/function.com-event-sink.php
* @param \VARIANT $comobject
* @param object $sinkobject
* @param string $sinkinterface [optional]
* @return bool
*/
function com_event_sink ( $comobject, $sinkobject, $sinkinterface) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns a handle to an already running instance of a COM object
* @link http://php.net/manual/en/function.com-get-active-object.php
* @param string $progid
* @param int $code_page [optional]
* @return \VARIANT
*/
function com_get_active_object ( $progid, $code_page ) {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Loads a Typelib
* @link http://php.net/manual/en/function.com-get-active-object.php
* @param string $typelib_name
* @param bool $case_insensitive [optional]
* @return bool
*/
function com_load_typelib ( $typelib_name, $case_insensitive = true ) {}
/**
* (PHP 4 >= 4.2.0, PHP 5, PHP 7)<br/>
* Process COM messages, sleeping for up to timeoutms milliseconds
* @link http://php.net/manual/en/function.com-message-pump.php
* @param int $timeoutms [optional]
* @return bool
*/
function com_message_pump ( $timeoutms = 0 ) {}
/**
* (PHP 4 >= 4.2.0, PHP 5, PHP 7)<br/>
* Print out a PHP class definition for a dispatchable interface
* @link http://php.net/manual/en/function.com-print-typeinfo.php
* @param object $comobject
* @param string $dispinterface [optional]
* @param bool $wantsink [optional]
* @return bool
*/
function com_print_typeinfo ( $comobject, $dispinterface, $wantsink = false ) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns the absolute value of a variant
* @link http://php.net/manual/en/function.variant-abs.php
* @param mixed $val
* @return mixed
*/
function variant_abs ( $comobject, $dispinterface, $wantsink = false ) {}
/**
* (PHP 5, PHP 7)<br/>
* "Adds" two variant values together and returns the result
* @link http://php.net/manual/en/function.variant-abs.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_add ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Performs a bitwise AND operation between two variants
* @link http://php.net/manual/en/function.variant-and.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_and ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Convert a variant into a new variant object of another type
* @link http://php.net/manual/en/function.variant-cast.php
* @param \VARIANT $variant
* @param int $type
* @return \VARIANT
*/
function variant_cast ( $variant, $type ) {}
/**
* (PHP 5, PHP 7)<br/>
* Concatenates two variant values together and returns the result
* @link http://php.net/manual/en/function.variant-cat.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_cat ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Compares two variants
* @link http://php.net/manual/en/function.variant-cmp.php
* @param mixed $left
* @param mixed $right
* @param int $lcid [optional]
* @param int $flags [optional]
* @return int
*/
function variant_cmp ( $left, $right, $lcid, $flags ) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns a variant date representation of a Unix timestamp
* @link http://php.net/manual/en/function.variant-date-from-timestamp.php
* @param int $timestamp
* @return \VARIANT
*/
function variant_date_from_timestamp ( $timestamp ) {}
/**
* (PHP 5, PHP 7)<br/>
* Converts a variant date/time value to Unix timestamp
* @link http://php.net/manual/en/function.variant-date-to-timestamp.php
* @param \VARIANT $variant
* @return int
*/
function variant_date_to_timestamp ( $variant ) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns the result from dividing two variants
* @link http://php.net/manual/en/function.variant-div.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_div ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Performs a bitwise equivalence on two variants
* @link http://php.net/manual/en/function.variant-eqv.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_eqv ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns the integer portion of a variant
* @link http://php.net/manual/en/function.variant-fix.php
* @param mixed $variant
* @return mixed
*/
function variant_fix ( $variant ) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns the type of a variant object
* @link http://php.net/manual/en/function.variant-get-type.php
* @param mixed $variant
* @return int
*/
function variant_get_type ( $variant ) {}
/**
* (PHP 5, PHP 7)<br/>
* Converts variants to integers and then returns the result from dividing them
* @link http://php.net/manual/en/function.variant-idiv.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_idiv ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Performs a bitwise implication on two variants
* @link http://php.net/manual/en/function.variant-imp.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_imp ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns the integer portion of a variant
* @link http://php.net/manual/en/function.variant-int.php
* @param mixed $variant
* @return mixed
*/
function variant_int ( $variant ) {}
/**
* (PHP 5, PHP 7)<br/>
* Divides two variants and returns only the remainder
* @link http://php.net/manual/en/function.variant-mod.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_mod ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Multiplies the values of the two variants
* @link http://php.net/manual/en/function.variant-mul.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_mul ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Performs logical negation on a variant
* @link http://php.net/manual/en/function.variant-neg.php
* @param mixed $variant
* @return mixed
*/
function variant_neg ( $variant ) {}
/**
* (PHP 5, PHP 7)<br/>
* Performs bitwise not negation on a variant
* @link http://php.net/manual/en/function.variant-not.php
* @param mixed $variant
* @return mixed
*/
function variant_not ( $variant ) {}
/**
* (PHP 5, PHP 7)<br/>
* Performs a logical disjunction on two variants
* @link http://php.net/manual/en/function.variant-or.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_or ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Returns the result of performing the power function with two variants
* @link http://php.net/manual/en/function.variant-pow.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_pow ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Rounds a variant to the specified number of decimal places
* @link http://php.net/manual/en/function.variant-round.php
* @param mixed $variant
* @param int $decimals
* @return mixed
*/
function variant_round ( $variant, $decimals ) {}
/**
* (PHP 5, PHP 7)<br/>
* Convert a variant into another type "in-place"
* @link http://php.net/manual/en/function.variant-set-type.php
* @param mixed $variant
* @param int $type
* @return void
*/
function variant_set_type ( $variant, $type ) {}
/**
* (PHP 5, PHP 7)<br/>
* Assigns a new value for a variant object
* @link http://php.net/manual/en/function.variant-set.php
* @param mixed $variant
* @param mixed $value
* @return void
*/
function variant_set ( $variant, $value ) {}
/**
* (PHP 5, PHP 7)<br/>
* Subtracts the value of the right variant from the left variant value
* @link http://php.net/manual/en/function.variant-sub.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_sub ( $left, $right ) {}
/**
* (PHP 5, PHP 7)<br/>
* Performs a logical exclusion on two variants
* @link http://php.net/manual/en/function.variant-xor.php
* @param mixed $left
* @param mixed $right
* @return mixed
*/
function variant_xor ( $left, $right ) {}
define ('CLSCTX_INPROC_SERVER', 1);
define ('CLSCTX_INPROC_HANDLER', 2);
define ('CLSCTX_LOCAL_SERVER', 4);
define ('CLSCTX_REMOTE_SERVER', 16);
define ('CLSCTX_SERVER', 21);
define ('CLSCTX_ALL', 23);
define ('VT_NULL', 1);
define ('VT_EMPTY', 0);
define ('VT_UI1', 17);
define ('VT_I2', 2);
define ('VT_I4', 3);
define ('VT_R4', 4);
define ('VT_R8', 5);
define ('VT_BOOL', 11);
define ('VT_ERROR', 10);
define ('VT_CY', 6);
define ('VT_DATE', 7);
define ('VT_BSTR', 8);
define ('VT_DECIMAL', 14);
define ('VT_UNKNOWN', 13);
define ('VT_DISPATCH', 9);
define ('VT_VARIANT', 12);
define ('VT_I1', 16);
define ('VT_UI2', 18);
define ('VT_UI4', 19);
define ('VT_INT', 22);
define ('VT_UINT', 23);
define ('VT_ARRAY', 8192);
define ('VT_BYREF', 16384);
define ('CP_ACP', 0);
define ('CP_MACCP', 2);
define ('CP_OEMCP', 1);
define ('CP_UTF7', 65000);
define ('CP_UTF8', 65001);
define ('CP_SYMBOL', 42);
define ('CP_THREAD_ACP', 3);
define ('VARCMP_LT', 0);
define ('VARCMP_EQ', 1);
define ('VARCMP_GT', 2);
define ('VARCMP_NULL', 3);
define ('NORM_IGNORECASE', 1);
define ('NORM_IGNORENONSPACE', 2);
define ('NORM_IGNORESYMBOLS', 4);
define ('NORM_IGNOREWIDTH', 131072);
define ('NORM_IGNOREKANATYPE', 65536);
define ('NORM_IGNOREKASHIDA', 262144);
define ('DISP_E_DIVBYZERO', -2147352558);
define ('DISP_E_OVERFLOW', -2147352566);
define ('MK_E_UNAVAILABLE', -2147221021);
// End of com v.
?>