Lines Matching refs:TWG

108 	PSID pSid = TWG(impersonation_token_sid);  in tsrm_win32_get_path_sid_key()
250 TWG(impersonation_token) = NULL; in tsrm_win32_access()
259 if (TWG(impersonation_token_sid)) { in tsrm_win32_access()
260 free(TWG(impersonation_token_sid)); in tsrm_win32_access()
262 TWG(impersonation_token_sid) = NULL; in tsrm_win32_access()
267 if (!TWG(impersonation_token_sid) || !EqualSid(token_sid, TWG(impersonation_token_sid))) { in tsrm_win32_access()
268 if (TWG(impersonation_token_sid)) { in tsrm_win32_access()
269 free(TWG(impersonation_token_sid)); in tsrm_win32_access()
271 TWG(impersonation_token_sid) = token_sid; in tsrm_win32_access()
274 if (!DuplicateToken(thread_token, SecurityImpersonation, &TWG(impersonation_token))) { in tsrm_win32_access()
323 if(TWG(impersonation_token) == NULL) { in tsrm_win32_access()
340 …if(!AccessCheck((PSECURITY_DESCRIPTOR)psec_desc, TWG(impersonation_token), desired_access, &gen_ma… in tsrm_win32_access()
391 for (ptr = TWG(process); ptr < (TWG(process) + TWG(process_size)); ptr++) { in process_get()
397 if (ptr < (TWG(process) + TWG(process_size))) { in process_get()
401 newptr = (process_pair*)realloc((void*)TWG(process), (TWG(process_size)+1)*sizeof(process_pair)); in process_get()
406 TWG(process) = newptr; in process_get()
407 ptr = newptr + TWG(process_size); in process_get()
408 TWG(process_size)++; in process_get()
418 for (ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) { in shm_get()
429 if (ptr < (TWG(shm) + TWG(shm_size))) { in shm_get()
433 newptr = (shm_pair*)realloc((void*)TWG(shm), (TWG(shm_size)+1)*sizeof(shm_pair)); in shm_get()
438 TWG(shm) = newptr; in shm_get()
439 ptr = newptr + TWG(shm_size); in shm_get()
440 TWG(shm_size)++; in shm_get()
537 cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2); in popen_ex()
542 sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command); in popen_ex()