mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Store current process id.
This commit is contained in:
parent
1f671fbacc
commit
ad77b4f73b
@ -28,6 +28,7 @@ namespace tracy
|
|||||||
static TRACEHANDLE s_traceHandle;
|
static TRACEHANDLE s_traceHandle;
|
||||||
static TRACEHANDLE s_traceHandle2;
|
static TRACEHANDLE s_traceHandle2;
|
||||||
static EVENT_TRACE_PROPERTIES* s_prop;
|
static EVENT_TRACE_PROPERTIES* s_prop;
|
||||||
|
static DWORD s_pid;
|
||||||
|
|
||||||
struct CSwitch
|
struct CSwitch
|
||||||
{
|
{
|
||||||
@ -123,6 +124,8 @@ void WINAPI EventRecordCallback( PEVENT_RECORD record )
|
|||||||
|
|
||||||
bool SysTraceStart()
|
bool SysTraceStart()
|
||||||
{
|
{
|
||||||
|
s_pid = GetCurrentProcessId();
|
||||||
|
|
||||||
TOKEN_PRIVILEGES priv = {};
|
TOKEN_PRIVILEGES priv = {};
|
||||||
priv.PrivilegeCount = 1;
|
priv.PrivilegeCount = 1;
|
||||||
priv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
|
priv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
|
||||||
|
Loading…
Reference in New Issue
Block a user