Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.0 KiB

  1. /* INIT.C */
  2. //#define WINVER 0x0300
  3. #include "windows.h"
  4. //#include "winstric.h" /* added for win 3.1 compatibility 1/92 */
  5. #include "vars.h"
  6. #include "gide.h"
  7. #include "initgide.h"
  8. #include "dialogs.h"
  9. void serialKeysStartUpInit(void)
  10. {
  11. mouseX = mouseY = 0;
  12. mouData.NumButtons = 2;
  13. mouData.Delta_Y = 0;
  14. mouData.Delta_X = 0;
  15. mouData.Status = 0;
  16. requestButton1, requestButton2, requestButton3 = FALSE;
  17. button1Status, button2Status, button3Status = FALSE;
  18. passAll = fatalErrorFlag = stdErrorFlag = waitForClear = beginOK = FALSE;
  19. nullCount = blockCount = lastCode = 0;
  20. keyLockList.len = keyHoldList.len = tempList.len = 0;
  21. cAliasString[0] = '\0';
  22. stackPointer = 0;
  23. spos = rpos = 0;
  24. serialVector = charHandler;
  25. codeVector = processCharMode;
  26. commandVector = processCommand;
  27. aliasPtr = nullTable;
  28. return; /* beep and set baudrate */
  29. }
  30. void initClear(void)
  31. {
  32. passAll = fatalErrorFlag = stdErrorFlag = waitForClear = beginOK = FALSE;
  33. nullCount = blockCount = lastCode = 0;
  34. tempList.len = 0;
  35. cAliasString[0] = '\0';
  36. stackPointer = 0;
  37. spos = rpos = 0;
  38. serialVector = charHandler;
  39. codeVector = processCharMode;
  40. commandVector = processCommand;
  41. aliasPtr = nullTable;
  42. mouData.NumButtons = 2;
  43. mouData.Delta_Y = 0;
  44. mouData.Delta_X = 0;
  45. mouData.Status = 0;
  46. return;
  47. }
  48. VOID FAR PASCAL serialKeysStartupInitDLL(void)
  49. {
  50. mouseX = mouseY = 0;
  51. mouData.NumButtons = 2;
  52. mouData.Delta_Y = 0;
  53. mouData.Delta_X = 0;
  54. mouData.Status = 0;
  55. requestButton1, requestButton2, requestButton3 = FALSE;
  56. button1Status, button2Status, button3Status = FALSE;
  57. passAll = fatalErrorFlag = stdErrorFlag = waitForClear = beginOK = FALSE;
  58. nullCount = blockCount = lastCode = 0;
  59. keyLockList.len = keyHoldList.len = tempList.len = 0;
  60. cAliasString[0] = '\0';
  61. stackPointer = 0;
  62. spos = rpos = 0;
  63. serialVector = charHandler;
  64. codeVector = processCharMode;
  65. commandVector = processCommand;
  66. aliasPtr = nullTable;
  67. return; /* beep and set baudrate */
  68. }