38 lines · 739 B · C++
RawDownload
/*  name      Vx Api  type      trojan  cve       —  year      unknown  os        Windows  authors   unknown  source    krisyotam  archived  krisyotam (2026)  notes     — */#include "Win32Helper.h" DWORD IsRegistryKeyValidW(_In_ HKEY PredefinedKey, _In_ PWCHAR Path){	HKEY hKey = NULL;	DWORD dwError = ERROR_SUCCESS; 	dwError = RegOpenKeyExW(PredefinedKey, Path, 0, GENERIC_READ | GENERIC_WRITE, &hKey); 	if (hKey)		RegCloseKey(hKey); 	return dwError;} DWORD IsRegistryKeyValidA(_In_ HKEY PredefinedKey, _In_ PCHAR Path){	HKEY hKey = NULL;	DWORD dwError = ERROR_SUCCESS; 	dwError = RegOpenKeyExA(PredefinedKey, Path, 0, GENERIC_READ | GENERIC_WRITE, &hKey); 	if (hKey)		RegCloseKey(hKey); 	return dwError;}