53 references to Interop
System.Threading.AccessControl (53)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (10)
29
Debug.Assert(errorCode !=
Interop
.Errors.ERROR_SUCCESS);
33
case
Interop
.Errors.ERROR_FILE_NOT_FOUND:
36
case
Interop
.Errors.ERROR_PATH_NOT_FOUND:
44
case
Interop
.Errors.ERROR_ACCESS_DENIED:
47
case
Interop
.Errors.ERROR_ALREADY_EXISTS:
51
case
Interop
.Errors.ERROR_FILENAME_EXCED_RANGE:
54
case
Interop
.Errors.ERROR_SHARING_VIOLATION:
58
case
Interop
.Errors.ERROR_FILE_EXISTS:
62
case
Interop
.Errors.ERROR_OPERATION_ABORTED:
64
case
Interop
.Errors.ERROR_INVALID_PARAMETER:
System\Security\AccessControl\EventWaitHandleSecurity.cs (3)
135
case
Interop
.Errors.ERROR_INVALID_NAME:
136
case
Interop
.Errors.ERROR_INVALID_HANDLE:
137
case
Interop
.Errors.ERROR_FILE_NOT_FOUND:
System\Security\AccessControl\MutexSecurity.cs (3)
129
case
Interop
.Errors.ERROR_INVALID_NAME:
130
case
Interop
.Errors.ERROR_INVALID_HANDLE:
131
case
Interop
.Errors.ERROR_FILE_NOT_FOUND:
System\Security\AccessControl\SemaphoreSecurity.cs (3)
123
case
Interop
.Errors.ERROR_INVALID_NAME:
124
case
Interop
.Errors.ERROR_INVALID_HANDLE:
125
case
Interop
.Errors.ERROR_FILE_NOT_FOUND:
System\Threading\EventWaitHandleAcl.cs (12)
41
uint eventFlags = initialState ?
Interop
.Kernel32.CREATE_EVENT_INITIAL_SET : 0;
44
eventFlags |=
Interop
.Kernel32.CREATE_EVENT_MANUAL_RESET;
49
Interop
.Kernel32.SECURITY_ATTRIBUTES secAttrs =
Interop
.Kernel32.SECURITY_ATTRIBUTES.Create(pSecurityDescriptor);
51
SafeWaitHandle handle =
Interop
.Kernel32.CreateEventEx(
63
if (!string.IsNullOrEmpty(name) && errorCode ==
Interop
.Errors.ERROR_INVALID_HANDLE)
71
createdNew = (errorCode !=
Interop
.Errors.ERROR_ALREADY_EXISTS);
133
SafeWaitHandle existingHandle =
Interop
.Kernel32.OpenEvent((uint)rights, false, name);
141
Interop
.Errors.ERROR_FILE_NOT_FOUND or
Interop
.Errors.ERROR_INVALID_NAME => OpenExistingResult.NameNotFound,
142
Interop
.Errors.ERROR_PATH_NOT_FOUND => OpenExistingResult.PathNotFound,
143
Interop
.Errors.ERROR_INVALID_HANDLE => OpenExistingResult.NameInvalid,
System\Threading\MutexAcl.cs (12)
30
uint mutexFlags = initiallyOwned ?
Interop
.Kernel32.CREATE_MUTEX_INITIAL_OWNER : 0;
34
Interop
.Kernel32.SECURITY_ATTRIBUTES secAttrs =
Interop
.Kernel32.SECURITY_ATTRIBUTES.Create(pSecurityDescriptor);
36
SafeWaitHandle handle =
Interop
.Kernel32.CreateMutexEx(
49
if (errorCode ==
Interop
.Errors.ERROR_FILENAME_EXCED_RANGE)
54
if (errorCode ==
Interop
.Errors.ERROR_INVALID_HANDLE)
62
createdNew = (errorCode !=
Interop
.Errors.ERROR_ALREADY_EXISTS);
124
SafeWaitHandle existingHandle =
Interop
.Kernel32.OpenMutex((uint)rights, false, name);
132
Interop
.Errors.ERROR_FILE_NOT_FOUND or
Interop
.Errors.ERROR_INVALID_NAME => OpenExistingResult.NameNotFound,
133
Interop
.Errors.ERROR_PATH_NOT_FOUND => OpenExistingResult.PathNotFound,
134
Interop
.Errors.ERROR_INVALID_HANDLE => OpenExistingResult.NameInvalid,
System\Threading\SemaphoreAcl.cs (10)
51
Interop
.Kernel32.SECURITY_ATTRIBUTES secAttrs =
Interop
.Kernel32.SECURITY_ATTRIBUTES.Create(pSecurityDescriptor);
53
SafeWaitHandle handle =
Interop
.Kernel32.CreateSemaphoreEx(
68
if (!string.IsNullOrEmpty(name) && errorCode ==
Interop
.Errors.ERROR_INVALID_HANDLE)
76
createdNew = (errorCode !=
Interop
.Errors.ERROR_ALREADY_EXISTS);
139
SafeWaitHandle handle =
Interop
.Kernel32.OpenSemaphore((uint)rights, false, name);
147
Interop
.Errors.ERROR_FILE_NOT_FOUND or
Interop
.Errors.ERROR_INVALID_NAME => OpenExistingResult.NameNotFound,
148
Interop
.Errors.ERROR_PATH_NOT_FOUND => OpenExistingResult.PathNotFound,
149
Interop
.Errors.ERROR_INVALID_HANDLE => OpenExistingResult.NameInvalid,