microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
952 stars 182 forks source link

Add lookup of account names by SID #228

Closed mversiotech closed 2 years ago

mversiotech commented 2 years ago

This commit adds a new function LookupNameBySid that wraps LookupAccountSidW and works as an inverse of the already existing LookupSidByName. In addition to offering new functionality, this fixes #202.

Signed-off-by: Michael Hofmann michael.hofmann@bitgestalt.com

dcantah commented 2 years ago

Thanks for the change!

dcantah commented 2 years ago

@ambarve ptal