Source code of Windows XP (NT5)
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.

54 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: WBreak.idl
  7. //
  8. // Contents: IWordBreaker interface definition
  9. //
  10. // History: 12-Aug-93 AmyA Created
  11. // 08-Apr-94 KyleP Sync to spec
  12. //
  13. //--------------------------------------------------------------------------
  14. #include "idlmulti.h"
  15. cpp_quote("#ifndef _tagTEXT_SOURCE_DEFINED")
  16. struct tagTEXT_SOURCE;
  17. typedef SCODE ( __stdcall * PFNFILLTEXTBUFFER) (struct tagTEXT_SOURCE * pTextSource);
  18. typedef struct tagTEXT_SOURCE
  19. {
  20. PFNFILLTEXTBUFFER pfnFillTextBuffer;
  21. WCHAR const * awcBuffer;
  22. ULONG iEnd;
  23. ULONG iCur;
  24. } TEXT_SOURCE;
  25. cpp_quote("#define _tagTEXT_SOURCE_DEFINED")
  26. cpp_quote("#define _TEXT_SOURCE_DEFINED")
  27. cpp_quote("#endif")
  28. LOCAL_INTERFACE(D53552C8-77E3-101A-B552-08002B33B0E6)
  29. interface IWordBreaker: IUnknown
  30. {
  31. SCODE Init( [in] BOOL fQuery,
  32. [in] ULONG ulMaxTokenSize,
  33. [out] BOOL * pfLicense );
  34. SCODE BreakText( [in] TEXT_SOURCE * pTextSource,
  35. [in] IWordSink * pWordSink,
  36. [in] IPhraseSink * pPhraseSink );
  37. SCODE ComposePhrase( [in, size_is(cwcNoun)] WCHAR const * pwcNoun,
  38. [in] ULONG cwcNoun,
  39. [in, size_is(cwcModifier)] WCHAR const * pwcModifier,
  40. [in] ULONG cwcModifier,
  41. [in] ULONG ulAttachmentType,
  42. [out, size_is(*pcwcPhrase)] WCHAR * pwcPhrase,
  43. [in, out] ULONG * pcwcPhrase );
  44. SCODE GetLicenseToUse( [out, string] WCHAR const ** ppwcsLicense );
  45. }