Intermec ck1 Reference Guide

Page of 390
Chapter 5 — Nano-X APIs 
284 
CK1 SDK Programmer’s Reference Manual 
void        GrPrepareSelect                 (int *maxfd, 
                                             void *rfdset); 
void        GrServiceSelect                 (void *rfdset, 
                                             GR_FNCALLBACKEVENT fncb); 
void        GrBell                          (void); 
void        GrSetScreenSaverTimeout         (GR_TIMEOUT timeout); 
void        GrInjectNanowmEvent             (GR_WINDOW_ID wid, 
                                             int type, 
                                             int status); 
void        GrInjectKeypadEvent             (GR_WINDOW_ID wid, 
                                             int padbuttons, 
                                             int changes); 
void        GrSelectPadKeys                 (GR_WINDOW_ID wid, 
                                             int padbuttons); 
void            GrSetTriggerEnabled           (GR_BOOL enabled); 
GR_KEYMAPPING GrGetCurrentKeyMapping       (void); 
void            GrSetKeyMapping                (GR_KEYMAPPING new_mapping); 
void            GrSetKeyboardMappingFile     (char *sMappingFile); 
void            GrSetKeyboardMappingDefault (void); 
void            GrSetCodepage                  (GR_CODEPAGE codepage); 
GR_CODEPAGE    GrGetCurrentCodepage         (void); 
char*           GrTranslateCodepageToName   (GR_CODEPAGE); 
GrReqShmCmds () 
 
Purpose:  Request a shared memory area of the specified size to use for transferring 
command arguments. This request is faster but less portable than the 
standard BSD sockets method of communication (and of course only 
works if the client and server are on the same machine). Apart from the 
initial allocation of the area using this call, the use of shared memory is 
completely transparent. Additionally, if the allocation fails, the CK1 
silently and automatically falls back on socket communication. It is safe to 
call this function even if shared memory support is not compiled; it simply 
does nothing. 
 
Syntax: 
void        GrReqShmCmds                  (long shmsize);
 
 
Parameter:  shmsize 
Size of the shared memory area to allocate  
GrInjectKeyboardEvent () 
 
Purpose:  Send a keyboard event to the specified window or to the window with the 
current keyboard focus if 0 is used as the identification. The other 
arguments correspond directly to the fields of the same names in the 
keyboard event structure. 
 
Syntax: 
void        GrInjectKeyboardEvent      (GR_WINDOW_ID wid,
 
                                  GR_UNICODE uch
                                  GR_CHAR ch
                                  int modif
                                  int special
                                  unsigned char content); 
 
Parameters:  wid 
Identification of the window to send the event to or 0