VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Exclusive Mode (Updated)

Jan Nawara  (3 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This function allows the application to enter and exit exclusive mode. In this mode any message boxes or prompts from Windows and other applications will not show up infront of the program. This is useful when you don't want anything to come up infront of your application window.

Inputs
Reguires a True to turn exclusive mode on and False to turn it off.

Assumes
Essentially this code makes Windows think that your application is a screen saver. The only type of application that Windows will not interupt with message boxes, etc.

Side Effects
This code may cause some problems with screen savers that do not use the normal Windows interface such as After Dark. Users should be made aware of this.

API Declarations
Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long

Rate Exclusive Mode (Updated) (2(2 Vote))
Exclusive Mode (Updated).bas

Exclusive Mode (Updated) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters