Eric Blake writes: " How bad would it be to treat the window's DOMAIN\user as cygwin " user@DOMAIN? Yes, it means string-splicing to rearrange strings when " converting between the two forms, rather than just single-character " replacement, but it might work.
Sounds reasonable to me. Consider also that modern(*) Windows recognizes (prefers?) user@domain as equivalent to domain\user in places. For example, when I log on, I can use either form in the user/ password dialog. stephan(); (*) I use Windows 7 and 8