Lines Matching refs:TWG
107 PSID pSid = TWG(impersonation_token_sid); in tsrm_win32_get_path_sid_key()
240 TWG(impersonation_token) = NULL; in tsrm_win32_access()
249 if (TWG(impersonation_token_sid)) { in tsrm_win32_access()
250 free(TWG(impersonation_token_sid)); in tsrm_win32_access()
252 TWG(impersonation_token_sid) = NULL; in tsrm_win32_access()
257 if (!TWG(impersonation_token_sid) || !EqualSid(token_sid, TWG(impersonation_token_sid))) { in tsrm_win32_access()
258 if (TWG(impersonation_token_sid)) { in tsrm_win32_access()
259 free(TWG(impersonation_token_sid)); in tsrm_win32_access()
261 TWG(impersonation_token_sid) = token_sid; in tsrm_win32_access()
264 if (!DuplicateToken(thread_token, SecurityImpersonation, &TWG(impersonation_token))) { in tsrm_win32_access()
313 if(TWG(impersonation_token) == NULL) { in tsrm_win32_access()
330 …if(!AccessCheck((PSECURITY_DESCRIPTOR)psec_desc, TWG(impersonation_token), desired_access, &gen_ma… in tsrm_win32_access()
377 for (ptr = TWG(process); ptr < (TWG(process) + TWG(process_size)); ptr++) { in process_get()
383 if (ptr < (TWG(process) + TWG(process_size))) { in process_get()
387 newptr = (process_pair*)realloc((void*)TWG(process), (TWG(process_size)+1)*sizeof(process_pair)); in process_get()
392 TWG(process) = newptr; in process_get()
393 ptr = newptr + TWG(process_size); in process_get()
394 TWG(process_size)++; in process_get()
403 for (ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) { in shm_get()
414 if (ptr < (TWG(shm) + TWG(shm_size))) { in shm_get()
418 newptr = (shm_pair*)realloc((void*)TWG(shm), (TWG(shm_size)+1)*sizeof(shm_pair)); in shm_get()
423 TWG(shm) = newptr; in shm_get()
424 ptr = newptr + TWG(shm_size); in shm_get()
425 TWG(shm_size)++; in shm_get()
480 cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /s /c ")+2); in popen_ex()
485 sprintf(cmd, "%s /s /c \"%s\"", TWG(comspec), command); in popen_ex()
676 for (shm_pair *ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) { in shmget()
679 ptr = TWG(shm); in shmget()