Browse Source

Update of MSDN links in comments

Source commit: e73599996a382fabef90af084b0a3f66224505c8
Martin Prikryl 7 years ago
parent
commit
367a51d3f4
3 changed files with 5 additions and 5 deletions
  1. 1 1
      source/windows/GUITools.cpp
  2. 2 2
      source/windows/Setup.cpp
  3. 2 2
      source/windows/Tools.cpp

+ 1 - 1
source/windows/GUITools.cpp

@@ -1675,7 +1675,7 @@ void __fastcall TNewRichEdit::CreateParams(TCreateParams & Params)
 
   TCustomMemo::CreateParams(Params);
   // MSDN says that we should use MSFTEDIT_CLASS to load Rich Edit 4.1:
-  // https://msdn.microsoft.com/en-us/library/windows/desktop/bb787873.aspx
+  // https://docs.microsoft.com/en-us/windows/desktop/controls/about-rich-edit-controls
   // But MSFTEDIT_CLASS is defined as "RICHEDIT50W",
   // so not sure what version we are loading.
   // Seem to work on Windows XP SP3.

+ 2 - 2
source/windows/Setup.cpp

@@ -490,7 +490,7 @@ static void __fastcall RegisterProtocolForDefaultPrograms(HKEY RootKey, const Un
   // application is registered for the protocol (i.e. RegisterProtocol would be enough)
   RegisterAsUrlHandler(RootKey, Protocol);
 
-  // see https://msdn.microsoft.com/en-us/library/windows/desktop/cc144154.aspx#registration
+  // see https://docs.microsoft.com/en-us/windows/desktop/shell/default-programs#registering-an-application-for-use-with-default-programs
   std::unique_ptr<TRegistry> Registry(CreateRegistry(RootKey));
 
   // create capabilities record
@@ -677,7 +677,7 @@ void __fastcall LaunchAdvancedAssociationUI()
 
   RegisterForDefaultPrograms();
   NotifyChangedAssociations();
-  // sleep recommended by https://msdn.microsoft.com/en-us/library/windows/desktop/cc144154.aspx#browser
+  // sleep recommended by https://docs.microsoft.com/en-us/windows/desktop/shell/default-programs#becoming-the-default-browser
   Sleep(1000);
 
   if (IsWin10())

+ 2 - 2
source/windows/Tools.cpp

@@ -33,7 +33,7 @@
 // VCL includes wininet.h (even with NO_WIN32_LEAN_AND_MEAN)
 // and it cannot be combined with winhttp.h as of current Windows SDK.
 // This is hack to allow that.
-// https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8f468d9f-3f15-452c-803d-fc63ab3f684e/cannot-use-both-winineth-and-winhttph
+// https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8f468d9f-3f15-452c-803d-fc63ab3f684e/cannot-use-both-ltwininethgt-and-ltwinhttphgt
 #undef BOOLAPI
 #undef SECURITY_FLAG_IGNORE_CERT_DATE_INVALID
 #undef SECURITY_FLAG_IGNORE_CERT_CN_INVALID
@@ -1105,7 +1105,7 @@ void __fastcall SuspendWindows()
 {
   AcquireShutDownPrivileges();
 
-  // https://msdn.microsoft.com/en-us/library/windows/desktop/aa373201.aspx
+  // https://docs.microsoft.com/en-us/windows/desktop/api/powrprof/nf-powrprof-setsuspendstate
   Win32Check(SetSuspendState(false, false, false));
 }
 //---------------------------------------------------------------------------