Process Hacker Discussion Forum

 
440bx
Member
Posts: 63
Joined: 02 Jul 2021 23:33

PROFILE_SOURCE_INFO in ntexapi.h commented out

23 Aug 2021 23:37

The definition of PROFILE_SOURCE_INFO appears in ntexapi.h but it is commented out.

I'm wondering the reason why it is commented out. Is it because it's incorrect or some other reason ? Is there a definition of that structure available somewhere ?

I've seen a number of definitions of it for C# but, I can't help feeling uneasy about them.

Thank you for your help.
 
User avatar
dmex
Admin
Posts: 1693
Joined: 17 Jan 2011 05:43

Re: PROFILE_SOURCE_INFO in ntexapi.h commented out

24 Aug 2021 05:37

440bx wrote: 23 Aug 2021 23:37
I'm wondering the reason why it is commented out. Is it because it's incorrect or some other reason ? Is there a definition of that structure available somewhere ?
The type can be found in evntrace.h from the Windows SDK. It's commented out in PH because we use that header and it generates build errors but other people/projects using the PHNT headers might require that type.
 
440bx
Member
Posts: 63
Joined: 02 Jul 2021 23:33

Re: PROFILE_SOURCE_INFO in ntexapi.h commented out

24 Aug 2021 17:27

dmex wrote: 24 Aug 2021 05:37
The type can be found in evntrace.h from the Windows SDK. It's commented out in PH because we use that header and it generates build errors but other people/projects using the PHNT headers might require that type.
Thank you dmex. I can't believe I missed its definition in evnttrace.h. I probably need to get more sleep (or more coffee... or both!)