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