
include windows.inc
include kernel32.inc
include user32.inc
include Comctl32.inc
include shell32.inc
include advapi32.inc
include winioctl.inc
include common.inc

include D:\masm32\KmdKit\macros\Strings.mac

includelib kernel32.lib
includelib user32.lib
includelib Comctl32.lib
includelib shell32.lib
includelib advapi32.lib

;#########################################################################
;protos
DlgProc			PROTO	:HWND,:UINT,:WPARAM,:LPARAM
DriverCall				PROTO	:HWND
CloseService			PROTO
StopDriver				PROTO
SendRequest				PROTO	:HWND
;#########################################################################

szRegistersStruct STRUCT
	szCr0 BYTE "CR0 = ",0
	szCr2 BYTE "CR2 = ",0
	szCr3 BYTE "CR3 = ",0
	szCr4 BYTE "CR4 = ",0
	szDr0 BYTE "DR0 = ",0
	szDr1 BYTE "DR1 = ",0
	szDr2 BYTE "DR2 = ",0
	szDr3 BYTE "DR3 = ",0
	szDr6 BYTE "DR6 = ",0
	szDr7 BYTE "DR7 = ",0
	szCr4Mod BYTE "CR4 mod = ",0
szRegistersStruct ends
;#########################################################################
.const

IDD_DIALOG1			equ 101
IDC_RDTSCCPL0		equ 1001
IDC_EDT1			equ 1002
IDC_STOP			equ 1003

;#########################################################################
.data

m_szRS		szRegistersStruct <>
pm_szRS		DWORD m_szRS.szCr0,m_szRS.szCr2, m_szRS.szCr3,m_szRS.szCr4,m_szRS.szDr0,m_szRS.szDr1,m_szRS.szDr2,m_szRS.szDr3,m_szRS.szDr6,m_szRS.szDr7,m_szRS.szCr4Mod
szCaption	BYTE "Anti RDTSC",0
;#########################################################################
.data?
hInstance			DWORD ?

;#########################################################################
;other includes /asm
include DriverCall.asm