[split]Porting applicaiton from vs6.0 to vs2005 Programming Software Development by gvkumar … { classesRoot = HKEY_CLASSES_ROOT, currentUser = HKEY_CURRENT_USER, localMachine = HKEY_LOCAL_MACHINE, currentConfig = HKEY_CURRENT_CONFIG, users = HKEY_USERS, performanceData = HKEY_PERFORMANCE_DATA, //Windows NT/2000 dynData = HKEY_DYN_DATA //Windows 95/98 };[/code… Re: [split]Porting applicaiton from vs6.0 to vs2005 Programming Software Development by Fbody I believe the post directly in front of yours answers your question... Did you even read the thread before you hijacked it? [QUOTE=Banfa;1191658]From winreg.h [code] #define HKEY_CLASSES_ROOT (( HKEY ) (ULONG_PTR)((LONG)0x80000000) ) #define HKEY_CURRENT_USER (( HKEY ) (ULONG_PTR)((LONG)0x80000001) ) #… Re: [split]Porting applicaiton from vs6.0 to vs2005 Programming Software Development by gvkumar i read the thread before but it could not help me. the enum is refering HKEY_CLASSES_ROOT which are defined in winreg.h and this headerfile is in location "c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winreg.h" as this is not my applicaton file ,even thought i change it will effect other applicatoin which it is …