code: def malloc(self, dwSize, lpAddress = None):
          
          hProcess = self.get_handle(win32.PROCESS_VM_OPERATION)
          return win32.VirtualAllocEx(hProcess, lpAddress, dwSize)
docs: Allocates memory into the address space of the process.
  
          @see: L{free}
  
          @type  dwSize: int
          @param dwSize: Number of bytes to allocate.
  
          @type  lpAddress: int
          @param lpAddress: (Optional)
              Desired address for the newly allocated memory.
              This is only a hint, the memory could still be allocated somewhere
              else.
  
          @rtype:  int
          @return: Address of the newly allocated memory.
  
          @raise WindowsError: On error an exception is raised.