CRAW now runs on Windows 7 too - the problem was that Windows 7 has moved some functi...
[craw.git] / craw / debug_registers.hpp
blobac3948b8402cac7d119d6d8a7cf0e713a566bce8
1 #pragma once
3 #include <vector>
4 #include <ail/types.hpp>
5 #include <windows.h>
7 namespace debug_register_data_type
9 extern uchar const
10 execute,
11 write,
12 read_write;
15 namespace debug_register_data_size
17 extern uchar const
18 one,
19 two,
20 four;
23 struct debug_register_data
25 unsigned address;
26 uchar type;
27 uchar size;
29 debug_register_data();
30 debug_register_data(unsigned address);
31 debug_register_data(unsigned address, uchar type, uchar size);
34 typedef std::vector<debug_register_data> debug_register_vector;
36 void set_debug_registers(CONTEXT & thread_context, unsigned address);
37 void set_debug_registers(CONTEXT & thread_context, debug_register_vector & addresses);
38 void print_debug_registers(CONTEXT & thread_context);