home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
msysjour
/
vol07
/
08
/
sendkey
/
sendkeys.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-01
|
1KB
|
36 lines
/****************************************************************************
Module name : SendKeys.H
Description : Include File for SendKeys utility functions.
*****************************************************************************/
#ifndef _INC_SENDKEYS
#define _INC_SENDKEYS /* #defined if SendKeys.h has been included */
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */
#define ARRAY_LEN(Array) (sizeof(Array) / sizeof(Array[0]))
#define INRANGE(low, val, high) ((low <= val) && (val <= high))
#define TOUPPER(Char) ((BYTE) (DWORD) AnsiUpper((LPSTR) MAKEINTRESOURCE(Char)))
// ************************ Function Prototypes ******************************
typedef enum {
SK_NOERROR, SK_MISSINGCLOSEBRACE, SK_INVALIDKEY,
SK_MISSINGCLOSEPAREN, SK_INVALIDCOUNT, SK_STRINGTOOLONG,
SK_CANTINSTALLHOOK
} SENDKEYSERR;
SENDKEYSERR WINAPI SendKeys (LPCSTR szKeys);
SENDKEYSERR WINAPI VMSendKeys (LPCSTR szKeys);
void WINAPI PostVirtualKeyEvent (BYTE bVirtKey, BOOL fUp);
#ifdef __cplusplus
} /* End of extern "C" { */
#endif /* __cplusplus */
#endif /* _INC_SENDKEYS */