7 references to ERROR_ACCESS_DENIED
System (7)
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (2)
1158
if (res == NativeMethods.
ERROR_ACCESS_DENIED
) {
1200
throw new Win32Exception(NativeMethods.
ERROR_ACCESS_DENIED
);
services\monitoring\system\diagnosticts\Process.cs (1)
2252
case NativeMethods.SE_ERR_ACCESSDENIED: error = NativeMethods.
ERROR_ACCESS_DENIED
; break;
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
1590
if ((Marshal.GetLastWin32Error() != NativeMethods.
ERROR_ACCESS_DENIED
) || !fileMappingHandle.IsInvalid) {
sys\system\io\ports\InternalResources.cs (1)
113
case NativeMethods.
ERROR_ACCESS_DENIED
:
sys\system\io\ports\SerialStream.cs (2)
816
if ((hr == NativeMethods.
ERROR_ACCESS_DENIED
|| hr == NativeMethods.ERROR_BAD_COMMAND || hr == ERROR_DEVICE_REMOVED) && !disposing) {
1745
if (hr == NativeMethods.
ERROR_ACCESS_DENIED
|| hr == NativeMethods.ERROR_BAD_COMMAND || hr == ERROR_DEVICE_REMOVED) {