From ccd8aebb855029cfadafcc50870445d3ee6e20b9 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Sat, 18 Jun 2016 22:45:15 +0200 Subject: Os_dep: add win 32 structs --- miasm2/os_dep/win_32_structs.py | 198 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+) create mode 100644 miasm2/os_dep/win_32_structs.py (limited to 'miasm2') diff --git a/miasm2/os_dep/win_32_structs.py b/miasm2/os_dep/win_32_structs.py new file mode 100644 index 00000000..993fc79c --- /dev/null +++ b/miasm2/os_dep/win_32_structs.py @@ -0,0 +1,198 @@ +from miasm2.core.types import MemStruct, Num, Ptr, Str, \ + Array, RawStruct, Union, \ + BitField, Self, Void, Bits, \ + set_allocator, MemUnion, Struct + + +class UnicodeString(MemStruct): + fields = [ + ("length", Num("H")), + ("maxlength", Num("H")), + ("data", Ptr("