forked from lee-soft/ViPad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWin32.bas
45 lines (40 loc) · 1.72 KB
/
Win32.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Attribute VB_Name = "Win32"
Option Explicit
Public Const WM_DWMCOMPOSITIONCHANGED As Long = &H31E
Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Declare Function ApplyGlass Lib "dwmapi.dll" Alias "DwmExtendFrameIntoClientArea" (ByVal hWnd As Long, theRect As RECTL) As Long
Declare Function DwmGetColorizationColor Lib "dwmapi.dll" ()
Declare Function SetClipboardViewer Lib "user32" (ByVal hWnd As Long) As Long
Declare Function ChangeClipboardChain Lib "user32" (ByVal hWnd As Long, _
ByVal hWndNext As Long) As Long
Declare Sub DragAcceptFiles Lib "shell32" (ByVal hWnd As Long, ByVal _
bool As Long)
Declare Function DragQueryFileW Lib "shell32" (ByVal wParam As Long, _
ByVal index As Long, ByVal lpszFile As Long, ByVal BufferSize As Long) _
As Long
Declare Sub DragFinish Lib "shell32" (ByVal hDrop As Integer)
Declare Function GetOpenFileNameA Lib "comdlg32.dll" _
(pOpenfilename As OPENFILENAMEA) As Long
'Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Long
Type OPENFILENAMEA
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
Flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type