VBnet Sponsor - Compuware Corporation

 

System Services
Updated Sunday April 08, 2001
   
Category
Topic
Application
vb6
vb5
vb4-32
Killing the Form Close Menu and 'X' Button 
Prevent users from attempting to close an application by disabling the system menu options. July 08.98

Killing Any Form's Close Menu and 'X' Button - SDI, MDIParent or MDIChild
One routine to handle removal/disabling of any form's system menu Close command and form 'X' button. August 15.99



Date & Time
vb6
vb5
Changing the System Long and Short Date Formats with SetLocaleInfo
Now assure that systems always have the desired short and long date formats set. Aug 08.99

Detecting and Notifying Changes to the System Date/Time
Subclass a form to receive date/time change notifications, or notify other windows that it has changed. vb5/vb6 only June 8.99

Determining Daylight Saving Time with GetTimeZoneInformation
Two wrapper functions returning the current time zone info. April 08, 2001

Determining Current, Standard and Daylight Bias
Five functions dealing with the bias (offset from GMT) for the system. April 08, 2001

Determining a Locale's Standard and Daylight Time Zone Names
Two functions to return the names for the local daylight and standard zones. April 08, 2001

Obtaining the Dates for Daylight and Standard Time Changes
Four functions returning various date and time information concerning the transition from Standard to Daylight Savings Time. April 08, 2001

Obtaining a User's Regional Locale Date Settings with EnumDateFormats
Code to enumerate, via callbacks, the available locale time strings. May 16.99

Obtaining a User's Regional Locale Time Settings with EnumTimeFormats
Code to enumerate, via callbacks, the available locale time strings. May 16.99

Obtaining a User's System Calendar Information
Use Enumeration callbacks to retrieve the month and days specific to the users locale. Aug 08.99

Retrieving a User's Regional Locale Date Settings
Obtain the national language locale settings for the user to retrieve strings representing times, dates, and other information. May 15.99



Display & Screen
vb6
vb5
vb4-32

 

Changing the Display Resolution from Visual Basic
Use this routine to change the current screen resolution or depth. Sep 01.98 vb6, vb5 only

Enumerating the Available Display Resolutions
Method to determine which resolutions a system supports. Modified from original code to support multiple-frequencies returned by NT4. Jun 04.99 vb6, vb5 only

How to Detect the Current System Screen Font
A small API routine to determine which system font (Small or Large) installed on the target system.

How to Determine the Available Screen 'Real Estate'
Using the SystemParametersInfo API to return the co-ordinates of the screen not covered by taskbars.

How to Determine TaskBar Positions Using SHAppBarMessage
API code indicating the current screen docking positions of taskbars, and their state (on-top, hidden etc.).

How to Determine Windows Startup Mode
API to determine if Windows is currently running in Normal Mode, Safe Mode, or Safe Mode with Network Support. Feb 16.98

Obtaining the Current Display Settings
Code to obtain the myriad of GetDeviceCaps settings for displays April 18.99

Retrieving Non-Client Area Font Info using SystemParametersInfo
Get the font data for popular Display Properties / Appearance members.  Dec 7.99



Hardware
vb6
vb5
vb4-32
Using DeviceIOControl to Obtain Physical Drive Information
Retrieve low-level physical disk information on NT/2000.  Jan 8.2000

Locking Removable Media Devices Using DeviceIoControl
How to lock and unlock removable media on NT/2000 systems.  Mar 9.2000

Loading and Ejecting Removable Media Using DeviceIoControl
How to eject and load any removable media on NT/2000 systems.  Mar 9.2000

Checking for Media Availability Using DeviceIoControl
Determines whether the drive specified contains media on NT/2000 systems.  Mar 9.2000



Keyboard
vb6
vb5
vb4-32

 

Activating CapsLock and NumLock on Win9x
Turn CapsLock or NumLock on or off on Windows 9x using keybd_event. Win9x only

Activating CapsLock, NumLock, ScrollLock and PrintScreen on NT/2000
Changing the keyboard state using the keybd_event API on Windows NT/Windows 2000. Aug 25.99

How to Manipulate the Desktop Using keybd_event 
Launch Explorer, Find Files, and the Run Dialog, open the Start Menu, Minimize all windows, and launch Windows Help, all using three lines of code and the keybd_event API. Oct 27.98

Obtaining the Keyboard Locale Identifier
Code to return the LCID and keyboard layout language information.  May 21.2000



Locales
vb6
vb5
Enumerating the Installed and Supported System Locales
Retrieve the codepage language names and abbreviations using the EnumSystemLocales callback. Nov 09.99

Obtaining a User's Regional Locale Date Settings with EnumDateFormats
Code to enumerate, via callbacks, the available locale time strings. May 16.99

Obtaining a User's Regional Locale Time Settings with EnumTimeFormats
Code to enumerate, via callbacks, the available locale time strings. May 16.99

Retrieving a User's Regional Locale Country Settings
Obtaining system-specific settings for country information to assure international compliance. Mar 20.2000

Retrieving a User's Regional Locale Currency Settings
Obtaining system-specific settings for currency settings to assure international compliance. Mar 20.2000

Retrieving a User's Regional Locale Date Settings
Obtaining system-specific settings for date information to assure international compliance. May 15.99

Retrieving a User's Regional Locale Numeric Settings
Obtaining system-specific settings for numeric values to assure international compliance. Mar 20.2000



Media
vb6
vb5
vb4-32

 

