Is there a Win32 API to obtain the current user's group, i.e. the group analog to GetUserNameA()?
For example we want to switch the current group for an user in Cygwin via /usr/bin/newgrp, and then a native (non-Cygwin) application should see this change.
P.S.: What is the correct Win32 terminology for the user's current group - "primary group"?