[help]Can anyone help me how to program with PhPassword?

I’m a newbie of QNX and PHOTON. The usage of pointer in photon often confuse
me too much. When I want to program a login window, I try to use PhPassword.
Due to misunderstanding of this function’s multiple parameters, my program
run into memory error. Can anyone show me a simple example of PhPassword?
Thx a lot!