Tag: 用户名

如何在MinGW中获取用户名?

要使用MinGW从Windows获取用户名,我应该使用unistd.h中的getlogin()函数还是Windows函数GetUserName? 谢谢。