Does anyone know of an API that allows me to grab a list of all the Users on a PC?

I'm creating a small application that will allow the User to focus just on the logged in account, or all accounts.

If the User selects all accounts, I need to be able to go through all of the Users and access the appropriate directories.

Any information is appreciated.

Thanks