-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Moved the IsBackground property assignment into the object initializer for the Thread object. 2. Replaced e.Args[e.Args.Length - 1] with e.Args[^1] 3. Added a conditional check to see if GetWindowThreadProcessId returns 0, which indicates failure. If it fails, throw a Win32Exception with the last Win32 error. 4. Removed unused assignment to the variable process 5. Changed the return type of the ConfigureServices method from IServiceProvider to ServiceProvider. It is more specific and faster. 6. Changed notifyIcon to _notifyIcon according to private var naming scheme. 7. Added the CharSet = CharSet.Unicode attribute to the DllImport declarations to specify that the string arguments should be marshaled as Unicode.
- Loading branch information
1 parent
ee51298
commit cf8f1ec
Showing
1 changed file
with
22 additions
and
20 deletions.
There are no files selected for viewing
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