DWORD64 DeleakerClientApi_TakeSnapshotForProcessThread(
	LPCTSTR szSnapshotName,
	DWORD pid,
	DWORD tid);

Make Deleaker take a snapshot for allocations that were created by specified process and thread only.

szSnapshotName is the snapshot name. If it's NULL, the snapshot will have the default name.

pid is the process id, for which the snapshot is to be made.

tid is the thread id of the process.

The returned value is the snapshot id.

The function returns once the snapshot is ready.

The function works for processes that are being monitored by Deleaker.