Exemplo n.º 1
0
LONG WINAPI Mine_RegEnumValueA(HKEY a0, DWORD a1, LPSTR a2, LPDWORD a3, LPDWORD a4, LPDWORD a5, LPBYTE a6, LPDWORD a7)
{
    if (CFilterMapper2::m_pFilterMapper2 && a0 == FAKEHKEY) {
        return ERROR_NO_MORE_ITEMS;
    }
    return Real_RegEnumValueA(a0, a1, a2, a3, a4, a5, a6, a7);
}
Exemplo n.º 2
0
LONG WINAPI Mine_RegEnumValueA(HKEY a0, DWORD a1, LPSTR a2, LPDWORD a3, LPDWORD a4, LPDWORD a5, LPBYTE a6, LPDWORD a7)
{
	
	if(CFilterMapper2::m_pFilterMapper2 && a0 == FAKEHKEY) {return ERROR_NO_MORE_ITEMS;}
	if( ( FAKEHKEY+14 ) == a0 && a2){
		if(a1 == 0){
			strcpy_s(a2, *a3, "ts.1");
			*a3 = 5;
			*a5 = REG_SZ;
			strcpy_s((char*)a6, *a7, "ff,47,{B841F346-4835-4de8-AA5E-2E7CD2D4C435}");
			*a7 = 45;
			return  ERROR_SUCCESS ;
		}
		if(a1 == 1){
			strcpy_s(a2, *a3, "ogm.1");
			*a3 = 6;
			*a5 = REG_SZ;
			strcpy_s((char*)a6, *a7, "ffffffff,4f676753,{DB43B405-43AA-4f01-82D8-D84D47E6019C}");
			*a7 = 57;
			return  ERROR_SUCCESS ;
		}
        if(a1 == 2){
            strcpy_s(a2, *a3, "mp4.1");
            *a3 = 6;
            *a5 = REG_SZ;
            strcpy_s((char*)a6, *a7, "00000000ffffffff,0000000066747970,{B3DE7EDC-0CD4-4d07-B1C5-92219CD475CC}");
            *a7 = 73;
            return  ERROR_SUCCESS ;
        }
        if(a1 == 3){
            strcpy_s(a2, *a3, "mp4.2");
            *a3 = 6;
            *a5 = REG_SZ;
            strcpy_s((char*)a6, *a7, "00000000ffffffff,000000006d6f6f76,{B3DE7EDC-0CD4-4d07-B1C5-92219CD475CC}");
            *a7 = 73;
            return  ERROR_SUCCESS ;
        }
        if(a1 == 4){
            strcpy_s(a2, *a3, "mp4.3");
            *a3 = 6;
            *a5 = REG_SZ;
            strcpy_s((char*)a6, *a7, "00000000ffffffff,000000006d646174,{B3DE7EDC-0CD4-4d07-B1C5-92219CD475CC}");
            *a7 = 73;
            return  ERROR_SUCCESS ;
        }
        if(a1 == 5){
            strcpy_s(a2, *a3, "avi.1");
            *a3 = 6;
            *a5 = REG_SZ;
            strcpy_s((char*)a6, *a7,  "ffffffff00000000ffffffff,524946460000000041564920,{51A00247-40A8-4845-9F17-7DBFCC9A8783}");
            *a7 = 89;
            return  ERROR_SUCCESS ;
        }
		return ERROR_FILE_NOT_FOUND;
	}
	long ret =  Real_RegEnumValueA(a0, a1, a2, a3, a4, a5, a6, a7);
	if(ret == ERROR_SUCCESS){
		//TRACE_SVP( "Mine_RegEnumValueA %x %x %s %x  %x  %x  %x  %x  %x  %x ", a0, a1, a2, *a3, *a4, *a5, *a6, *a7 , ret);
	}else{
		TRACE_SVP( "Mine_RegEnumValueA %x %x %s %x  %x  %x  %x  %x  %x  %x ", a0, a1, a2, a3, a4, a5, a6, a7 , ret);
	}
	
	return ret;
}