If you get some ideas from my project, please quote with
pcxfirefox, and this is my greatest reward. Many thanks.
This wiki page tells you tete009's kernel module tmemutil interface.
This is a tete009 header file I guessed.
#ifndef tmemutil_h #define tmemutil_h #include <stdint.h> #if defined(_M_IX86) || defined(_X86_) typedef int PRInt32_pcx; #elif defined(_AMD64_) typedef long PRInt32_pcx; #endif #define NON_TEMPORAL_STORES_NOT_SUPPORTED 0 #ifdef __cplusplus extern "C" { #endif extern PRInt32_pcx __fastcall AtomicIncrement_tt ( volatile long * ); extern PRInt32_pcx __fastcall AtomicDecrement_tt ( volatile long * ); extern PRInt32_pcx GetAppDirHash_tt ( void ); extern uint32_t GetNonTemporalDataSizeMin_tt ( void ); extern void * __cdecl memset_nontemporal_tt ( void *dest, int c, size_t count ); #ifdef __cplusplus } #endif #endif // tmemutil_h
gendef tmemutil.dll dlltool --dllname tmemutil.dll --def tmemutil.def --output-lib mylib.lib
dumpbin tmemutil.dll /exports /out:tmemutil-demo.def
modify tmemutil-demo.def to def standard format tmemutil.def .
lib /def:tmemutil.def /out:mylib.lib