Lines Matching refs:globals
42 static void tsrm_win32_ctor(tsrm_win32_globals *globals) in tsrm_win32_ctor() argument
47 globals->process = NULL; in tsrm_win32_ctor()
48 globals->shm = NULL; in tsrm_win32_ctor()
49 globals->process_size = 0; in tsrm_win32_ctor()
50 globals->shm_size = 0; in tsrm_win32_ctor()
51 globals->comspec = _strdup("cmd.exe"); in tsrm_win32_ctor()
60 globals->impersonation_token = INVALID_HANDLE_VALUE; in tsrm_win32_ctor()
61 globals->impersonation_token_sid = NULL; in tsrm_win32_ctor()
64 static void tsrm_win32_dtor(tsrm_win32_globals *globals) in tsrm_win32_dtor() argument
68 if (globals->process) { in tsrm_win32_dtor()
69 free(globals->process); in tsrm_win32_dtor()
72 if (globals->shm) { in tsrm_win32_dtor()
73 for (ptr = globals->shm; ptr < (globals->shm + globals->shm_size); ptr++) { in tsrm_win32_dtor()
79 free(globals->shm); in tsrm_win32_dtor()
82 free(globals->comspec); in tsrm_win32_dtor()
84 if (globals->impersonation_token && globals->impersonation_token != INVALID_HANDLE_VALUE ) { in tsrm_win32_dtor()
85 CloseHandle(globals->impersonation_token); in tsrm_win32_dtor()
87 if (globals->impersonation_token_sid) { in tsrm_win32_dtor()
88 free(globals->impersonation_token_sid); in tsrm_win32_dtor()