Determining if a Floppy Drive is Ready
Four wrapper routines that each determine if a removable drive is ready. Sept 12.99

Ejecting Media from a CDROM
Using winmm.dll's mciSendString API, a one-liner to open or close a CD.  June 29.98

Locking Removable Media Devices Using DeviceIoControl
How to lock and unlock removable media on NT/2000 systems.  Mar 9.2000

Loading and Ejecting Removable Media Using DeviceIoControl
How to eject and load any removable media on NT/2000 systems.  Mar 9.2000

Checking for Media Availability Using DeviceIoControl
Determines whether the drive specified contains media on NT/2000 systems.  Mar 9.2000



Memory &
Resources
vb6
vb5
Displaying Memory Information Under Win32
The method to obtain system memory information for 32-bit Windows.

Obtaining the System Processor Information
API code to retrieve processor version, type and speed.  Nov 28.99

Obtaining Windows' Version Information
Retrieve operating system info with GetVersionEx. Aug 14.99

Obtaining Windows System Directories
Wrapper functions for returning the Windows, Windows\System, and Windows temporary directories on the target machine.  Feb 3.97



Printers & Ports
vb6
vb5
vb4-32
Adding and Deleting Application-Defined Ports
Using AddPort and AddPortEx APIs. Oct 03.99

Changing the Default Printer on Windows NT/2000
The title just about says it all!  Mar 20.2000

Enumerating Local and Network Printers
Determine the available printers. print servers, domains, or print providers using EnumPrinters for Win9x and NT. Sep 20.99

Enumerating Windows' Available Ports
Find the installed ports on the specified machine. Sep 17.99



Recycle Bin
vb6
vb5
vb4-32
How to Receive Shell Change Notifications
Track additions, deletions and changes to the physical and virtual file system. (VB5/6 only) Sep 13.98

Recycle Bin Management
API methods to display, count and empty the recycle bin in code. Jan 13.98

Utilizing Windows Recycle Bin
Using the SHFileOperation API, add the capability of regular file deletion or Recycle Bin storage to your applications easily.

Utilizing Windows SHFileOperation API, Advanced
Build on the SHFileOperation Recycle Bin routine to include multiple file deletions, file moving and file copying, all with the same routine.



System
vb6
vb5
vb4-32
Adding Even More Control Panel and Shell32 Functions to a VB Application Jun 19.99
The rundll32 statements to invoke a myriad of control panel and Windows shell features from your VB app. (104k)

Determining the Name of the Executable Associated with a Specific File
Use FindExecutable to retrieve the file associated with a particular file extension. Sept 12.99

Obtaining the Debugging Information for an Image Using MapDebugInformation
Tap into a DLL to view the exported functions  Jan 15.2000

Obtaining the hWnd of an Application Started with Shell()
Use GetWindowThreadProcessId to obtain the handle to an application started with Shell. May 12.99

Obtaining the Path and Filename of the Default Browser
Using FindExecutable and a temporary file to determine the application associated with html files. Oct 13.99

Retrieving MS ODBC Driver Information
Using GetPrivateProfileString and GetFileVersionInfo to retrieve Microsoft-installed ODBC drivers. Oct 19.99

Retrieving System Messages with FormatMessage
Using FormatMessage to provide the system and error message strings defined in Windows. Jun 20.98

Sending System Messages using NetMessageBufferSend
Send alerts to other NT servers or workstations, or to Win9x systems running WinPopup Jan 25.2000

The Win32 Rundll and Rundll32 Interface
A discussion on rundll and rundll32 in Windows 95, Windows 98 and NT4, including considerations when writing dll's to interface with rundll. From the MS Knowledge Base.
Jul 3.97

Using DeviceIOControl to Obtain Physical Drive Information
Retrieve low-level physical disk information on NT/2000.  Jan 8.2000

Using Win32's MessageBoxEx API
Create a message box using the Win32 API Nov 11.98



Toolhelp
vb6
vb5
vb4-32
Obtaining a List of Running Processes
Using the Toolhelp APIs of Win95, this code creates a listbox of the currently running processes. Mar 3.97


Version Info
vb6
vb5
vb4-32
Determining the Cipher Strength of Internet Explorer
Code to determine whether the current security strength of Internet Explorer is 40- or 128-bit.  Nov 27.99

Obtaining Internet Explorer's Version
API code to retrieve the current version of Internet Explorer. Nov 27.99

Retrieving MS ODBC Driver Information
Using GetPrivateProfileString and GetFileVersionInfo to retrieve Microsoft-installed ODBC drivers. Oct 19.99



Windows
vb6
vb5
Enumerating Windows Using Callbacks
Another Enumxxx API, this one enumerates system windows using AddressOf. Jun 17.98

EnumWindows and EnumChildWindows Callbacks
Using EnumWindows and EnumChildWindows. Jan 26.2000



Window Class & Title
vb6
vb5
vb4-32
How to Find Applications Matching a Specific Class or Window Title
Code to list all active windows containing either the Class name or Window title specified, including only partial names.  Jun 22.98

Win32 Window Title and Class Name Demo
Application to list all windows containing either the Class name or Window title specified, including only partial names. Includes code to activate windows, adjust the listbox display, and uses the FindWindowLike routine with a window handle array. Jun 22.98



VBnet Sponsor - Compuware Corporation

Copyright ©1996-2001 ebirch ltd/VBnet and Randy Birch. All Rights Reserved.  Terms of Use