获取当前线程Id:
1 AppDomain::GetCurrentThreadId()
获取当前进程Id:
1 using namespace System::Diagnostics; 2 Process^ process = Process::GetCurrentProcess(); 3 process->Id;
获取当前线程Id:
1 AppDomain::GetCurrentThreadId()
获取当前进程Id:
1 using namespace System::Diagnostics; 2 Process^ process = Process::GetCurrentProcess(); 3 process->Id;