forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update proxy setting on registry changes (dotnet#103364)
* update proxy setting on registry changes * udpate * build fixes * console * registry * winhttp * invalid * feedback * feedback * 'feedback' * Apply suggestions from code review Co-authored-by: Jan Kotas <jkotas@microsoft.com> * MemberNotNull --------- Co-authored-by: Jan Kotas <jkotas@microsoft.com>
- Loading branch information
Showing
9 changed files
with
132 additions
and
104 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegNotifyChangeKeyValue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.Win32.SafeHandles; | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
internal static partial class Interop | ||
{ | ||
internal static partial class Advapi32 | ||
{ | ||
internal const int REG_NOTIFY_CHANGE_NAME = 0x1; | ||
internal const int REG_NOTIFY_CHANGE_ATTRIBUTES = 0x2; | ||
internal const int REG_NOTIFY_CHANGE_LAST_SET = 0x4; | ||
internal const int REG_NOTIFY_CHANGE_SECURITY = 0x8; | ||
internal const int REG_NOTIFY_THREAD_AGNOSTIC = 0x10000000; | ||
|
||
[LibraryImport(Libraries.Advapi32, EntryPoint = "RegNotifyChangeKeyValue", StringMarshalling = StringMarshalling.Utf16)] | ||
internal static partial int RegNotifyChangeKeyValue( | ||
SafeHandle hKey, | ||
[MarshalAs(UnmanagedType.Bool)] bool watchSubtree, | ||
uint notifyFilter, | ||
SafeHandle hEvent, | ||
[MarshalAs(UnmanagedType.Bool)] bool asynchronous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.