This code will crash anyway because "myAction" is not a handle. You probably meant "hMyAction".

But that wouldn't work either because there is no ACTION object in lite-C. That was C-Script only, lite-C uses normal C functions.

So, correct is:

pAction = myAction;

and not

pAction = ptr_for_handle(myAction);