Lines Matching refs:TWG
110 PSID pSid = TWG(impersonation_token_sid); in tsrm_win32_get_path_sid_key()
243 TWG(impersonation_token) = NULL; in tsrm_win32_access()
252 if (TWG(impersonation_token_sid)) { in tsrm_win32_access()
253 free(TWG(impersonation_token_sid)); in tsrm_win32_access()
255 TWG(impersonation_token_sid) = NULL; in tsrm_win32_access()
260 if (!TWG(impersonation_token_sid) || !EqualSid(token_sid, TWG(impersonation_token_sid))) { in tsrm_win32_access()
261 if (TWG(impersonation_token_sid)) { in tsrm_win32_access()
262 free(TWG(impersonation_token_sid)); in tsrm_win32_access()
264 TWG(impersonation_token_sid) = token_sid; in tsrm_win32_access()
267 if (!DuplicateToken(thread_token, SecurityImpersonation, &TWG(impersonation_token))) { in tsrm_win32_access()
316 if(TWG(impersonation_token) == NULL) { in tsrm_win32_access()
333 …if(!AccessCheck((PSECURITY_DESCRIPTOR)psec_desc, TWG(impersonation_token), desired_access, &gen_ma… in tsrm_win32_access()
380 for (ptr = TWG(process); ptr < (TWG(process) + TWG(process_size)); ptr++) { in process_get()
386 if (ptr < (TWG(process) + TWG(process_size))) { in process_get()
390 newptr = (process_pair*)realloc((void*)TWG(process), (TWG(process_size)+1)*sizeof(process_pair)); in process_get()
395 TWG(process) = newptr; in process_get()
396 ptr = newptr + TWG(process_size); in process_get()
397 TWG(process_size)++; in process_get()
406 for (ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) { in shm_get()
417 if (ptr < (TWG(shm) + TWG(shm_size))) { in shm_get()
421 newptr = (shm_pair*)realloc((void*)TWG(shm), (TWG(shm_size)+1)*sizeof(shm_pair)); in shm_get()
426 TWG(shm) = newptr; in shm_get()
427 ptr = newptr + TWG(shm_size); in shm_get()
428 TWG(shm_size)++; in shm_get()
484 cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2); in popen_ex()
489 sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command); in popen_ex()