A function written in C++ that returns a string representing the local machine's security ID in the format like S-1-5-21-91850410-1263060417-3577111226, in a command line wrapper, so you can invoke it from a command line like this:
C:\> showmachinesid
S-1-5-21-91850410-1263060417-3577111226
C:\>
This should work in Windows 2000, Windows XP, Windows Vista, Windows Server 2003, and Windows Server 2008.
## Deliverables
This should be written in C++ and use Win32 API.
The resulting executable should be one self-contained executable (static linking).
It takes no parameters and has a deterministic output based on the local machine's security ID.