Lines Matching refs:globals
43 static void tsrm_win32_ctor(tsrm_win32_globals *globals TSRMLS_DC) in tsrm_win32_ctor()
45 globals->process = NULL; in tsrm_win32_ctor()
46 globals->shm = NULL; in tsrm_win32_ctor()
47 globals->process_size = 0; in tsrm_win32_ctor()
48 globals->shm_size = 0; in tsrm_win32_ctor()
49 globals->comspec = _strdup((GetVersion()<0x80000000)?"cmd.exe":"command.com"); in tsrm_win32_ctor()
58 globals->impersonation_token = INVALID_HANDLE_VALUE; in tsrm_win32_ctor()
59 globals->impersonation_token_sid = NULL; in tsrm_win32_ctor()
62 static void tsrm_win32_dtor(tsrm_win32_globals *globals TSRMLS_DC) in tsrm_win32_dtor()
66 if (globals->process) { in tsrm_win32_dtor()
67 free(globals->process); in tsrm_win32_dtor()
70 if (globals->shm) { in tsrm_win32_dtor()
71 for (ptr = globals->shm; ptr < (globals->shm + globals->shm_size); ptr++) { in tsrm_win32_dtor()
77 free(globals->shm); in tsrm_win32_dtor()
80 free(globals->comspec); in tsrm_win32_dtor()
82 if (globals->impersonation_token && globals->impersonation_token != INVALID_HANDLE_VALUE ) { in tsrm_win32_dtor()
83 CloseHandle(globals->impersonation_token); in tsrm_win32_dtor()
85 if (globals->impersonation_token_sid) { in tsrm_win32_dtor()
86 free(globals->impersonation_token_sid); in tsrm_win32_dtor()