php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
com_persist.c File Reference
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
#include "com_persist_arginfo.h"

Go to the source code of this file.

Data Structures

struct  php_istream
 
struct  php_com_persist_helper
 

Macros

#define FETCH_STM()
 
#define FETCH_STM_EX()
 
#define CPH_METHOD(fname)
 
#define CPH_FETCH()
 
#define CPH_NO_OBJ()
 

Functions

PHP_COM_DOTNET_API IStream * php_com_wrapper_export_stream (php_stream *stream)
 
 CPH_METHOD (GetCurFileName)
 
 CPH_METHOD (SaveToFile)
 
 CPH_METHOD (LoadFromFile)
 
 CPH_METHOD (GetMaxStreamSize)
 
 CPH_METHOD (InitNew)
 
 CPH_METHOD (LoadFromStream)
 
 CPH_METHOD (SaveToStream)
 
 CPH_METHOD (__construct)
 
void php_com_persist_minit (INIT_FUNC_ARGS)
 

Macro Definition Documentation

◆ CPH_FETCH

#define CPH_FETCH ( )
Value:

Definition at line 274 of file com_persist.c.

◆ CPH_METHOD

#define CPH_METHOD ( fname)
Value:

Definition at line 272 of file com_persist.c.

◆ CPH_NO_OBJ

#define CPH_NO_OBJ ( )
Value:
if (helper->unk == NULL) { php_com_throw_exception(E_INVALIDARG, "No COM object is associated with this helper instance"); RETURN_THROWS(); }
void php_com_throw_exception(HRESULT code, char *message)
Definition com_misc.c:28
#define NULL
Definition gdcache.h:45
#define RETURN_THROWS()
Definition zend_API.h:1060

Definition at line 276 of file com_persist.c.

◆ FETCH_STM

#define FETCH_STM ( )
Value:
php_istream *stm = (php_istream*)This; \
if (GetCurrentThreadId() != stm->engine_thread) \
return RPC_E_WRONG_THREAD;
DWORD engine_thread
Definition com_persist.c:41

Definition at line 48 of file com_persist.c.

◆ FETCH_STM_EX

#define FETCH_STM_EX ( )
Value:
php_istream *stm = (php_istream*)This; \
if (GetCurrentThreadId() != stm->engine_thread) \
return RPC_E_WRONG_THREAD;

Definition at line 53 of file com_persist.c.

Function Documentation

◆ CPH_METHOD() [1/8]

CPH_METHOD ( __construct )

Definition at line 623 of file com_persist.c.

◆ CPH_METHOD() [2/8]

CPH_METHOD ( GetCurFileName )

Definition at line 316 of file com_persist.c.

◆ CPH_METHOD() [3/8]

CPH_METHOD ( GetMaxStreamSize )

Definition at line 454 of file com_persist.c.

◆ CPH_METHOD() [4/8]

CPH_METHOD ( InitNew )

Definition at line 489 of file com_persist.c.

◆ CPH_METHOD() [5/8]

CPH_METHOD ( LoadFromFile )

Definition at line 410 of file com_persist.c.

◆ CPH_METHOD() [6/8]

CPH_METHOD ( LoadFromStream )

Definition at line 516 of file com_persist.c.

◆ CPH_METHOD() [7/8]

CPH_METHOD ( SaveToFile )

Definition at line 349 of file com_persist.c.

◆ CPH_METHOD() [8/8]

CPH_METHOD ( SaveToStream )

Definition at line 574 of file com_persist.c.

◆ php_com_persist_minit()

void php_com_persist_minit ( INIT_FUNC_ARGS )

Definition at line 709 of file com_persist.c.

◆ php_com_wrapper_export_stream()

PHP_COM_DOTNET_API IStream * php_com_wrapper_export_stream ( php_stream * stream)

Definition at line 254 of file com_persist.c.