#define INCL_WIN #define INCL_DOS #define INCL_VIO #define INCL_SUB #define INCL_DOSERRORS #include #include #include #include "vio32private.h" #include "vio32SharedData.h" #include "vio32Errors.h" void kbd32SharedData::Init(){ nOfWindows = 0; for (int i=0;i= maxPos) pos[ix] = &events[ix*MAX_PRIMARY_Q_LEN]; return pos[ix]; } return NULL; } APIRET kbd32SharedData::SetMode(ULONG mode,ULONG pid){ for (int ix=0;(ix= nOfWindows) return VIO32_NOTINSTALLED; this->mode[ix] = mode; return 0; } APIRET kbd32SharedData::GetMode(ULONG &mode,ULONG pid){ for (int ix=0;(ix= nOfWindows) return VIO32_NOTINSTALLED; mode = this->mode[ix]; return 0; } APIRET kbd32SharedData::InstallApplication(ULONG pid,BOOL windowed){ HWND hwndClient = -1; HWND hwndFrame = -1; if (windowed){ hwndClient = VIOWindowClient(); hwndFrame = VIOWindowFrame(); if (hwndClient == 0) return VIO32_NOTWINDOWED; if (hwndFrame == 0) return VIO32_NOTWINDOWED; } APIRET ret = FALSE; for (int ix=0;(ix