Skip to content

Commit

Permalink
1.1.2 (added XML comments)
Browse files Browse the repository at this point in the history
added XML comments, making it more self-explanatory
  • Loading branch information
NarodGaming committed Jan 2, 2021
1 parent 9284140 commit ad81dbb
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 4 deletions.
Binary file modified .vs/FullScreenDetection/v16/.suo
Binary file not shown.
16 changes: 16 additions & 0 deletions FullScreenDetection/FullscreenDetecter.vb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ Public Class FullscreenDetecter
Private desktopHandle As New IntPtr
Private shellHandle As New IntPtr

''' <summary>
''' Returns any fullscreen application detected. A fullscreen application is determined as one that fills the entire screen (if multi-monitor, screen user is currently using).
'''
''' If no application detected, only the Boolean will be present in list.
''' </summary>
''' <returns>
''' List(Of Object) (Boolean: True if application detected - False if not, String: Window text of application if was detected, UInteger: Process ID of application if was detected)
''' </returns>
Public Function DetectFullscreenApplication() As List(Of Object) ' this is a base function which can be used to pull ANY fullscreen window, including web browsers.
hWnd = GetForegroundWindow() ' assumed to be the fullscreen program, is actually just the current window in focus
desktopHandle = GetDesktopWindow() ' gets the desktop window, as to check that it isn't the desktop which is in focus
Expand Down Expand Up @@ -76,6 +84,14 @@ Public Class FullscreenDetecter
Return ReturnList
End Function

''' <summary>
''' Returns any fullscreen application detected, but filters out browsers (more to come in future versions). A fullscreen game is determined as one that fills the entire screen (if multi-monitor, screen user is currently using).
'''
''' If no application detected, only the Boolean will be present in list.
''' </summary>
''' <returns>
''' List(Of Object) (Boolean: True if application detected - False if not, String: Window text of application if was detected, UInteger: Process ID of application if was detected)
''' </returns>
Public Function DetectGameFullscreen() As List(Of Object)
Dim response As New List(Of Object)
response = DetectFullscreenApplication()
Expand Down
8 changes: 4 additions & 4 deletions FullScreenDetection/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Imports System.Runtime.InteropServices

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("FullScreenDetection")>
<Assembly: AssemblyTitle("Narod's Full Screen Detector")>
<Assembly: AssemblyDescription("A utility for detecting fullscreen applications / games.")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("FullScreenDetection")>
<Assembly: AssemblyProduct("Narod's Full Screen Detector")>
<Assembly: AssemblyCopyright("Copyright NarodGaming © 2020-2021")>
<Assembly: AssemblyTrademark("")>

Expand All @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.1.1.0")>
<Assembly: AssemblyFileVersion("1.1.1.0")>
<Assembly: AssemblyVersion("1.1.2.0")>
<Assembly: AssemblyFileVersion("1.1.2.0")>
Binary file modified FullScreenDetection/bin/Debug/FullScreenDetection.dll
Binary file not shown.
Binary file modified FullScreenDetection/bin/Debug/FullScreenDetection.pdb
Binary file not shown.
20 changes: 20 additions & 0 deletions FullScreenDetection/bin/Debug/FullScreenDetection.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified FullScreenDetection/obj/Debug/FullScreenDetection.dll
Binary file not shown.
Binary file modified FullScreenDetection/obj/Debug/FullScreenDetection.pdb
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions FullScreenDetection/obj/Debug/FullScreenDetection.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad81dbb

Please sign in to comment.