It's easy to log into a Windows network share (SMB) for the whole user session (e.g. net use
, WNetAddConnection2()
etc).
Is there any similar way that will only impact my current process?
Some kind of token system, maybe?
Whole session auth is okay if there's really no alternative, but I would rather avoid a "global solution to a local problem".