Windows 搜索中 IStemmer 接口的 C# 定义
任何人都可以帮助我将 COM IStemmer 接口定义转换为 C# 或建议工具来执行此操作吗?我在 Google 和 pinvoke.net 上进行了搜索,但无法找到 C# 签名。
接口定义如下:
interface IStemmer {
HRESULT GetLicenseToUse(
[out] WCHAR const **ppwcsLicense
);
HRESULT Init(
[in] ULONG ulMaxTokenSize,
[out] BOOL pfLicense
);
HRESULT GenerateWordForms(
[in] WCHAR const *pwcInBuf,
[in] ULONG cwc,
[in] IWordFormSink *pWordFormSink
);
}
interface IWordFormSink {
HRESULT PutWord(
[in] const WCHAR *pwcInBuf ,
[in] ULONG cwc
);
HRESULT PutAltWord(
[in] const WCHAR *pwcInBuf ,
[in] ULONG cwc
);
}
Can anyone help me with translating COM IStemmer interface definition to C# or suggest tool to do that? I searched in Google and at pinvoke.net and was unable to find C# signatures.
The interface definition is the following:
interface IStemmer {
HRESULT GetLicenseToUse(
[out] WCHAR const **ppwcsLicense
);
HRESULT Init(
[in] ULONG ulMaxTokenSize,
[out] BOOL pfLicense
);
HRESULT GenerateWordForms(
[in] WCHAR const *pwcInBuf,
[in] ULONG cwc,
[in] IWordFormSink *pWordFormSink
);
}
interface IWordFormSink {
HRESULT PutWord(
[in] const WCHAR *pwcInBuf ,
[in] ULONG cwc
);
HRESULT PutAltWord(
[in] const WCHAR *pwcInBuf ,
[in] ULONG cwc
);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下界面
you can use the following interface