Beispiel #1
0
void skipStub(LauncherProperties * props) {
    if(props->isOnlyStub) {
        WCHAR * os;
        props->status = EXIT_CODE_STUB;        
        os = appendStringW(NULL, L"It`s only the launcher stub.\nOS: ");
        if(is9x()) os = appendStringW(os, L"Windows 9x");
        if(isNT()) os = appendStringW(os, L"Windows NT");
        if(is2k()) os = appendStringW(os, L"Windows 2000");
        if(isXP()) os = appendStringW(os, L"Windows XP");
        if(is2003())  os = appendStringW(os, L"Windows 2003");
        if(isVista()) os = appendStringW(os, L"Windows Vista");
        if(is2008())  os = appendStringW(os, L"Windows 2008");
        if(is7())     os = appendStringW(os, L"Windows 7");
	if(IsWow64) os = appendStringW(os, L" x64");
        showMessageW(props,  os , 0);
	FREE(os);
    } else {
        skipLauncherStub(props, STUB_FILL_SIZE);
        if(!isOK(props)) {
            writeMessageA(props, OUTPUT_LEVEL_NORMAL, 1,
                    "Error! Can`t process launcher stub", 1);
            showErrorW(props, INTEGRITY_ERROR_PROP, 1, props->exeName);
        }
    }
}
void TvideoCodecLibavcodecDxva::create(void)
{
    nARMode = 1;
    inPosB = 1;
    nDXVAMode = MODE_SOFTWARE;
    pDXVADecoder = NULL;
    sar = AVRational();
    switch (dxvaCodecId) {
        case CODEC_ID_H264_DXVA:
            dxvaParamsp = &DXVA_H264;
            if (isVista()) {
                dxvaParamsp = &DXVA_H264_VISTA;
            }
            break;
        case CODEC_ID_VC1_DXVA:
            dxvaParamsp = &DXVA_VC1;
            break;
            /*case CODEC_ID_MPEG2_DXVA:dxvaParamsp=&DXVA_Mpeg2;break;
            */
    }
}