programming question about nox

i want call process from function in nox.
example:
Console print function
Call the map function
etc...
so, i was tried use function named 'CreateRemoteThread' in c api.
but when i run my code, nox process has been crash.
how can i do for that i can it?
please advise to me.
example:
Console print function
Call the map function
etc...
so, i was tried use function named 'CreateRemoteThread' in c api.
but when i run my code, nox process has been crash.
how can i do for that i can it?
please advise to me.