예제 #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));
 }