59#if defined(_M_IX86) || defined(_M_AMD64)
64 MachineSpecificCounters->Tsc =
__rdtsc();
75 MachineSpecificCounters->Pmc0 =
__readpmc(0);
76 MachineSpecificCounters->Pmc1 =
__readpmc(1);
81 MachineSpecificCounters->Ccr = _MoveFromCoprocessor(
CP15_PMCCNTR);
NTSYSAPI ULONG NTAPI RtlRandomEx(PULONG Seed)
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI KsecGenRandom(PVOID Buffer, SIZE_T Length)
VOID NTAPI KsecReadMachineSpecificCounters(_Out_ PKSEC_MACHINE_SPECIFIC_COUNTERS MachineSpecificCounters)
NTSTATUS NTAPI KsecGatherEntropyData(PKSEC_ENTROPY_DATA EntropyData)
static ULONG KsecRandomSeed
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
#define PsGetCurrentThread()
#define KeQuerySystemTime(t)
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
@ SystemExceptionInformation
@ SystemLookasideInformation
@ SystemInterruptInformation
@ SystemProcessInformation
@ SystemProcessorPerformanceInformation
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
LARGE_INTEGER NTAPI KeQueryPerformanceCounter(IN PLARGE_INTEGER PerformanceFreq)
VOID WINAPI MD4Final(MD4_CTX *ctx)
VOID WINAPI MD4Update(MD4_CTX *ctx, const unsigned char *buf, unsigned int len)
VOID WINAPI MD4Init(MD4_CTX *ctx)
#define EXCEPTION_EXECUTE_HANDLER
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_Check_return_ unsigned int __cdecl _rotl(_In_ unsigned int _Value, _In_ int _Shift)
PPC_QUAL unsigned long long __rdtsc(void)
__INTRIN_INLINE unsigned long long __readpmc(unsigned long counter)
ULONG * PKSEC_MACHINE_SPECIFIC_COUNTERS
#define SystemPerformanceInformation
_In_ ULONG _In_ ULONG _In_ ULONG Length
BOOLEAN NTAPI ExIsProcessorFeaturePresent(IN ULONG ProcessorFeature)
HANDLE NTAPI PsGetCurrentProcessId(VOID)
#define _SEH2_EXCEPT(...)
#define KeQueryTickCount(CurrentCount)
SYSTEM_PROCESS_INFORMATION SystemProcessInformation
UCHAR EnvironmentHash[16]
KSEC_MACHINE_SPECIFIC_COUNTERS MachineSpecificCounters
SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION SystemProcessorPerformanceInformation
SYSTEM_EXCEPTION_INFORMATION SystemExceptionInformation
SYSTEM_PERFORMANCE_INFORMATION SystemPerformanceInformation
LARGE_INTEGER PerformanceFrequency
SYSTEM_INTERRUPT_INFORMATION SystemInterruptInformation
LARGE_INTEGER PerformanceCounter
SYSTEM_LOOKASIDE_INFORMATION SystemLookasideInformation
PRTL_USER_PROCESS_PARAMETERS ProcessParameters
PPEB ProcessEnvironmentBlock
#define RtlCopyMemory(Destination, Source, Length)
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
#define PF_MMX_INSTRUCTIONS_AVAILABLE
#define PF_RDTSC_INSTRUCTION_AVAILABLE