mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
32 lines
No EOL
734 B
C
32 lines
No EOL
734 B
C
#pragma once
|
|
|
|
BEGIN_NAMESPACE
|
|
|
|
interface class ISampleEngineCallback;
|
|
ref class DebuggedProcess;
|
|
ref class ProcessLaunchInfo;
|
|
|
|
public ref class Worker abstract sealed
|
|
{
|
|
public:
|
|
static void Initialize();
|
|
static DebuggedProcess^ AttachToProcess(ISampleEngineCallback^ callback, int processId);
|
|
static DebuggedProcess^ LaunchProcess(ISampleEngineCallback^ callback, ProcessLaunchInfo ^processLaunchInfo);
|
|
|
|
static property DWORD MainThreadId
|
|
{
|
|
DWORD get() { return s_mainThreadId; }
|
|
}
|
|
|
|
static property DWORD CurrentThreadId
|
|
{
|
|
DWORD get() { return GetCurrentThreadId(); }
|
|
}
|
|
|
|
static CONTEXT ContextFromFrame(IDiaStackFrame* pStackFrame);
|
|
|
|
private:
|
|
static DWORD s_mainThreadId;
|
|
};
|
|
|
|
END_NAMESPACE |