Oh, I misread your VM. I doubt it. I have the best antivirus around, and it's on-access protection. For example, as soon as I enter a folder, it checks everything in it.
Your antivirus probably detected the words 'inject', 'assembly', the DLL, and its hex editing functions. It would probably trip some lesser antivira.