Function SetAsm(asm As *Byte, codesize As Long) As VoidPtr SetAsm=VirtualAlloc(NULL, codesize, MEM_COMMIT, PAGE_EXECUTE_READWRITE) '追加 memcpy(SetAsm,asm,codesize) End Function
Sub FreeAsm(func As VoidPtr) VirtualFree(func, 0, MEM_DECOMMIT or MEM_RELEASE) '追加 End Sub