if you really want to prevent DLL injection.

- set your program security descriptor
- prevent apps from getting your process handle.
- scan for dll modules (without winapi) nt internals
- re-fix import table

this is how far any pro game security goes.

cannot give you specific details on how todo that, good luck