ArrowOperation7 VISTA -> XP

Posts 1–3 of 3 · Page 1 of 1
Operation7 VISTA -> XP
Hello all,This is a source code on how to make op7 if u have Vista to XP. I hope it works,post results.
Code:
enum
{
    WIN_2000 = 0, WIN_XP, WIN_VISTA,  WIN_7
};


int GetWinVersion()
{
    OSVERSIONINFO info;
    OSVERSIONINFOEX ex;

    ZeroMemory( &info, sizeof( OSVERSIONINFO ) );
    ZeroMemory( &ex, sizeof( OSVERSIONINFOEX ) );
    info.dwOSVersionInfoSize = sizeof( OSVERSIONINFO );
    ex.dwOSVersionInfoSize = sizeof( OSVERSIONINFOEX );

    GetVersionEx( &info );
    GetVersionEx( ( OSVERSIONINFO * ) &ex );

    if( info.dwMajorVersion == 5 && info.dwMinorVersion == 0 )
        return WIN_2000;

    if( info.dwMajorVersion == 5 && info.dwMinorVersion == 1 )
        return WIN_XP;

    if( info.dwMajorVersion == 6 && info.dwMinorVersion == 0 && ex.wProductType == VER_NT_WORKSTATION )
        return WIN_VISTA;

    if( info.dwMajorVersion == 6 && info.dwMinorVersion == 1 && ex.wProductType == VER_NT_WORKSTATION )
        return WIN_7;

    return -1;
}
Code:
if(anyfunction){

int ver = GetWinVersion();

    switch( ver )
    {
		
        case -1:
           PrintText(m_font1, 320,83,0, 255, 0,255,   "Unknown");
		  
            break;
        case WIN_2000:
          PrintText(m_font1,320,83,0, 255, 0,255,   "Windows 2000");
		  
            break;
        case WIN_XP:
            PrintText(m_font1, 320,83,0, 255, 0,255,   "Windows XP"); 
			
            break;
        case WIN_VISTA:
            PrintText(m_font1, 320,83,0, 255, 0,255,   "Windows Vista");
		
            break;
        case WIN_7:
			PrintText(m_font1, 320,83,0, 255, 0,255, "Windows7"); 
			
            break;
		
    }
}
Now until you know what OS they are using u can simply Change the Addies:
Code:
if(WIN_XP)addy+=0x30;
heyy about ur HALO signature thats on the youtube in how to make a forum signature in photoshop?
yeah I'm a beginner lol so that's why.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?