Lines Matching refs:res

41 	zend_resource *res;  member
96 if (stm->res) in stm_release()
97 zend_list_delete(stm->res); in stm_release()
254 zend_list_delete(stm->stream->res); in istream_destructor()
273 GC_ADDREF(stream->res); in php_com_wrapper_export_stream()
274 stm->res = zend_register_resource(stm, le_istream); in php_com_wrapper_export_stream()
325 HRESULT res; in CPH_METHOD() local
335 res = get_persist_file(helper); in CPH_METHOD()
337 res = IPersistFile_GetCurFile(helper->ipf, &olename); in CPH_METHOD()
339 if (res == S_OK) { in CPH_METHOD()
343 } else if (res == S_FALSE) { in CPH_METHOD()
347 php_com_throw_exception(res, NULL); in CPH_METHOD()
349 php_com_throw_exception(res, NULL); in CPH_METHOD()
358 HRESULT res; in CPH_METHOD() local
372 res = get_persist_file(helper); in CPH_METHOD()
388 res = IPersistFile_Save(helper->ipf, olefilename, remember); in CPH_METHOD()
389 if (SUCCEEDED(res)) { in CPH_METHOD()
391 res = IPersistFile_GetCurFile(helper->ipf, &olefilename); in CPH_METHOD()
392 if (S_OK == res) { in CPH_METHOD()
406 if (FAILED(res)) { in CPH_METHOD()
407 php_com_throw_exception(res, NULL); in CPH_METHOD()
411 php_com_throw_exception(res, NULL); in CPH_METHOD()
419 HRESULT res; in CPH_METHOD() local
433 res = get_persist_file(helper); in CPH_METHOD()
447 res = IPersistFile_Load(helper->ipf, olefilename, (DWORD)flags); in CPH_METHOD()
450 if (FAILED(res)) { in CPH_METHOD()
451 php_com_throw_exception(res, NULL); in CPH_METHOD()
455 php_com_throw_exception(res, NULL); in CPH_METHOD()
463 HRESULT res; in CPH_METHOD() local
473 res = get_persist_stream_init(helper); in CPH_METHOD()
475 res = IPersistStreamInit_GetSizeMax(helper->ipsi, &size); in CPH_METHOD()
477 res = get_persist_stream(helper); in CPH_METHOD()
479 res = IPersistStream_GetSizeMax(helper->ips, &size); in CPH_METHOD()
481 php_com_throw_exception(res, NULL); in CPH_METHOD()
486 if (res != S_OK) { in CPH_METHOD()
487 php_com_throw_exception(res, NULL); in CPH_METHOD()
498 HRESULT res; in CPH_METHOD() local
507 res = get_persist_stream_init(helper); in CPH_METHOD()
509 res = IPersistStreamInit_InitNew(helper->ipsi); in CPH_METHOD()
511 if (res != S_OK) { in CPH_METHOD()
512 php_com_throw_exception(res, NULL); in CPH_METHOD()
517 php_com_throw_exception(res, NULL); in CPH_METHOD()
528 HRESULT res; in CPH_METHOD() local
548 res = S_OK; in CPH_METHOD()
555 res = OleLoadFromStream(stm, &IID_IDispatch, &disp); in CPH_METHOD()
557 if (SUCCEEDED(res)) { in CPH_METHOD()
561 res = get_persist_stream_init(helper); in CPH_METHOD()
563 res = IPersistStreamInit_Load(helper->ipsi, stm); in CPH_METHOD()
565 res = get_persist_stream(helper); in CPH_METHOD()
567 res = IPersistStreamInit_Load(helper->ipsi, stm); in CPH_METHOD()
573 if (FAILED(res)) { in CPH_METHOD()
574 php_com_throw_exception(res, NULL); in CPH_METHOD()
586 HRESULT res; in CPH_METHOD() local
608 res = get_persist_stream_init(helper); in CPH_METHOD()
610 res = IPersistStreamInit_Save(helper->ipsi, stm, TRUE); in CPH_METHOD()
612 res = get_persist_stream(helper); in CPH_METHOD()
614 res = IPersistStream_Save(helper->ips, stm, TRUE); in CPH_METHOD()
620 if (FAILED(res)) { in CPH_METHOD()
621 php_com_throw_exception(res, NULL); in CPH_METHOD()