Getting Username

BlitzMax Forums/BlitzMax Programming/Getting Username

I used to have some VBA code that i used in an access database. When someone opened the database it checked for the username (nt login name?) and i was able to use it as a field in my queries to allow/disallow different functions or screens.

Does anyone have something similar for use in Blitzmax?
Ideally a cross platform bit of code would be best, but i don't know anything about the other 2 platforms. Maybe there are separate ways to do this on Mac and Linux?

If it isn't possible then i will go back to making the user logon to the application.

Cheers
Glenn