示例#1
0
        internal static string GetProcessName()
        {
            StringBuilder buffer = new StringBuilder(1024);

            PInvokes.GetModuleFileName(PInvokes.GetModuleHandle(null), buffer, buffer.Capacity);
            return(buffer.ToString());
        }
示例#2
0
 internal static string GetCurrentThreadId()
 {
     return(PInvokes.GetCurrentThreadId().ToString(NumberFormatInfo.InvariantInfo));
 }