I get Error 1407 when using CreateWindowExW in assembly code

Viewed 74

I am trying to write a forms application in assembly/machine code. The problem I am having is using the function CreateWindowExW. It throws error 1407. I prep all of the variables on the stack. I dont get an error when using RegisterClassA, so that must mean that the class registered correctly. Here is what it looks like in x32dbg :

Debugging the exe

I entered the variables that are needed for CreateWindowExW in reverse order on the stack as I could see the order from winuser.h in visual studio c++ test program.

Hope this is enough information and thank you to anyone that responds.

0 Answers
Related