initial
This commit is contained in:
4
public/wintab/wntab32x/buttonma.c
Normal file
4
public/wintab/wntab32x/buttonma.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrCsrButtonMap, Wintab, -, 182)
|
4
public/wintab/wntab32x/cfgrepla.c
Normal file
4
public/wintab/wntab32x/cfgrepla.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrConfigReplaceExA, Wintab, -, 202)
|
4
public/wintab/wntab32x/cfgreplw.c
Normal file
4
public/wintab/wntab32x/cfgreplw.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrConfigReplaceExW, Wintab, -, 1202)
|
4
public/wintab/wntab32x/close.c
Normal file
4
public/wintab/wntab32x/close.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTClose, Wintab, -, 22)
|
4
public/wintab/wntab32x/config.c
Normal file
4
public/wintab/wntab32x/config.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTConfig, Wintab, -, 60)
|
4
public/wintab/wntab32x/csrenabl.c
Normal file
4
public/wintab/wntab32x/csrenabl.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrCsrEnable, Wintab, -, 181)
|
4
public/wintab/wntab32x/csrext.c
Normal file
4
public/wintab/wntab32x/csrext.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrCsrExt, Wintab, -, 185)
|
4
public/wintab/wntab32x/ctxenum.c
Normal file
4
public/wintab/wntab32x/ctxenum.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrContextEnum, Wintab, -, 120)
|
4
public/wintab/wntab32x/ctxowner.c
Normal file
4
public/wintab/wntab32x/ctxowner.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrContextOwner, Wintab, -, 121)
|
4
public/wintab/wntab32x/dataget.c
Normal file
4
public/wintab/wntab32x/dataget.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTDataGet, Wintab, -, 81)
|
4
public/wintab/wntab32x/datapeek.c
Normal file
4
public/wintab/wntab32x/datapeek.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTDataPeek, Wintab, -, 82)
|
4
public/wintab/wntab32x/defconte.c
Normal file
4
public/wintab/wntab32x/defconte.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrDefContext, Wintab, -, 122)
|
4
public/wintab/wntab32x/defctxex.c
Normal file
4
public/wintab/wntab32x/defctxex.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrDefContextEx, Wintab, -, 206)
|
4
public/wintab/wntab32x/dvcconfi.c
Normal file
4
public/wintab/wntab32x/dvcconfi.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrDeviceConfig, Wintab, -, 140)
|
4
public/wintab/wntab32x/enable.c
Normal file
4
public/wintab/wntab32x/enable.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTEnable, Wintab, -, 40)
|
4
public/wintab/wntab32x/ext.c
Normal file
4
public/wintab/wntab32x/ext.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrExt, Wintab, -, 180)
|
4
public/wintab/wntab32x/extget.c
Normal file
4
public/wintab/wntab32x/extget.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTExtGet, Wintab, -, 63)
|
4
public/wintab/wntab32x/extset.c
Normal file
4
public/wintab/wntab32x/extset.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTExtSet, Wintab, -, 64)
|
4
public/wintab/wntab32x/geta.c
Normal file
4
public/wintab/wntab32x/geta.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTGetA, Wintab, -, 61)
|
4
public/wintab/wntab32x/getw.c
Normal file
4
public/wintab/wntab32x/getw.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTGetW, Wintab, -, 1061)
|
4
public/wintab/wntab32x/infoa.c
Normal file
4
public/wintab/wntab32x/infoa.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTInfoA, Wintab, -, 20)
|
4
public/wintab/wntab32x/infow.c
Normal file
4
public/wintab/wntab32x/infow.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTInfoW, Wintab, -, 1020)
|
4
public/wintab/wntab32x/mgrclose.c
Normal file
4
public/wintab/wntab32x/mgrclose.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrClose, Wintab, -, 101)
|
4
public/wintab/wntab32x/mgropen.c
Normal file
4
public/wintab/wntab32x/mgropen.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrOpen, Wintab, -, 100)
|
4
public/wintab/wntab32x/opena.c
Normal file
4
public/wintab/wntab32x/opena.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTOpenA, Wintab, -, 21)
|
4
public/wintab/wntab32x/openw.c
Normal file
4
public/wintab/wntab32x/openw.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTOpenW, Wintab, -, 1021)
|
4
public/wintab/wntab32x/overlap.c
Normal file
4
public/wintab/wntab32x/overlap.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTOverlap, Wintab, -, 41)
|
4
public/wintab/wntab32x/packet.c
Normal file
4
public/wintab/wntab32x/packet.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTPacket, Wintab, -, 24)
|
4
public/wintab/wntab32x/phnext.c
Normal file
4
public/wintab/wntab32x/phnext.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrPacketHookNext, Wintab, -, 205)
|
4
public/wintab/wntab32x/pkthkexa.c
Normal file
4
public/wintab/wntab32x/pkthkexa.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrPacketHookExA, Wintab, -, 203)
|
4
public/wintab/wntab32x/pkthkexw.c
Normal file
4
public/wintab/wntab32x/pkthkexw.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrPacketHookExW, Wintab, -, 1203)
|
4
public/wintab/wntab32x/pktsget.c
Normal file
4
public/wintab/wntab32x/pktsget.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTPacketsGet, Wintab, -, 23)
|
4
public/wintab/wntab32x/pktspeek.c
Normal file
4
public/wintab/wntab32x/pktspeek.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTPacketsPeek, Wintab, -, 80)
|
4
public/wintab/wntab32x/pktunhk.c
Normal file
4
public/wintab/wntab32x/pktunhk.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrPacketUnhook, Wintab, -, 204)
|
182
public/wintab/wntab32x/proc.h
Normal file
182
public/wintab/wntab32x/proc.h
Normal file
@ -0,0 +1,182 @@
|
||||
/* --------------------------------- proc.h --------------------------------- */
|
||||
#include <windows.h>
|
||||
#include <wintab.h>
|
||||
|
||||
|
||||
#define T_WTInfoA UINT
|
||||
#define K_WTInfoA API
|
||||
#define P_WTInfoA (UINT a, UINT b, LPVOID c)
|
||||
#define A_WTInfoA (a,b,c)
|
||||
#define T_WTInfoW UINT
|
||||
#define K_WTInfoW API
|
||||
#define P_WTInfoW (UINT a, UINT b, LPVOID c)
|
||||
#define A_WTInfoW (a,b,c)
|
||||
#define T_WTOpenA HCTX
|
||||
#define K_WTOpenA API
|
||||
#define P_WTOpenA (HWND a, LPLOGCONTEXTA b, BOOL c)
|
||||
#define A_WTOpenA (a,b,c)
|
||||
#define T_WTOpenW HCTX
|
||||
#define K_WTOpenW API
|
||||
#define P_WTOpenW (HWND a, LPLOGCONTEXTW b, BOOL c)
|
||||
#define A_WTOpenW (a,b,c)
|
||||
#define T_WTClose BOOL
|
||||
#define K_WTClose API
|
||||
#define P_WTClose (HCTX a)
|
||||
#define A_WTClose (a)
|
||||
#define T_WTPacketsGet int
|
||||
#define K_WTPacketsGet API
|
||||
#define P_WTPacketsGet (HCTX a, int b, LPVOID c)
|
||||
#define A_WTPacketsGet (a,b,c)
|
||||
#define T_WTPacket BOOL
|
||||
#define K_WTPacket API
|
||||
#define P_WTPacket (HCTX a, UINT b, LPVOID c)
|
||||
#define A_WTPacket (a,b,c)
|
||||
#define T_WTEnable BOOL
|
||||
#define K_WTEnable API
|
||||
#define P_WTEnable (HCTX a, BOOL b)
|
||||
#define A_WTEnable (a,b)
|
||||
#define T_WTOverlap BOOL
|
||||
#define K_WTOverlap API
|
||||
#define P_WTOverlap (HCTX a, BOOL b)
|
||||
#define A_WTOverlap (a,b)
|
||||
#define T_WTConfig BOOL
|
||||
#define K_WTConfig API
|
||||
#define P_WTConfig (HCTX a, HWND b)
|
||||
#define A_WTConfig (a,b)
|
||||
#define T_WTGetA BOOL
|
||||
#define K_WTGetA API
|
||||
#define P_WTGetA (HCTX a, LPLOGCONTEXTA b)
|
||||
#define A_WTGetA (a,b)
|
||||
#define T_WTGetW BOOL
|
||||
#define K_WTGetW API
|
||||
#define P_WTGetW (HCTX a, LPLOGCONTEXTW b)
|
||||
#define A_WTGetW (a,b)
|
||||
#define T_WTSetA BOOL
|
||||
#define K_WTSetA API
|
||||
#define P_WTSetA (HCTX a, LPLOGCONTEXTA b)
|
||||
#define A_WTSetA (a,b)
|
||||
#define T_WTSetW BOOL
|
||||
#define K_WTSetW API
|
||||
#define P_WTSetW (HCTX a, LPLOGCONTEXTW b)
|
||||
#define A_WTSetW (a,b)
|
||||
#define T_WTExtGet BOOL
|
||||
#define K_WTExtGet API
|
||||
#define P_WTExtGet (HCTX a, UINT b, LPVOID c)
|
||||
#define A_WTExtGet (a,b,c)
|
||||
#define T_WTExtSet BOOL
|
||||
#define K_WTExtSet API
|
||||
#define P_WTExtSet (HCTX a, UINT b, LPVOID c)
|
||||
#define A_WTExtSet (a,b,c)
|
||||
#define T_WTSave BOOL
|
||||
#define K_WTSave API
|
||||
#define P_WTSave (HCTX a, LPVOID b)
|
||||
#define A_WTSave (a,b)
|
||||
#define T_WTRestore HCTX
|
||||
#define K_WTRestore API
|
||||
#define P_WTRestore (HWND a, LPVOID b, BOOL c)
|
||||
#define A_WTRestore (a,b,c)
|
||||
#define T_WTPacketsPeek int
|
||||
#define K_WTPacketsPeek API
|
||||
#define P_WTPacketsPeek (HCTX a, int b, LPVOID c)
|
||||
#define A_WTPacketsPeek (a,b,c)
|
||||
#define T_WTDataGet int
|
||||
#define K_WTDataGet API
|
||||
#define P_WTDataGet (HCTX a, UINT b, UINT c, int d, LPVOID e, LPINT f)
|
||||
#define A_WTDataGet (a,b,c,d,e,f)
|
||||
#define T_WTDataPeek int
|
||||
#define K_WTDataPeek API
|
||||
#define P_WTDataPeek (HCTX a, UINT b, UINT c, int d, LPVOID e, LPINT f)
|
||||
#define A_WTDataPeek (a,b,c,d,e,f)
|
||||
#define T_WTQueuePacketsEx BOOL
|
||||
#define K_WTQueuePacketsEx API
|
||||
#define P_WTQueuePacketsEx (HCTX a, UINT FAR * b, UINT FAR * c)
|
||||
#define A_WTQueuePacketsEx (a,b,c)
|
||||
#define T_WTQueueSizeGet int
|
||||
#define K_WTQueueSizeGet API
|
||||
#define P_WTQueueSizeGet (HCTX a)
|
||||
#define A_WTQueueSizeGet (a)
|
||||
#define T_WTQueueSizeSet int
|
||||
#define K_WTQueueSizeSet API
|
||||
#define P_WTQueueSizeSet (HCTX a, int b)
|
||||
#define A_WTQueueSizeSet (a,b)
|
||||
#define T_WTMgrOpen HMGR
|
||||
#define K_WTMgrOpen API
|
||||
#define P_WTMgrOpen (HWND a, UINT b)
|
||||
#define A_WTMgrOpen (a,b)
|
||||
#define T_WTMgrClose BOOL
|
||||
#define K_WTMgrClose API
|
||||
#define P_WTMgrClose (HMGR a)
|
||||
#define A_WTMgrClose (a)
|
||||
#define T_WTMgrContextEnum BOOL
|
||||
#define K_WTMgrContextEnum API
|
||||
#define P_WTMgrContextEnum (HMGR a, WTENUMPROC b, LPARAM c)
|
||||
#define A_WTMgrContextEnum (a,b,c)
|
||||
#define T_WTMgrContextOwner HWND
|
||||
#define K_WTMgrContextOwner API
|
||||
#define P_WTMgrContextOwner (HMGR a, HCTX b)
|
||||
#define A_WTMgrContextOwner (a,b)
|
||||
#define T_WTMgrDefContext HCTX
|
||||
#define K_WTMgrDefContext API
|
||||
#define P_WTMgrDefContext (HMGR a, BOOL b)
|
||||
#define A_WTMgrDefContext (a,b)
|
||||
#define T_WTMgrDefContextEx HCTX
|
||||
#define K_WTMgrDefContextEx API
|
||||
#define P_WTMgrDefContextEx (HMGR a, UINT b, BOOL c)
|
||||
#define A_WTMgrDefContextEx (a,b,c)
|
||||
#define T_WTMgrDeviceConfig UINT
|
||||
#define K_WTMgrDeviceConfig API
|
||||
#define P_WTMgrDeviceConfig (HMGR a, UINT b, HWND c)
|
||||
#define A_WTMgrDeviceConfig (a,b,c)
|
||||
#define T_WTMgrConfigReplaceExA BOOL
|
||||
#define K_WTMgrConfigReplaceExA API
|
||||
#define P_WTMgrConfigReplaceExA (HMGR a, int b, LPSTR c, LPSTR d)
|
||||
#define A_WTMgrConfigReplaceExA (a,b,c,d)
|
||||
#define T_WTMgrConfigReplaceExW BOOL
|
||||
#define K_WTMgrConfigReplaceExW API
|
||||
#define P_WTMgrConfigReplaceExW (HMGR a, int b, LPWSTR c, LPSTR d)
|
||||
#define A_WTMgrConfigReplaceExW (a,b,c,d)
|
||||
#define T_WTMgrPacketHookExA HWTHOOK
|
||||
#define K_WTMgrPacketHookExA API
|
||||
#define P_WTMgrPacketHookExA (HMGR a, int b, LPSTR c, LPSTR d)
|
||||
#define A_WTMgrPacketHookExA (a,b,c,d)
|
||||
#define T_WTMgrPacketHookExW HWTHOOK
|
||||
#define K_WTMgrPacketHookExW API
|
||||
#define P_WTMgrPacketHookExW (HMGR a, int b, LPWSTR c, LPSTR d)
|
||||
#define A_WTMgrPacketHookExW (a,b,c,d)
|
||||
#define T_WTMgrPacketUnhook BOOL
|
||||
#define K_WTMgrPacketUnhook API
|
||||
#define P_WTMgrPacketUnhook (HWTHOOK a)
|
||||
#define A_WTMgrPacketUnhook (a)
|
||||
#define T_WTMgrPacketHookNext LRESULT
|
||||
#define K_WTMgrPacketHookNext API
|
||||
#define P_WTMgrPacketHookNext (HWTHOOK a, int b, WPARAM c, LPARAM d)
|
||||
#define A_WTMgrPacketHookNext (a,b,c,d)
|
||||
#define T_WTMgrExt BOOL
|
||||
#define K_WTMgrExt API
|
||||
#define P_WTMgrExt (HMGR a, UINT b, LPVOID c)
|
||||
#define A_WTMgrExt (a,b,c)
|
||||
#define T_WTMgrCsrEnable BOOL
|
||||
#define K_WTMgrCsrEnable API
|
||||
#define P_WTMgrCsrEnable (HMGR a, UINT b, BOOL c)
|
||||
#define A_WTMgrCsrEnable (a,b,c)
|
||||
#define T_WTMgrCsrButtonMap BOOL
|
||||
#define K_WTMgrCsrButtonMap API
|
||||
#define P_WTMgrCsrButtonMap (HMGR a, UINT b, LPBYTE c, LPBYTE d)
|
||||
#define A_WTMgrCsrButtonMap (a,b,c,d)
|
||||
#define T_WTMgrCsrPressureBtnMarks BOOL
|
||||
#define K_WTMgrCsrPressureBtnMarks API
|
||||
#define P_WTMgrCsrPressureBtnMarks (HMGR a, UINT b, DWORD c, DWORD d)
|
||||
#define A_WTMgrCsrPressureBtnMarks (a,b,c,d)
|
||||
#define T_WTMgrCsrPressureBtnMarksEx BOOL
|
||||
#define K_WTMgrCsrPressureBtnMarksEx API
|
||||
#define P_WTMgrCsrPressureBtnMarksEx (HMGR a, UINT b, UINT FAR * c, UINT FAR * d)
|
||||
#define A_WTMgrCsrPressureBtnMarksEx (a,b,c,d)
|
||||
#define T_WTMgrCsrPressureResponse BOOL
|
||||
#define K_WTMgrCsrPressureResponse API
|
||||
#define P_WTMgrCsrPressureResponse (HMGR a, UINT b, UINT FAR * c, UINT FAR * d)
|
||||
#define A_WTMgrCsrPressureResponse (a,b,c,d)
|
||||
#define T_WTMgrCsrExt BOOL
|
||||
#define K_WTMgrCsrExt API
|
||||
#define P_WTMgrCsrExt (HMGR a, UINT b, UINT c, LPVOID d)
|
||||
#define A_WTMgrCsrExt (a,b,c,d)
|
||||
|
4
public/wintab/wntab32x/prsbtnma.c
Normal file
4
public/wintab/wntab32x/prsbtnma.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrCsrPressureBtnMarks, Wintab, -, 183)
|
4
public/wintab/wntab32x/prsbtnmx.c
Normal file
4
public/wintab/wntab32x/prsbtnmx.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrCsrPressureBtnMarksEx, Wintab, -, 201)
|
4
public/wintab/wntab32x/prsrespo.c
Normal file
4
public/wintab/wntab32x/prsrespo.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTMgrCsrPressureResponse, Wintab, -, 184)
|
4
public/wintab/wntab32x/qpackets.c
Normal file
4
public/wintab/wntab32x/qpackets.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTQueuePacketsEx, Wintab, -, 200)
|
4
public/wintab/wntab32x/qsizeget.c
Normal file
4
public/wintab/wntab32x/qsizeget.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTQueueSizeGet, Wintab, -, 84)
|
4
public/wintab/wntab32x/qsizeset.c
Normal file
4
public/wintab/wntab32x/qsizeset.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTQueueSizeSet, Wintab, -, 85)
|
4
public/wintab/wntab32x/restore.c
Normal file
4
public/wintab/wntab32x/restore.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTRestore, Wintab, -, 66)
|
4
public/wintab/wntab32x/save.c
Normal file
4
public/wintab/wntab32x/save.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTSave, Wintab, -, 65)
|
4
public/wintab/wntab32x/seta.c
Normal file
4
public/wintab/wntab32x/seta.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTSetA, Wintab, -, 62)
|
4
public/wintab/wntab32x/setw.c
Normal file
4
public/wintab/wntab32x/setw.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <proc.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibproc.h>
|
||||
PROC_TEMPLATE( WTSetW, Wintab, -, 1062)
|
4
public/wintab/wntab32x/wintab.c
Normal file
4
public/wintab/wntab32x/wintab.c
Normal file
@ -0,0 +1,4 @@
|
||||
#include <windows.h>
|
||||
#include <xlib.h>
|
||||
#include <xlibmod.h>
|
||||
MODULE_TEMPLATE( Wintab, Wintab32.dll )
|
7
public/wintab/wntab32x/xlib.h
Normal file
7
public/wintab/wntab32x/xlib.h
Normal file
@ -0,0 +1,7 @@
|
||||
typedef struct _PROCDATA {
|
||||
LPCSTR name;
|
||||
int ord;
|
||||
FARPROC fp;
|
||||
struct _PROCDATA *next;
|
||||
} PROCDATA;
|
||||
|
51
public/wintab/wntab32x/xlibmod.h
Normal file
51
public/wintab/wntab32x/xlibmod.h
Normal file
@ -0,0 +1,51 @@
|
||||
#define MODULE_TEMPLATE2(mod, fname) \
|
||||
\
|
||||
\
|
||||
static HMODULE hMod = NULL; \
|
||||
static PROCDATA *pList = NULL; \
|
||||
\
|
||||
static TCHAR szMod[] = TEXT( #fname ); \
|
||||
\
|
||||
void __ ## mod ## dynlink(PROCDATA *p) \
|
||||
{ \
|
||||
PROCDATA *head; \
|
||||
\
|
||||
if (!hMod) { \
|
||||
UINT errmode = SetErrorMode(SEM_NOOPENFILEERRORBOX \
|
||||
| SEM_FAILCRITICALERRORS); \
|
||||
hMod = LoadLibrary(szMod); \
|
||||
SetErrorMode(errmode); \
|
||||
} \
|
||||
if (hMod) { \
|
||||
if (p->ord) \
|
||||
p->fp = GetProcAddress(hMod, (LPCSTR)(p->ord)); \
|
||||
else \
|
||||
p->fp = GetProcAddress(hMod, p->name); \
|
||||
} \
|
||||
if (p->fp) { \
|
||||
head = pList; \
|
||||
pList = p; \
|
||||
p->next = head; \
|
||||
} \
|
||||
} \
|
||||
\
|
||||
void __ ## mod ## unlink(void) \
|
||||
{ \
|
||||
if (hMod) { \
|
||||
FreeLibrary(hMod); \
|
||||
hMod = NULL; \
|
||||
\
|
||||
while(pList) { \
|
||||
PROCDATA *head; \
|
||||
pList->fp = NULL; \
|
||||
head = pList->next; \
|
||||
pList->next = NULL; \
|
||||
pList = head; \
|
||||
} \
|
||||
} \
|
||||
} \
|
||||
\
|
||||
void _Unlink ## mod(void) {__ ## mod ## unlink();}
|
||||
|
||||
#define MODULE_TEMPLATE(mod, fname) MODULE_TEMPLATE2(mod, fname)
|
||||
|
9
public/wintab/wntab32x/xlibmodc.h
Normal file
9
public/wintab/wntab32x/xlibmodc.h
Normal file
@ -0,0 +1,9 @@
|
||||
#define MODULE_TEMPLATEC2(mod) \
|
||||
\
|
||||
\
|
||||
extern void __ ## mod ## unlink(void); \
|
||||
void __cdecl _Unlink ## mod(void) {__ ## mod ## unlink();}
|
||||
|
||||
#define MODULE_TEMPLATEC(mod) MODULE_TEMPLATEC2(mod)
|
||||
|
||||
|
28
public/wintab/wntab32x/xlibproc.h
Normal file
28
public/wintab/wntab32x/xlibproc.h
Normal file
@ -0,0 +1,28 @@
|
||||
#define PROC_TEMPLATE2(proc, mod, internal, ordinal) \
|
||||
\
|
||||
\
|
||||
\
|
||||
extern void __ ## mod ## dynlink(PROCDATA *); \
|
||||
\
|
||||
static PROCDATA p = { #proc, \
|
||||
ordinal, \
|
||||
NULL, \
|
||||
NULL \
|
||||
}; \
|
||||
\
|
||||
typedef T_ ## proc (K_ ## proc * FT_ ## proc) P_ ## proc ; \
|
||||
\
|
||||
T_ ## proc K_ ## proc proc P_ ## proc \
|
||||
{ \
|
||||
if (p.fp==NULL) \
|
||||
__ ## mod ## dynlink(&p); \
|
||||
if (p.fp) \
|
||||
return ((FT_ ## proc)p.fp) A_ ## proc; \
|
||||
else \
|
||||
return (T_ ## proc)0; \
|
||||
}
|
||||
|
||||
#define PROC_TEMPLATE(proc, mod, internal, ordinal) \
|
||||
PROC_TEMPLATE2(proc, mod, internal, ordinal)
|
||||
|
||||
|
Reference in New Issue
Block a user