bwapi-sys 0.1.2

FFI bindings to the bwapi-c library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <Windows.h>

class VAlloc
{
public:
  VAlloc(HANDLE hProcess, SIZE_T dwSize);

  ~VAlloc();

  bool Write(LPCVOID lpBuffer, SIZE_T nSize);
  LPVOID GetAddress() const;

  operator bool() const;
private:
  HANDLE hTargetProcess;
  LPVOID pAddress;
};