A quick search through the headers shows that the structure is defined in winnt.h , and this definition clearly indicates that copying the structure will not work.
typedef struct _RTL_CRITICAL_SECTION { PRTL_CRITICAL_SECTION_DEBUG DebugInfo;
However, I have no idea why these internal counters are stored in the user space structure, i.e. What happens if the program changes them?
casablanca
source share