Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web


VB API

Contact Me

Sign Guest Book

Catalog Page

Visual Basic API:

API Calls
I Hope You Enjoy All The Things I Have Put Here For You. I Will Include One Piece Of Code Per Catagory. The Catagories Are Hardware And System Functions, Window Functions(Not The Operating System), And File Operations.


ExitWindowsEx
Private Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

Description: Allows You To Exit And Restart Windows.
uFlags: 1 = Shutdown
uFlags: 2 = ReBoot
uFlags: 0 = LogOff

dwReserved: Set This To Zero
ShowWindow
Private Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

hWnd: Handle Of The Window To Apply To

nCmdShow: 0 = Hides The Window
nCmdShow: 5 = Shows The Window


 

SetFileAttributes
Private Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long

lpFileName: Name Of The File To Apply To

dwFileAttributes: Hidden = &H2
dwFileAttributes: Read-Only = &H1
dwFileAttributes: System = &H4
dwFileAttributes: Normal = &80
dwFileAttributes: Directory = &H10
dwFileAttributes: Compressed = &H800
dwFileAttributes: Archive = &H20