Lines Matching refs:res
339 HRESULT res; in CPH_METHOD() local
345 res = get_persist_file(helper); in CPH_METHOD()
347 res = IPersistFile_GetCurFile(helper->ipf, &olename); in CPH_METHOD()
349 if (res == S_OK) { in CPH_METHOD()
355 } else if (res == S_FALSE) { in CPH_METHOD()
359 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
361 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
371 HRESULT res; in CPH_METHOD() local
380 res = get_persist_file(helper); in CPH_METHOD()
402 res = IPersistFile_Save(helper->ipf, olefilename, remember); in CPH_METHOD()
403 if (SUCCEEDED(res)) { in CPH_METHOD()
405 res = IPersistFile_GetCurFile(helper->ipf, &olefilename); in CPH_METHOD()
406 if (S_OK == res) { in CPH_METHOD()
420 if (FAILED(res)) { in CPH_METHOD()
421 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
425 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
434 HRESULT res; in CPH_METHOD() local
443 res = get_persist_file(helper); in CPH_METHOD()
464 res = IPersistFile_Load(helper->ipf, olefilename, flags); in CPH_METHOD()
467 if (FAILED(res)) { in CPH_METHOD()
468 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
472 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
481 HRESULT res; in CPH_METHOD() local
487 res = get_persist_stream_init(helper); in CPH_METHOD()
489 res = IPersistStreamInit_GetSizeMax(helper->ipsi, &size); in CPH_METHOD()
491 res = get_persist_stream(helper); in CPH_METHOD()
493 res = IPersistStream_GetSizeMax(helper->ips, &size); in CPH_METHOD()
495 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
500 if (res != S_OK) { in CPH_METHOD()
501 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
513 HRESULT res; in CPH_METHOD() local
518 res = get_persist_stream_init(helper); in CPH_METHOD()
520 res = IPersistStreamInit_InitNew(helper->ipsi); in CPH_METHOD()
522 if (res != S_OK) { in CPH_METHOD()
523 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
528 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
540 HRESULT res; in CPH_METHOD() local
561 res = S_OK; in CPH_METHOD()
568 res = OleLoadFromStream(stm, &IID_IDispatch, &disp); in CPH_METHOD()
570 if (SUCCEEDED(res)) { in CPH_METHOD()
574 res = get_persist_stream_init(helper); in CPH_METHOD()
576 res = IPersistStreamInit_Load(helper->ipsi, stm); in CPH_METHOD()
578 res = get_persist_stream(helper); in CPH_METHOD()
580 res = IPersistStreamInit_Load(helper->ipsi, stm); in CPH_METHOD()
586 if (FAILED(res)) { in CPH_METHOD()
587 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()
600 HRESULT res; in CPH_METHOD() local
623 res = get_persist_stream_init(helper); in CPH_METHOD()
625 res = IPersistStreamInit_Save(helper->ipsi, stm, TRUE); in CPH_METHOD()
627 res = get_persist_stream(helper); in CPH_METHOD()
629 res = IPersistStream_Save(helper->ips, stm, TRUE); in CPH_METHOD()
635 if (FAILED(res)) { in CPH_METHOD()
636 php_com_throw_exception(res, NULL TSRMLS_CC); in CPH_METHOD()