VC编辑器的配色方案

Win32Type IsShellType()

{

Win32Type ShellType;

DWORD winVer;

OSVERSIONINFO *osvi;

winVer=GetVersion();

if(winVer<0x80000000){/*NT */

ShellType=WinNT3;

osvi= (OSVERSIONINFO *)malloc(sizeof(OSVERSIONINFO));

if (osvi!=NULL){

memset(osvi,0,sizeof(OSVERSIONINFO));

osvi->dwOSVersionInfoSize=sizeof(OSVERSIONINFO);

GetVersionEx(osvi);

if (osvi->dwMajorVersion>=<chmetcnv unitname="l" sourcevalue="4" hasspace="False" negative="False" numbertype="1" tcsc="0" w:st="on"></chmetcnv>4L)

ShellType=WinNT4orHigher;//yup, it is NT 4 or higher!

free(osvi);

}

}

else if (LOBYTE(LOWORD(winVer))<4)

ShellType=Win32s;/*Win32s*/

else

ShellType=Windoze95;/*Windoze95*/

return ShellType;

}

上面是我以前用的,其实就是va默认的,现在腻了,找了个新的,如下图

你可能感兴趣的:(vc++)