Lines Matching refs:globals
41 static void tsrm_win32_ctor(tsrm_win32_globals *globals) in tsrm_win32_ctor() argument
46 globals->process = NULL; in tsrm_win32_ctor()
47 globals->shm = NULL; in tsrm_win32_ctor()
48 globals->process_size = 0; in tsrm_win32_ctor()
49 globals->shm_size = 0; in tsrm_win32_ctor()
50 globals->comspec = _strdup("cmd.exe"); in tsrm_win32_ctor()
59 globals->impersonation_token = INVALID_HANDLE_VALUE; in tsrm_win32_ctor()
60 globals->impersonation_token_sid = NULL; in tsrm_win32_ctor()
63 static void tsrm_win32_dtor(tsrm_win32_globals *globals) in tsrm_win32_dtor() argument
67 if (globals->process) { in tsrm_win32_dtor()
68 free(globals->process); in tsrm_win32_dtor()
71 if (globals->shm) { in tsrm_win32_dtor()
72 for (ptr = globals->shm; ptr < (globals->shm + globals->shm_size); ptr++) { in tsrm_win32_dtor()
76 free(globals->shm); in tsrm_win32_dtor()
79 free(globals->comspec); in tsrm_win32_dtor()
81 if (globals->impersonation_token && globals->impersonation_token != INVALID_HANDLE_VALUE ) { in tsrm_win32_dtor()
82 CloseHandle(globals->impersonation_token); in tsrm_win32_dtor()
84 if (globals->impersonation_token_sid) { in tsrm_win32_dtor()
85 free(globals->impersonation_token_sid); in tsrm_win32_dtor()