Hallo Luckie,
I don't know what you want to accomplish, but I have attached some sample code that might assist you.
See also my sample of
LsaLogonUser which start a process under a different user and includes the Logon Sid so we have
access to the desktop.
Freundliche Grüße