helper 295 ext/com_dotnet/com_persist.c #define CPH_FETCH() php_com_persist_helper *helper = (php_com_persist_helper*)Z_OBJ_P(getThis()); helper 297 ext/com_dotnet/com_persist.c #define CPH_NO_OBJ() if (helper->unk == NULL) { php_com_throw_exception(E_INVALIDARG, "No COM object is associated with this helper instance"); return; } helper 311 ext/com_dotnet/com_persist.c static inline HRESULT get_persist_stream(php_com_persist_helper *helper) helper 313 ext/com_dotnet/com_persist.c if (!helper->ips && helper->unk) { helper 314 ext/com_dotnet/com_persist.c return IUnknown_QueryInterface(helper->unk, &IID_IPersistStream, &helper->ips); helper 316 ext/com_dotnet/com_persist.c return helper->ips ? S_OK : E_NOTIMPL; helper 319 ext/com_dotnet/com_persist.c static inline HRESULT get_persist_stream_init(php_com_persist_helper *helper) helper 321 ext/com_dotnet/com_persist.c if (!helper->ipsi && helper->unk) { helper 322 ext/com_dotnet/com_persist.c return IUnknown_QueryInterface(helper->unk, &IID_IPersistStreamInit, &helper->ipsi); helper 324 ext/com_dotnet/com_persist.c return helper->ipsi ? S_OK : E_NOTIMPL; helper 327 ext/com_dotnet/com_persist.c static inline HRESULT get_persist_file(php_com_persist_helper *helper) helper 329 ext/com_dotnet/com_persist.c if (!helper->ipf && helper->unk) { helper 330 ext/com_dotnet/com_persist.c return IUnknown_QueryInterface(helper->unk, &IID_IPersistFile, &helper->ipf); helper 332 ext/com_dotnet/com_persist.c return helper->ipf ? S_OK : E_NOTIMPL; helper 346 ext/com_dotnet/com_persist.c res = get_persist_file(helper); helper 347 ext/com_dotnet/com_persist.c if (helper->ipf) { helper 348 ext/com_dotnet/com_persist.c res = IPersistFile_GetCurFile(helper->ipf, &olename); helper 353 ext/com_dotnet/com_persist.c &len, helper->codepage); helper 384 ext/com_dotnet/com_persist.c res = get_persist_file(helper); helper 385 ext/com_dotnet/com_persist.c if (helper->ipf) { helper 403 ext/com_dotnet/com_persist.c olefilename = php_com_string_to_olestring(filename, strlen(fullpath), helper->codepage); helper 406 ext/com_dotnet/com_persist.c res = IPersistFile_Save(helper->ipf, olefilename, remember); helper 409 ext/com_dotnet/com_persist.c res = IPersistFile_GetCurFile(helper->ipf, &olefilename); helper 411 ext/com_dotnet/com_persist.c IPersistFile_SaveCompleted(helper->ipf, olefilename); helper 416 ext/com_dotnet/com_persist.c IPersistFile_SaveCompleted(helper->ipf, olefilename); helper 447 ext/com_dotnet/com_persist.c res = get_persist_file(helper); helper 448 ext/com_dotnet/com_persist.c if (helper->ipf) { helper 465 ext/com_dotnet/com_persist.c olefilename = php_com_string_to_olestring(fullpath, strlen(fullpath), helper->codepage); helper 468 ext/com_dotnet/com_persist.c res = IPersistFile_Load(helper->ipf, olefilename, (DWORD)flags); helper 491 ext/com_dotnet/com_persist.c res = get_persist_stream_init(helper); helper 492 ext/com_dotnet/com_persist.c if (helper->ipsi) { helper 493 ext/com_dotnet/com_persist.c res = IPersistStreamInit_GetSizeMax(helper->ipsi, &size); helper 495 ext/com_dotnet/com_persist.c res = get_persist_stream(helper); helper 496 ext/com_dotnet/com_persist.c if (helper->ips) { helper 497 ext/com_dotnet/com_persist.c res = IPersistStream_GetSizeMax(helper->ips, &size); helper 522 ext/com_dotnet/com_persist.c res = get_persist_stream_init(helper); helper 523 ext/com_dotnet/com_persist.c if (helper->ipsi) { helper 524 ext/com_dotnet/com_persist.c res = IPersistStreamInit_InitNew(helper->ipsi); helper 568 ext/com_dotnet/com_persist.c if (helper->unk == NULL) { helper 578 ext/com_dotnet/com_persist.c res = get_persist_stream_init(helper); helper 579 ext/com_dotnet/com_persist.c if (helper->ipsi) { helper 580 ext/com_dotnet/com_persist.c res = IPersistStreamInit_Load(helper->ipsi, stm); helper 582 ext/com_dotnet/com_persist.c res = get_persist_stream(helper); helper 583 ext/com_dotnet/com_persist.c if (helper->ips) { helper 584 ext/com_dotnet/com_persist.c res = IPersistStreamInit_Load(helper->ipsi, stm); helper 627 ext/com_dotnet/com_persist.c res = get_persist_stream_init(helper); helper 628 ext/com_dotnet/com_persist.c if (helper->ipsi) { helper 629 ext/com_dotnet/com_persist.c res = IPersistStreamInit_Save(helper->ipsi, stm, TRUE); helper 631 ext/com_dotnet/com_persist.c res = get_persist_stream(helper); helper 632 ext/com_dotnet/com_persist.c if (helper->ips) { helper 633 ext/com_dotnet/com_persist.c res = IPersistStream_Save(helper->ips, stm, TRUE); helper 674 ext/com_dotnet/com_persist.c helper->unk = (IUnknown*)V_DISPATCH(&obj->v); helper 675 ext/com_dotnet/com_persist.c IUnknown_AddRef(helper->unk); helper 676 ext/com_dotnet/com_persist.c helper->codepage = obj->code_page; helper 741 ext/com_dotnet/com_persist.c php_com_persist_helper *helper; helper 743 ext/com_dotnet/com_persist.c helper = emalloc(sizeof(*helper)); helper 744 ext/com_dotnet/com_persist.c memset(helper, 0, sizeof(*helper)); helper 746 ext/com_dotnet/com_persist.c zend_object_std_init(&helper->std, helper_ce); helper 747 ext/com_dotnet/com_persist.c helper->std.handlers = &helper_handlers; helper 749 ext/com_dotnet/com_persist.c return &helper->std;