snippet library logo
in category
Visual Basic / Dos / Check for dos window
Snippet details
ID: 195
Viewed: 1277
Added: 2002-04-29
Version:

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
There are times when you might need to know if a window is a DOS window and all you have is the window handle. To find out if a window is a DOS window you only need to do the following two things: Get the task handle for your window handle with the "GetWindowTask" API call. Test this "IsWinOldApTask" API call for true. The following declare statement outlines the IsDOSWindow API call: Declare Function IsWinOldApTask% Lib "kernel" Alias "#158" (ByVal hTask%) In the "kernel" (ex: KRNL386.EXE) file, the exported function, "158", points to this routine. Although undocumented, this API call was supported internally in Windows 3.0 and continues to thrive in the 3.1 and 3.11 versions. It probably won't be around for future Windows versions as DOS seems to be on the way out.

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: unknown

Snippet By:    unknown
Declarations
Highlight All
Code
Highlight All




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.