Lines Matching refs:handle

266 bool GetMsiProp( MSIHANDLE handle, LPCSTR name, /*out*/std::string& value )  in GetMsiProp()  argument
270 if (MsiGetPropertyA(handle, name, dummy, &sz) == ERROR_MORE_DATA) in GetMsiProp()
276 MsiGetPropertyA(handle, name, buff, &sz); in GetMsiProp()
284 bool IsSetMsiProp( MSIHANDLE handle, LPCSTR name ) in IsSetMsiProp() argument
287 GetMsiProp( handle, name, val ); in IsSetMsiProp()
292 static void registerForExtension( MSIHANDLE handle, const int nIndex, bool bRegister ) in registerForExtension() argument
300 MsiSetPropertyA( handle, sPropName, "1" ); in registerForExtension()
303 MsiSetPropertyA( handle, sPropName, "0" ); in registerForExtension()
309 static void registerForExtensions( MSIHANDLE handle, BOOL bRegisterAll ) in registerForExtensions() argument
316 registerForExtension( handle, nIndex, true ); in registerForExtensions()
340 static void registerSomeExtensions( MSIHANDLE handle, const int nStart, const int nEnd, bool bRegis… in registerSomeExtensions() argument
346 registerForExtension( handle, nIndex++, bRegister ); in registerSomeExtensions()
353 extern "C" UINT __stdcall LookForRegisteredExtensions( MSIHANDLE handle ) in LookForRegisteredExtensions() argument
363 bool bRegisterNone = IsSetMsiProp( handle, "REGISTER_NO_MSO_TYPES" ); in LookForRegisteredExtensions()
365 …if ( ( ERROR_SUCCESS == MsiGetFeatureState( handle, L"gm_p_Wrt", &current_state, &future_state ) )… in LookForRegisteredExtensions()
375 …if ( ( ERROR_SUCCESS == MsiGetFeatureState( handle, L"gm_p_Calc", &current_state, &future_state ) … in LookForRegisteredExtensions()
385 …if ( ( ERROR_SUCCESS == MsiGetFeatureState( handle, L"gm_p_Impress", &current_state, &future_state… in LookForRegisteredExtensions()
395 MsiSetPropertyA( handle, "SELECT_WORD", "" ); in LookForRegisteredExtensions()
396 MsiSetPropertyA( handle, "SELECT_EXCEL", "" ); in LookForRegisteredExtensions()
397 MsiSetPropertyA( handle, "SELECT_POWERPOINT", "" ); in LookForRegisteredExtensions()
401 if ( IsSetMsiProp( handle, "REGISTER_ALL_MSO_TYPES" ) ) in LookForRegisteredExtensions()
404 MsiSetPropertyA( handle, "SELECT_WORD", "1" ); in LookForRegisteredExtensions()
406 MsiSetPropertyA( handle, "SELECT_EXCEL", "1" ); in LookForRegisteredExtensions()
408 MsiSetPropertyA( handle, "SELECT_POWERPOINT", "1" ); in LookForRegisteredExtensions()
414 MsiSetPropertyA( handle, "SELECT_WORD", "1" ); in LookForRegisteredExtensions()
419 MsiSetPropertyA( handle, "SELECT_EXCEL", "1" ); in LookForRegisteredExtensions()
424 MsiSetPropertyA( handle, "SELECT_POWERPOINT", "1" ); in LookForRegisteredExtensions()
430 MsiSetPropertyA( handle, "FILETYPEDIALOGUSED", "1" ); in LookForRegisteredExtensions()
436 extern "C" UINT __stdcall RegisterSomeExtensions( MSIHANDLE handle ) in RegisterSomeExtensions() argument
440 if ( IsSetMsiProp( handle, "SELECT_WORD" ) ) in RegisterSomeExtensions()
442 registerSomeExtensions( handle, WORD_START, EXCEL_START, true ); in RegisterSomeExtensions()
443 MsiSetFeatureState( handle, L"gm_p_Wrt_MSO_Reg", INSTALLSTATE_LOCAL ); in RegisterSomeExtensions()
448 registerSomeExtensions( handle, WORD_START, EXCEL_START, false ); in RegisterSomeExtensions()
449 MsiSetFeatureState( handle, L"gm_p_Wrt_MSO_Reg", INSTALLSTATE_ABSENT ); in RegisterSomeExtensions()
452 if ( IsSetMsiProp( handle, "SELECT_EXCEL" ) ) in RegisterSomeExtensions()
454 registerSomeExtensions( handle, EXCEL_START, POWERPOINT_START, true ); in RegisterSomeExtensions()
455 MsiSetFeatureState( handle, L"gm_p_Calc_MSO_Reg", INSTALLSTATE_LOCAL ); in RegisterSomeExtensions()
460 registerSomeExtensions( handle, EXCEL_START, POWERPOINT_START, false ); in RegisterSomeExtensions()
461 MsiSetFeatureState( handle, L"gm_p_Calc_MSO_Reg", INSTALLSTATE_ABSENT ); in RegisterSomeExtensions()
464 if ( IsSetMsiProp( handle, "SELECT_POWERPOINT" ) ) in RegisterSomeExtensions()
466 registerSomeExtensions( handle, POWERPOINT_START, POWERPOINT_END, true ); in RegisterSomeExtensions()
467 MsiSetFeatureState( handle, L"gm_p_Impress_MSO_Reg", INSTALLSTATE_LOCAL ); in RegisterSomeExtensions()
472 registerSomeExtensions( handle, POWERPOINT_START, POWERPOINT_END, false ); in RegisterSomeExtensions()
473 MsiSetFeatureState( handle, L"gm_p_Impress_MSO_Reg", INSTALLSTATE_ABSENT ); in RegisterSomeExtensions()
480 extern "C" UINT __stdcall FindRegisteredExtensions( MSIHANDLE handle ) in FindRegisteredExtensions() argument
482 if ( IsSetMsiProp( handle, "FILETYPEDIALOGUSED" ) ) in FindRegisteredExtensions()
490 bool bRegisterAll = IsSetMsiProp( handle, "REGISTER_ALL_MSO_TYPES" ); in FindRegisteredExtensions()
492 if ( IsSetMsiProp( handle, "REGISTER_NO_MSO_TYPES" ) ) in FindRegisteredExtensions()
504 if ( IsSetMsiProp( handle, "SELECT_WORD" ) ) in FindRegisteredExtensions()
505 registerSomeExtensions( handle, WORD_START, EXCEL_START, true ); in FindRegisteredExtensions()
506 if ( IsSetMsiProp( handle, "SELECT_EXCEL" ) ) in FindRegisteredExtensions()
507 registerSomeExtensions( handle, EXCEL_START, POWERPOINT_START, true ); in FindRegisteredExtensions()
508 if ( IsSetMsiProp( handle, "SELECT_POWERPOINT" ) ) in FindRegisteredExtensions()
509 registerSomeExtensions( handle, POWERPOINT_START, POWERPOINT_END, true ); in FindRegisteredExtensions()
511 registerForExtensions( handle, bRegisterAll ); in FindRegisteredExtensions()