IQ DIRECT

Blog

Navigation

  • Home
  • About us
  • Portfolio
  • Reviews
  • Blog
  • Contacts
How to shutdown a computer programmatically in Windows

If you are writing some installer application, want to update system files, apply settings of for some other reason, you may need to shutdown (reboot, power off) a Windows 10 computer. The good news is that Windows has a pretty straightforward API for this intent, which is called ExitWindowsEx. It has only two parameters. The first one is the flags parameter which you can set to either reboot or power-off and the second one - the reboot reason, which is only used on servers and is not mandatory.  But the bad news is that the functions won't work as-is. In order to make it work, you need to enable the shutdown privilege, which is disabled by default. I advise you to enable this privilege only directly before you decide to shut down. 

Read more
How to read connection string from App.config

If you are writing console application in C# and need to use the database connection, probably you would like to store the connection string in the App.config file. This is a common practice for C#.NET applications. But how to read the connection string from the file? See the answer below: 

 

ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionStringName"].ConnectionString;
Fiddler: The Powerful Debugging Tool for any Web Developer

Fiddler is a debugging proxy that monitors all web requests between your computer and a remote server and allows to inspect and modify them.

Fiddler can be extended with scripts written in JScript.NET (it's very easy to write them), change the program menu, and in general it is a wonderful tool. You can use it with any browser. In the new version of Fiddler, some features may change, some may be introduced.

When you enter Fiddler, a query window opens on the left and work tabs on the right.

As you can see, there are many options, they barely fit in the image. And, believe me, there are even more opportunities.

Capabilities & Operations on requests in Fiddler
In the requests window on the left, you can view and select requests, view their headers, save them to disk all together or separately.

Read more

Page 32 of 77

  • 27
  • 28
  • ...
  • 30
  • 31
  • 32
  • 33
  • 34
  • ...
  • 36

Copyright ©2026 IQ DIRECT


main version