get all windows local users

Hi guys

I am trying to populate a combobox with all local users that I can get from a computer running Windows XP. Does anyone know a method that I can use to get all local users.
Thanks in advance
Never used this myself, but NetUserEnum looks promising:

http://msdn.microsoft.com/en-us/library/aa370652(VS.85).aspx
Unless I'm mistaken, aren't they all stored somewhere in the registry?
Topic archived. No new replies allowed.