LogonUser for a workgroup

From: Chucky (dont@email.me)
Date: 01/25/03


From: "Chucky" <dont@email.me>
Date: Sat, 25 Jan 2003 17:48:11 +1100

I am trying to call QueryServiceStatus() for a remote service in a workgroup
environment. Obviously I need to logon to the remote workstation first
before I can check the service status.

I am using LogonUser(username, machinename, password, ..., ...) as the docu
outlines however it keeps returning bad username or password. The problem is
that it is ignoring the machinename, and is validating it locally. How do I
get LogonUser to validate the credentials against the remote workstation
(remember there is no domain). I tried using "machinename\username" as the
username but that didn't help either.

-- 
Chucky