home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
WINAPI.SAM
< prev
next >
Wrap
INI File
|
1992-09-22
|
14KB
|
959 lines
[ver]
4
[sty]
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
QMS-PS 810
[port]
LPT1:
[lang]
1
[desc]
Windows API defines. Use the INCLUDE powerfield to embed these defines in a macro.
708292257
3
707778929
84
2
0
0
0
0
Example:<*-><**>Include "WinApi.sam"
1
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[tag]
Body Text
2
[fnt]
Arial
160
0
16384
[algn]
1
1
0
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Body Single
3
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
0
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
280
1
2
.
,
$
Body Single
0
0
[tag]
Bullet
4
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
0
288
288
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
<*0>
360
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
$
Bullet
0
0
[tag]
Bullet 1
5
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
288
288
288
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
<*5>
0
1
1
0
0
0
0
[nfmt]
280
1
2
.
,
$
Bullet 1
0
0
[tag]
Number List
6
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
360
360
360
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
<*:>.
360
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
$
Number List
0
0
[tag]
Subhead
7
[fnt]
Times New Roman
200
0
49152
[algn]
1
1
0
0
0
[spc]
33
273
1
72
72
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
2
0
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
$
Subhead
0
0
[tag]
Title
8
[fnt]
Arial
360
0
16385
[algn]
4
1
0
0
0
[spc]
33
446
1
144
72
1
100
[brk]
16
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
1
0
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
$
Title
0
0
[tag]
Header
9
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
0
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
280
1
2
.
,
$
Header
0
0
[tag]
Footer
11
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
0
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
280
1
2
.
,
$
Footer
0
0
[lay]
Standard
513
[rght]
15840
12240
1
720
720
1
720
720
0
1
0
1
0
2
1
720
11520
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
12240
720
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
720
12240
1
1440
0
1
576
1440
0
1
0
1
1
0
1
1440
10800
2
2
4680
3
9360
[txt]
>
[frght]
[lyfrm]
1
13248
0
15120
12240
15840
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
15840
12240
1
1440
576
1
15192
1440
0
1
0
1
1
0
1
1440
10800
2
2
4680
3
9360
[txt]
>
[elay]
[l1]
0
[pg]
2
75 0 5 512 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
131 0 0 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
@Subhead@<:#240,10800>'User Defines
<:#187,10800>
<:#187,10800>Define AddLine(hWnd, stuff) DllCall("outdll,AddLine,HHC", %1, %2)
<:#187,10800>Define AddMacroCall(hwnd, macro, cmd) DllCall("outdll,AddMacroCall,HHCH", %1, %2, %3)
<:#187,10800>DEFINE BinEscape() DllCall("gdi.exe,Escape,HHHHNC",%1,8,2,%2,"")
<:#187,10800>Define ClientToScreen(hwnd, lppoint) dllcall("user,ClientToScreen,HHN", %1, %2)
<:#374,10800>Define CreateFont() DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14)
<:#187,10800>DEFINE CreateIC() DllCall("gdi.exe,CreateIC,HCCCC",%1,%2,%3,%4)
<:#187,10800>DEFINE DeleteDC() DllCall("gdi.exe,DeleteDC,HH",%1)
<:#187,10800>Define DeleteObject(handle) DllCall("gdi,DeleteObject,HH", %1)
<:#187,10800>Define DestroyWindow(hwnd) DllCall("user,DestroyWindow,HH", %1)
<:#187,10800>Define EnableHardwareInput() dllcall("user,EnableHardwareInput,AA", %1)
@Outline3@<:#187,10800>define EnableWindow(hWnd, stuff) DllCall("user,enableWindow,HHH", %1, %2)
<:#187,10800>Define FindWindow() DllCall("user,FindWindow,HCC", %1, %2)
<:#187,10800>Define GetActiveWindow() DllCall("user,GetActiveWindow,H")
<:#187,10800>Define getcaretpos() dllcall("user,getcaretpos,HN", %1)
<:#187,10800>Define GetClassName(hwnd, name, len) dllcall("user,GetClassName,HHCH", %1, %2, %3)
<:#187,10800>Define GetClientRect(hWnd, lpRect) dllcall("user,GetClientRect,HHN", %1, %2)
<:#187,10800>Define GetCurrentTask() DllCall("kernel,GetCurrentTask,H")
<:#187,10800>Define getcursorpos() dllcall("user,getcursorpos,HN", %1)
<:#187,10800>Define GetDC(hWnd) DllCall("user,GetDC,HH", %1)
<:#187,10800>Define GetDeskTopWindow() DllCall("User,GetDeskTopWindow,H")
<:#187,10800>Define GetDlgCtrlId() DllCall("User,GetDlgCtrlId,HH",%1)
<:#187,10800>Define Getfocus() DllCall("user,GetFocus,H")
<+@><:#187,10800>Define GetKeyBoardState(lpstate) dllcall("user,GetKeyBoardState,HN", %1)
@Outline3@<:#187,10800>define GetMenu(HWND) DllCall("user,GetMenu,HH", %1)
@Outline3@<:#187,10800>define GetMenuItemCount(HMENU) DllCall("user,GetMenuItemCount,HH", %1)
@Outline3@<:#187,10800>define GetMenuItemID(HMENU, int) DllCall("user,GetMenuItemID,LHH", %1, %2)
@Outline3@<:#187,10800>define GetMenuString(HMENU, WORD, LPSTR, int, WORD) DllCall("user,GetMenuString,HHHFHH", %1, %2, %3, %4, %5)
<:#187,10800>Define GetModuleHandle(name) DllCall("kernel,GetModuleHandle,HC", %1)
@Outline3@<:#187,10800>define GetParent(hWnd) DllCall("user,GetParent,HH", %1)
<:#187,10800>DEFINE GetSetBins() DllCall("gdi.exe,Escape,HHHHCN",%1,29,4,"",%2)
@Outline3@<:#187,10800>define GetSubMenu(HMENU, int) DllCall("user,GetSubMenu,HHH", %1, %2)
<:#187,10800>Define getsystemmetrics() dllcall("user,getsystemmetrics,HH", %1)
<:#187,10800>DEFINE GetTechnology() DllCall("gdi.exe,Escape,HHHHCC",%1,20,0,0,%2)
<:#187,10800>Define GetVersion() DllCall("kernel,GetVersion,H")
@Outline3@<:#187,10800>define Getvideomode(p1) DllCall("user,GetSystemMetrics,HH",%1)
<:#187,10800>Define GetWindow(hwnd, cmd) dllcall("user,GetWindow,HHH", %1, %2)
<:#187,10800>Define GetWindowOrg(hdc) DllCall("gdi,GetWindowOrg,HH", %1)
<:#187,10800>Define GetWindowSize() DllCall("user,GetWindowRect,HHN",%1,%2)
@Outline3@<:#187,10800>define GlobalAddAtom(lp) DllCall("user,GlobalAddAtom,HC", %1)
@Outline3@<:#187,10800>define HiliteMenuItem(HWND, HMENU, WORD, WORD) DllCall("user,HiliteMenuItem,AHHLL", %1, %2, %3, %4)
@Outline3@<:#187,10800>define IconConfig(hwnd, ini) DllCall("outdll,IconConfig,HHC", %1, %2)
@Outline3@<:#187,10800>define IconOff(hwnd) DllCall("outdll,IconOff,HH", %1)
@Outline3@<:#187,10800>define IconOn(hwnd, ini, ega, vga, 8514, pos) DllCall("outdll,IconOn,HHCCCCHC", %1, %2, %3, %4, %5, %6, %7)
<:#187,10800>Define InvalidateRect(hwnd, stuff, H) DllCall("user,InvalidateRect,HHFH", %1, %2, %3)
@Outline3@<:#187,10800>define IsIconic(hWnd) DllCall("user,IsIconic,HH", %1)
<:#187,10800>define LBGetText(hwnd,Id,Ptr) dllcall("user,sendmessage,HHHHC", %1, LB_GETTEXT, %2, %3)
<:#187,10800>Define LPtoDP() dllcall("gdi,LPtoDP,HHNH", %1, %2, %3)
<:#187,10800>Define MoveWindow() DllCall("User,MoveWindow,HHHHHHA",%1,%2,%3,%4,%5,%6)
<:#187,10800>DEFINE NumBins() DllCall("gdi.exe,Escape,HHHHNN",%1,31,%2,%3,%4)
<:#187,10800>Define PickFont(hwnd, face, size) DllCall("outdll,PickFont,HHCH", %1, %2, %3)
<:#187,10800>Define PostMessage(hwnd, message, wparam, lparao) dllcall("user,PostMessage,JHHHJ", %1, %2, %3, %4)
<:#187,10800>Define ReleaseCapture(hWnd) DllCall("user,ReleaseCapture,H")
<:#187,10800>Define ReleaseDC(hWnd, hcc) DllCall("user,ReleaseDC,HHH", %1, %2)
@Outline3@<:#187,10800>define RepaintIt(hwnd) InvalidateRect(%1, 0, 1)
<:#187,10800>Define ScreenToClient(hWnd, lpPoint) dllcall("user,screentoclient,HHN", %1, %2)
<:#187,10800>Define SendMessage(hwnd, message, wparam, lparao) dllcall("user,SendMessage,JHHHJ", %1, %2, %3, %4)
@Outline3@<:#187,10800>define SetBkColor(hdc, color) DllCall("gdi,SetBkColor,HHJ", %1, %2)
<:#187,10800>Define SetBkMode(hdc, nmode) DllCall("gdi,SetBkMode,HHH", %1, %2)
<:#187,10800>Define SetCallBackKey(hwnd, key, event) DllCall("outdll,SetCallBackKey,HHHH", %1, %2, %3)
<:#187,10800>Define SetCapture(hWnd) DllCall("user,SetCapture,HH", %1)
<:#187,10800>Define SetCursorPos(x, y) dllcall("user,SetCursorPos,HHH", %1, %2)
<:#187,10800>Define SetDeskWallPaper() DllCall("user,SetDeskWallPaper,HC",%1)
@Outline3@<:#187,10800>define SetFocus(hWnd) DllCall("user,SetFocus,HH",%1)
<+@><:#187,10800>Define SetKeyBoardState(lpstate) dllcall("user,SetKeyBoardState,HN", %1)
<:#187,10800>Define SetTextColor(hdc, color) DllCall("gdi,SetTextColor,HHJ", %1, %2)
@Outline3@<:#187,10800>define SetWallPaper(hwnd, fname) DllCall("outdll,SetWallPaper,HHC", %1, %2)
<:#187,10800>Define SetWindowText(hwnd,text) DllCall("User,SetWindowText,HHC",%1,%2)
<:#187,10800>Define showcursor() dllcall("user,showcursor,HA", %1)
<:#187,10800>Define ShowWindow(hWnd, stuff) DllCall("user,ShowWindow,HHH", %1, %2)
<:#187,10800>Define Speak() DllCall("mmsystem,SndPlaySound,IICI", "WavPlaySoundFile", %1, 1)
@Outline3@<:#187,10800>define TitleBarMsg() SetWindowText(GetActiveWindow(), %1)
@Outline3@<:#187,10800>define WinHelp(hWnd, file, cmd, ptr) DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4)
@Outline2@<:p<* >>
@Outline2@<:#187,10800>
@Outline3@<:#187,10800>define ADD_LINE 100
<:#187,10800>Define ADD_PARA 101
<:#187,10800>Define ALIGN_CEN 3
<:#187,10800>Define ALIGN_JUST 2
<:#187,10800>Define ALIGN_LEFT 1
<:#187,10800>Define ALIGN_RIGHT 4
<:#187,10800>Define ALIGNMENT 110
<:#187,10800>Define BOT_MARG 107
<:#187,10800>DEFINE CB_GetCurSel 0x407
<:#187,10800>Define CB_SetCurSel 1038
@Outline3@<:#187,10800>define COMMIT 102
<:#187,10800>Define DM_SETDEFID 1025
<:#187,10800>Define EB_Width 8001
<:#187,10800>Define EM_CANUNDO 1046
<:#187,10800>Define EM_LimitText 1045
<:#187,10800>Define EV_EXIT 2
<:#187,10800>Define EV_LEFTCLK 0
<:#187,10800>Define EV_RIGHTCLK 1
<:#187,10800>Define GW_CHILD 5
<:#187,10800>Define GW_HWNDNEXT 2
<:#187,10800>Define HELP_CONTEXT 0x0001
@Outline2@<:#187,10800>define LB_DELETESTRING 1027
@Outline2@<:#187,10800>define LB_GETCOUNT 1036
@Outline2@<:#187,10800>Define LB_GETCURSEL 1033
<:#187,10800>DEFINE LB_GetSel 0x408
@Outline2@<:#187,10800>define LB_GETTEXT 1034
<:#187,10800>define LB_INSERTSTRING 1026
<:#187,10800>DEFINE LB_ResetContent 0x405
@Outline2@<:#187,10800>define LB_SETCURSEL 1031
@Outline2@<:#187,10800>Define LB_SetTopIndex 1048
<:#187,10800>Define LEFT_MARG 106
@Outline3@<:#187,10800>define MF_BYPOSITION 0x0400
@Outline3@<:#187,10800>define MF_HILITE 0x0080
<:#187,10800>Define MOVE_WIN 103
<:#187,10800>Define RB_Text 20
@Outline3@<:#187,10800>define RIGHT_MARG 108
<:#187,10800>Define SetDefID() AppSendMessage(hdlg,DM_SETDEFID,%1,0)
<:#187,10800>Define SIZE_WIN 104
<:#187,10800>Define TOP_MARG 105
<:#187,10800>define VK_DOWN 40
<:#187,10800>define VK_F1 112
<:#187,10800>define VK_Next 34 ' page down virtual key
<:#187,10800>define VK_Prior 33 ' page up
<:#187,10800>define VK_UP 38
@Outline3@<:#187,10800>define WALLPAPER 109
<:#187,10800>Define WM_CLOSE 0x010
<:#187,10800>Define WM_COMMAND 0x111
<:#187,10800>Define WM_LBUTTONDOWN 0x0201
<:#187,10800>Define WM_LBUTTONUP 0x0202
<:#187,10800>Define WM_RBUTTONDOWN 0x0204
<:#187,10800>Define WM_RBUTTONUP 0x0205
<:#187,10800>Define WM_SETCURSEL 0x407
<:#187,10800>Define WM_SETFONT 0x30
<:#187,10800>
@Outline3@<:#187,10800>
>
[Embedded]
00013635