[Windows Phone 8 Q&A, Help & Troubleshooting] carballude:
Hi :)

I'm trying to compile WP8 Native Access project. FileSystem compiles without worries, but Registry is giving me a hard time.

I've used the winreg.h file from windows 8 sdk and extracted the libs from KERNELBASE and ADVAPI32LEGACY. However the linker still complains about it. Any ideas on why?

These are the errors:

Error	1	error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: static bool __cdecl Registry::NativeRegistry::CanWrite(enum Registry::RegistryHive,class Platform::String ^,class Platform::String ^)" (?CanWrite@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@1@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	2	error LNK2019: unresolved external symbol __imp__RegCreateKeyExW@36 referenced in function "public: static bool __cdecl Registry::NativeRegistry::CreateKey(enum Registry::RegistryHive,class Platform::String ^)" (?CreateKey@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	3	error LNK2019: unresolved external symbol __imp__RegDeleteKeyW@8 referenced in function "public: static bool __cdecl Registry::NativeRegistry::DeleteKey(enum Registry::RegistryHive,class Platform::String ^,bool)" (?DeleteKey@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@_N@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	10	error LNK2019: unresolved external symbol __imp__RegDeleteTreeW@8 referenced in function "public: static bool __cdecl Registry::NativeRegistry::DeleteKey(enum Registry::RegistryHive,class Platform::String ^,bool)" (?DeleteKey@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@_N@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	4	error LNK2019: unresolved external symbol __imp__RegDeleteValueW@8 referenced in function "public: static bool __cdecl Registry::NativeRegistry::DeleteValue(enum Registry::RegistryHive,class Platform::String ^,class Platform::String ^)" (?DeleteValue@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@1@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	5	error LNK2019: unresolved external symbol __imp__RegEnumKeyExW@32 referenced in function "bool __cdecl Registry::EnumSubKeys(struct HKEY__ *,wchar_t * *,unsigned long,unsigned long)" (?EnumSubKeys@Registry@@YA_NPAUHKEY__@@PAPA_WKK@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	6	error LNK2019: unresolved external symbol __imp__RegEnumValueW@32 referenced in function "?GetValues@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@PAP$01$AAV?$Array@UValueInfo@Registry@@$00@5@@Z" (?GetValues@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@PAP$01$AAV?$Array@UValueInfo@Registry@@$00@5@@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	11	error LNK2019: unresolved external symbol __imp__RegGetValueW@28 referenced in function "?ReadBinary@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@1PAP$01$AAV?$Array@E$00@5@@Z" (?ReadBinary@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@1PAP$01$AAV?$Array@E$00@5@@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	7	error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "public: static bool __cdecl Registry::NativeRegistry::CanWrite(enum Registry::RegistryHive,class Platform::String ^,class Platform::String ^)" (?CanWrite@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@1@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	8	error LNK2019: unresolved external symbol __imp__RegQueryInfoKeyW@48 referenced in function "?GetSubKeyNames@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@PAP$01$AAV?$Array@P$AAVString@Platform@@$00@5@@Z" (?GetSubKeyNames@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@PAP$01$AAV?$Array@P$AAVString@Platform@@$00@5@@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry

Error	9	error LNK2019: unresolved external symbol __imp__RegSetValueExW@24 referenced in function "?WriteBinary@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@1P$01$ABV?$Array@E$00@5@@Z" (?WriteBinary@NativeRegistry@Registry@@SA_NW4RegistryHive@2@P$AAVString@Platform@@1P$01$ABV?$Array@E$00@5@@Z)	\Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\Registry.obj	Registry