-
2.19. Check if Scan2Key.exe program is running or not
Function Description:
Test whether Scan2Key application is running at background. (It doesn't mean Scan2Key is
routing scanner input to keyboard, please call S2K_IsEnabled() to check if routing function is
enable or not)
Function call:
HWND S2K_IsLoaded();
Return:
NULL: Scan2Key is not running
Non-NULL: indicates scan2key is running. It actually returns window handle for scan2key, but
it is for internal use – send messages.
2.20. Test if Scan2Key is enabled
Function Description:
Test whether Scan2Key is enabled. Scan2Key routes scanning input from scanner to keypad
buffer, so that barcode data can be input as like from keystrokes on keypad.
Function call:
BOOL S2K_IsEnabled();
Return:
TRUE = enabled.
FALSE = disable
2.21. Load/Unload Scan2Key.exe
Function Description:
Load or unload Scan2Key
Function call:
BOOL S2K_Load(BOOL load, DWORD timeout);
Parameter: (input)
load: BOOL : TRUE = load Scan2Key
FALSE = unload Scan2Key
timeout: DWORD : when unload Scan2Key, it will wait until Scan2Key has been
removed from memory or timeout specified by this parameter.
Return:
TRUE = successfully loaded.
2.22. Enable/Disable Scan2Key
Function Description:
Enable or disable Scan2Key to put scanned data to standard keyboard input buffer. Scan2Key is
enabled by default.
Function call:
BOOL S2K_Enable(BOOL enable, DWORD timeout);
Parameter: (input)
enable: BOOL : TRUE = Enable scanned data to keyboard buffer
FALSE = Disable scanned data to keyboard
timeout: DWORD : when enable or disable Scan2Key, it will wait until Scan2Key has
been removed from memory or timeout specified by this parameter.
Return:
TRUE = if successfully enabled Scan2Key, otherwise FALSE