--- mstools/h/winreg.h 2018/08/09 18:20:26 1.1.1.1 +++ mstools/h/winreg.h 2018/08/09 18:21:02 1.1.1.2 @@ -20,6 +20,10 @@ Author: #ifndef _WINREG_ #define _WINREG_ +#ifdef __cplusplus +extern "C" { +#endif + // // Requested Key access mask type. // @@ -30,7 +34,8 @@ typedef ACCESS_MASK REGSAM; // Type definitions. // -typedef HANDLE HKEY, *PHKEY; +DECLARE_HANDLE(HKEY); +typedef HKEY *PHKEY; // // Reserved Key Handles. @@ -390,7 +395,7 @@ APIENTRY RegQueryValueW ( HKEY hKey, LPWSTR lpSubKey, - LPSTR lpValue, + LPWSTR lpValue, LPDWORD lpcbValue ); #ifdef UNICODE @@ -510,7 +515,7 @@ RegSetValueW ( HKEY hKey, LPWSTR lpSubKey, DWORD dwType, - LPSTR lpData, + LPWSTR lpData, DWORD cbData ); #ifdef UNICODE @@ -609,5 +614,8 @@ AbortSystemShutdownW( #define AbortSystemShutdown AbortSystemShutdownA #endif // !UNICODE +#ifdef __cplusplus +} +#endif #endif // _WINREG_