I make this request after days of searching... Is it possible to know
the (Windows) username of a user accessing a Windows share, by
inspecting the UID field of an SMB packet?

I read somewhere that the UID is dynamically assigned. Is this true?

I would greatly appreciate if someone can point to a technique
(preferably Win32 API based) of resolving the UID to a username.

Hope this isn't a something taken for granted to be known...

Many thanks,