Files
youssefnoob003-SindriKit/include/sindri/common/hash.h
T
2026-06-22 12:38:04 +01:00

33 lines
792 B
C

#ifndef SND_COMMON_HASH_H
#define SND_COMMON_HASH_H
#include <sindri/common/helpers.h>
#include <windows.h>
SND_BEGIN_EXTERN_C
/**
* @brief Computes the configured hash of a standard ASCII string
* (Case-Sensitive).
* @note Use this for API names from the Export Directory.
*/
DWORD snd_hash(const char *str);
/**
* @brief Computes the configured hash of a standard ASCII string, converting to
* lowercase.
* @note Use this for DLL names found in the PE Import Directory.
*/
DWORD snd_hash_lower(const char *str);
/**
* @brief Computes the configured hash of a wide string, converting to lowercase
* (Case-Insensitive).
* @note Use this for finding DLL module names in the PEB.
*/
DWORD snd_hash_wide_lower(const wchar_t *str);
SND_END_EXTERN_C
#endif // SND_COMMON_HASH_H