11 API Functions for VB6
Here is another handy module from extreme-vb.net. This one covers eleven (11) API-based functions.
Notice
This content originally appeared on on extreme-vb.net. Permission from Bob Schwarz has been granted to included it here for archival purposes.
We can't reach the future without a bridge to the past.
The below table contains a list of the functions, along with a brief explanation of what each one does.
Function Name | Description | Input | Output |
---|---|---|---|
Pause | Puts the app to sleep for the given number of milliseconds | Long Integer | |
ExitWindows | Logoff, shutdown, or reboot the computer. | Long Integer | |
GetUserName | Return the username of the logged on user | String | |
GetComputerName | Return the name of the local computer | String | |
GetActiveWindowTitle | Returns the title of the active window | Boolean | String |
HideTaskBar | Hides the taskbar | ||
ShowTaskBar | Un-hides the taskbar | ||
GetActiveWindow | Returns the handle of the active window | Boolean | Long |
GetWindowTitle | Return the title of a window given its hwnd | Long | String |
TopMostForm | Makes a form the top window if top = True. When top = False it removes this property | object (form), boolean | |
AboutBox | Generates a standard windows About box | object (form), Variant |
About this post
Posted: 2019-04-07
By: vb6boy
Viewed: 865 times
Categories
Attachments
basAPI.zip
Posted: 4/7/2019 6:27:03 AM
Size: 1,583 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.