I'm using the LogonUser to interact with the user dektop from within a service.
The call is:
if LogonUser(PChar(User), PChar(Domain), PChar(Password), LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, Token) then
So for example
LogonUser(PChar('MyUser'), PChar('.'), PChar('MyPassword') - works
This works when I have the user logon with a password but I can't make it work when there is no password
LogonUser(PChar('MyUser'), PChar('.'), PChar('') - DOES NOT