¡@

Home 

c# Programming Glossary: machinetype

check if unmanaged dll is 32-bit or 64-bit?

http://stackoverflow.com/questions/1001404/check-if-unmanaged-dll-is-32-bit-or-64-bit

are looking here's a basic implementation public static MachineType GetDllMachineType string dllPath see http www.microsoft.com.. a basic implementation public static MachineType GetDllMachineType string dllPath see http www.microsoft.com whdc system platform.. 0 little endian throw new Exception Can't find PE header MachineType machineType MachineType br.ReadUInt16 br.Close fs.Close return..

How can I determine for which platform an executable is compiled?

http://stackoverflow.com/questions/197951/how-can-i-determine-for-which-platform-an-executable-is-compiled

me the offset as another response noted. public enum MachineType Native 0 I386 0x014c Itanium 0x0200 x64 0x8664 public static.. 0 I386 0x014c Itanium 0x0200 x64 0x8664 public static MachineType GetMachineType string fileName const int PE_POINTER_OFFSET 60.. Itanium 0x0200 x64 0x8664 public static MachineType GetMachineType string fileName const int PE_POINTER_OFFSET 60 const int MACHINE_OFFSET..