Retrieves the Security Identifier SID under which a given thread is running.
std::wstring
FesfUtil2GetSidForThreadId(uint32_t ThreadId);
FesfUtil2GetSidForThreadId_C(
[in] DWORD ThreadId,
[out] LPWSTR SidString,
[inout] DWORD* SidBufferSize);
ThreadId
The ID of a currently active thread for which to query the SID.
A string SID representing the SID under which ThreadId is running.
Throws an FEU2Exception if an error is encountered.
May fail for security reasons when called for certain Windows "protected processes". This is part of the Windows architecture and cannot be bypassed.
IFesfUtil:: GetSidForThreadId