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.

61 lines
1.8 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: kor.c
  3. *
  4. * Copyright (c) 1985 - 1999, Microsoft Corporation
  5. *
  6. * FEMGRATE, KOR speciific functions
  7. *
  8. \***************************************************************************/
  9. #include "femgrate.h"
  10. int WINAPI WinMainKOR(
  11. int nCmd,
  12. HINF hMigrateInf)
  13. {
  14. const UINT nLocale = LOCALE_KOR;
  15. switch(nCmd) {
  16. case FUNC_PatchFEUIFont:
  17. if (FixSchemeProblem(FALSE,hMigrateInf)) {
  18. DebugMsg((DM_VERBOSE,TEXT("FixSchemeProblem OK ! \n")));
  19. }
  20. else {
  21. DebugMsg((DM_VERBOSE,TEXT("FixSchemeProblem Fail ! \n")));
  22. }
  23. break;
  24. case FUNC_PatchInSetup:
  25. if (FixTimeZone(nLocale)) {
  26. DebugMsg((DM_VERBOSE,TEXT("FixTimeZone OK ! \n")));
  27. }
  28. else {
  29. DebugMsg((DM_VERBOSE,TEXT("FixTimeZone failed ! \n")));
  30. }
  31. break;
  32. case FUNC_PatchPreload:
  33. if (PatchPreloadKeyboard(TRUE)) {
  34. DebugMsg((DM_VERBOSE,TEXT("PatchPreloadKeyboard OK ! \n")));
  35. } else {
  36. DebugMsg((DM_VERBOSE,TEXT("PatchPreloadKeyboard Failed ! \n")));
  37. }
  38. break;
  39. case FUNC_PatchInLogon:
  40. if (RenameRegValueName(hMigrateInf,TRUE)) {
  41. DebugMsg((DM_VERBOSE,TEXT("RenameRegValueName OK ! \n")));
  42. } else {
  43. DebugMsg((DM_VERBOSE,TEXT("RenameRegValueName failed ! \n")));
  44. }
  45. break;
  46. case FUNC_PatchTest:
  47. break;
  48. default:
  49. DebugMsg((DM_VERBOSE,TEXT("No such function\n")));
  50. }
  51. return (0);
  52. }