Skip to content

Commit

Permalink
incomplete utils.h, builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tarterp committed Nov 17, 2023
1 parent bdc3de4 commit 4a1993d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions C/FileDeleteRecordPluginDriver/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#define ObjectNameInformation (OBJECT_INFORMATION_CLASS)1



const unsigned long POOL_TAG = '0RTS';
const wchar_t* backup_directory = L"\\??\\C:\\deleted";

Expand Down Expand Up @@ -44,14 +42,16 @@ consteval uint64_t fnv1a(const char* s)
return fnv1a_imp(14695981039346656037ull, s);
}

#ifdef KCPP
// Abuse template instantion rules to generate a unique name for a given type. Each template is a unique function in C++.
// Then, convert that string to a numeric hash. Stable for the lifetime of the application, may change between compilations.
template<typename T>
consteval uint64_t get_type_id() {
return fnv1a(__FUNCSIG__);
}

#ifdef KCPP


// given a typedef, match the arg list and convert each arg to a typeid. Store results in an array.
template<typename T>
struct arg_types {};
Expand Down

0 comments on commit 4a1993d

Please sign in to comment.