(API) - , . API (Application rogramming Interface), , Windows, .
Windows, , Windows . . Windows , , DLL-. Windows , DLL-.
, , , , Windows. :
1. DLL- Windows .
2. DLL Windows , . .
3. Windows , .
, , Windows (Windows API).
Windows API DLL, . DLL Windows (Windows API).
, 32- Windows DLL: User32, GDI32, Kenel32.
User32.dll , , .
GDI32.dll .
Kenel32.dll .
Visual Basic: API-.
, Visual Basic , DLL-, , , . . API-.
:
Option Explicit
API- MessageBeep
Declare Function MessageBeep Lib user32 _
(ByVal wType As Long) As Long
, API-, Declare. , Function. , Visual Basic : .
|
|
: MessageBeep. Lib user32 , DLL- User32, DLL- USER32.LIB. SYSTEM Windows ( SYSTEM32, Windows NT), USER32.LIB.
(ByVal wType As Long) , Long. , As Long .
API-. API- Windows.
API- GetWindowsDirectory , Windows.
:
Option Explicit
API- MessageBeep
Declare Function MessageBeep Lib user32 _
(ByVal wType As Long) As Long
API- GetWindowsDirectory
Declare Function GetWindowsDirectory Lib kernel32 _
Alias GetWindowsDirectoryA
(ByVal lpBuffer As String, ByVal nSize As Long) _
Long) As Long
. , GetWindowsDirectory kernel32. Alias.
, Long:
(ByVal lpBuffer As String, ByVal nSize As Long).
Long.
API- Windows Visual Basic. .