Regword.pas
上传用户:wen198501
上传日期:2013-04-01
资源大小:335k
文件大小:2k
源码类别:

输入法编程

开发平台:

Delphi

  1.  {******************************************************}
  2.  {                                                      }
  3.  {    Copyright (c) 1990-1999 Microsoft Corporation     }
  4.  {                                                      }
  5.  {    Module Name:  Regword.c ->>  Regword.pas          }
  6.  {                                                      }
  7.  {    Translator:  Liu_mazi@126.com, 2005-11-15         }
  8.  {                                                      }
  9.  {******************************************************}
  10. unit Regword;
  11. {$I Define.Inc}
  12. interface
  13. uses Windows, ImmDev;
  14.   // Ime回调 ..
  15. function ImeRegisterWord(lpszReading: PChar; dwStyle: DWord; lpszString: PChar): Bool; stdcall;
  16. function ImeUnregisterWord(lpszReading: PChar; dwStyle: DWord; lpszString: PChar): Bool; stdcall;
  17. function ImeGetRegisterWordStyle(nItem: uInt; lpStyleBuf: PStyleBuf): uInt; stdcall;
  18. function ImeEnumRegisterWord(lpfnRegisterWordEnumProc: RegisterWordEnumProc;
  19.   lpszReading: PChar; dwStyle: DWord; lpszString: PChar; lpData: Pointer): uInt; stdcall;
  20. implementation
  21. uses ImeDefs, LogText;
  22. function ImeRegisterWord(lpszReading: PChar; dwStyle: DWord; lpszString: PChar): Bool; stdcall;
  23. begin
  24.   Result := False;
  25. end;
  26. function ImeUnregisterWord(lpszReading: PChar; dwStyle: DWord; lpszString: PChar): Bool; stdcall;
  27. begin
  28.   Result := False;
  29. end;
  30. function ImeGetRegisterWordStyle(nItem: uInt; lpStyleBuf: PStyleBuf): uInt; stdcall;
  31. begin
  32.   Result := 0;
  33. end;
  34. function ImeEnumRegisterWord(lpfnRegisterWordEnumProc: RegisterWordEnumProc;
  35.   lpszReading: PChar; dwStyle: DWord; lpszString: PChar; lpData: Pointer): uInt; stdcall;
  36. begin
  37.   Result := 0;
  38. end;
  39. end.