-- Radek aka Anoq the Great Sorcerer of Calixtines, member of 1st Royal Guard "Slavic Wolves" I'll find a way. Maybe I'll strangle them with their own intestines, it will count as a suicide.
Your latest error generally means you're trying to do kernel-mode functions inside a user-mode app. You need to find and remove the kernel-mode functions. They either need to be eliminated (by doing the function some other way), or moved into an external kernel-mode prx that you load and call from the user app.
A quick search could point you in the right direction; just to give you some buzzwords, a quick walkthrough has been delineated in my quest for porting pikey and a simple but good example of kernel-mode prx into wich you can move your kernel functions could be my sio Driver:
quote from pikey porting discussion:
updated toolchain and sdk (now i'm using heimdall's 0.6 for win32)
placed fw_version = 390 in all makefiles
made sure all prx are in kernel mode
for all prx checked exported functions
surrounded all exported functions with the k1 stuff
checked compile-time constants for hooked functions' nids