src/native/addrbook/msoutlook/MAPIBitness.cxx
/**
 * Returns the bitness of the Outlook installation.
 *
 * @return 64 if Outlook 64 bits version is installed. 32 if Outlook 32 bits
 * version is installed. -1 otherwise.
 */
Returns the bitness of the Outlook installation.
@return 64 if Outlook 64 bits version is installed. 32 if Outlook 32 bits
version is installed. -1 otherwise.
Returns the bitness of the Outlook installation . @return 64 if Outlook 64 bits version is installed . 32 if Outlook 32 bits version is installed . - 1 otherwise .
int MAPIBitness_getOutlookBitnessVersion(void)
{
    DWORD pathLength = 0;
    for(int i = 0; i < nbOutlookRegister; ++i)
    {
        if(MsiProvideQualifiedComponent(
                    outlookRegister[i],
                    TEXT("outlook.x64.exe"),
                    (DWORD) INSTALLMODE_DEFAULT,
                    NULL,
                    &pathLength)
                == ERROR_SUCCESS)
        {
            return 64;
        }
        else if(MsiProvideQualifiedComponent(
                    outlookRegister[i],
                    TEXT("outlook.exe"),
                    (DWORD) INSTALLMODE_DEFAULT,
                    NULL,
                    &pathLength)
                == ERROR_SUCCESS)
        {
            return 32;
        }
    }
    return -1;
}
int MAPIBitness_getOutlookBitnessVersion ( void ) { DWORD pathLength = 0 ; for ( int i = 0 ; i < nbOutlookRegister ; ++ i ) { if ( MsiProvideQualifiedComponent ( outlookRegister [ i ] , TEXT ( " " ) , ( DWORD ) INSTALLMODE_DEFAULT , NULL , & pathLength ) == ERROR_SUCCESS ) { return 64 ; } else if ( MsiProvideQualifiedComponent ( outlookRegister [ i ] , TEXT ( " " ) , ( DWORD ) INSTALLMODE_DEFAULT , NULL , & pathLength ) == ERROR_SUCCESS ) { return 32 ; } } return -1 ; }
Returns the bitness of the Outlook installation.
Returns the bitness of the Outlook installation .