35 references to ERROR_ACCESS_DENIED
mscorlib (35)
microsoft\win32\registrykey.cs (4)
750
if (ret == Win32Native.
ERROR_ACCESS_DENIED
|| ret == Win32Native.ERROR_BAD_IMPERSONATION_LEVEL) {
809
if (ret == Win32Native.
ERROR_ACCESS_DENIED
|| ret == Win32Native.ERROR_BAD_IMPERSONATION_LEVEL) {
1665
case Win32Native.
ERROR_ACCESS_DENIED
:
1704
case Win32Native.
ERROR_ACCESS_DENIED
:
system\io\__error.cs (2)
153
case Win32Native.
ERROR_ACCESS_DENIED
:
224
internal const int ERROR_ACCESS_DENIED = Win32Native.
ERROR_ACCESS_DENIED
;
system\io\directory.cs (4)
345
if (File.InternalExists(name) || (!InternalExists(name, out currentError) && currentError == Win32Native.
ERROR_ACCESS_DENIED
))
1126
errorCode != Win32Native.
ERROR_ACCESS_DENIED
)
1272
if (hr == Win32Native.
ERROR_ACCESS_DENIED
) // WinNT throws IOException. This check is for Win9x. We can't change it for backcomp.
1482
if (hr == Win32Native.
ERROR_ACCESS_DENIED
)
system\io\directoryinfo.cs (1)
686
if (hr == Win32Native.
ERROR_ACCESS_DENIED
) // We did this for Win9x. We can't change it for backcomp.
system\io\driveinfo.cs (1)
271
if (errorCode == Win32Native.
ERROR_ACCESS_DENIED
)
system\io\file.cs (4)
183
if (errorCode == Win32Native.
ERROR_ACCESS_DENIED
) {
185
throw new IOException(Environment.GetResourceString("Arg_FileIsDirectory_Name", destFileName), Win32Native.
ERROR_ACCESS_DENIED
, fullDestFileName);
333
if (errorCode == Win32Native.
ERROR_ACCESS_DENIED
) {
364
if (errorCode == Win32Native.
ERROR_ACCESS_DENIED
) {
system\io\longpath.cs (5)
231
if (errorCode == Win32Native.
ERROR_ACCESS_DENIED
) {
233
throw new IOException(Environment.GetResourceString("Arg_FileIsDirectory_Name", destFileName), Win32Native.
ERROR_ACCESS_DENIED
, fullDestFileName);
582
if (LongPathFile.InternalExists(name) || (!InternalExists(name, out currentError) && currentError == Win32Native.
ERROR_ACCESS_DENIED
))
664
if (hr == Win32Native.
ERROR_ACCESS_DENIED
) // WinNT throws IOException. This check is for Win9x. We can't change it for backcomp.
885
if (hr == Win32Native.
ERROR_ACCESS_DENIED
)
system\resources\manifestbasedresourcegroveler.cs (1)
568
if (hr != Win32Native.MakeHRFromErrorCode(Win32Native.
ERROR_ACCESS_DENIED
))
system\security\accesscontrol\nativeobjectsecurity.cs (2)
134
if ( error == Win32Native.
ERROR_ACCESS_DENIED
)
279
if ( error == Win32Native.
ERROR_ACCESS_DENIED
)
system\security\accesscontrol\privilege.cs (4)
127
else if ( error == Win32Native.
ERROR_ACCESS_DENIED
)
307
else if ( error == Win32Native.
ERROR_ACCESS_DENIED
||
572
else if ( error == Win32Native.
ERROR_ACCESS_DENIED
||
663
else if ( error == Win32Native.
ERROR_ACCESS_DENIED
)
system\security\accesscontrol\win32.cs (2)
176
else if ( errorCode == Win32Native.
ERROR_ACCESS_DENIED
||
347
else if ( errorCode == Win32Native.
ERROR_ACCESS_DENIED
||
system\security\cryptography\utils.cs (2)
272
if (error == Win32Native.
ERROR_ACCESS_DENIED
)
323
if (error == Win32Native.
ERROR_ACCESS_DENIED
|| error == Win32Native.ERROR_INVALID_OWNER || error == Win32Native.ERROR_INVALID_PRIMARY_GROUP)
system\security\principal\windowsidentity.cs (2)
915
if (hr == GetHRForWin32Error(Win32Native.
ERROR_ACCESS_DENIED
)) {
1014
if (Win32Native.
ERROR_ACCESS_DENIED
== Win32Native.LsaNtStatusToWinError(status)) {
system\threading\mutex.cs (1)
445
if( errorCode == Win32Native.
ERROR_ACCESS_DENIED
) {