internal static string GetProcessName() { StringBuilder buffer = new StringBuilder(1024); PInvokes.GetModuleFileName(PInvokes.GetModuleHandle(null), buffer, buffer.Capacity); return(buffer.ToString()); }
internal static string GetCurrentThreadId() { return(PInvokes.GetCurrentThreadId().ToString(NumberFormatInfo.InvariantInfo)); }