本文整理汇总了C#中IPlugin.GetPluginId方法的典型用法代码示例。如果您正苦于以下问题:C# IPlugin.GetPluginId方法的具体用法?C# IPlugin.GetPluginId怎么用?C# IPlugin.GetPluginId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPlugin
的用法示例。
在下文中一共展示了IPlugin.GetPluginId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OpenSetting
public static Setting OpenSetting(IPlugin plugin)
{
uint product;
uint id;
plugin.GetPluginId(out product, out id);
return new Setting(Plugin.GetSystemPath(Folder.MetaseqIni), string.Format("Plugin.{0:X8}:{1:X8}", product, id));
}
示例2: SendUserMessage
public static unsafe int SendUserMessage(IPlugin plugin, Document doc, uint target_product, uint target_id, string description, IntPtr message)
{
var info = new SendMessageInfo();
var result = 0;
fixed (byte* documentString = GetASCII("document"),
targetProductString = GetASCII("target_product"),
targetIdString = GetASCII("target_id"),
descriptionString = GetASCII("description"),
messageString = GetASCII("message"),
resultString = GetASCII("result"),
descriptionPtr = Get932(description))
{
var array = new void*[]
{
documentString,
(void*)(IntPtr)doc,
targetProductString,
&target_product,
targetIdString,
&target_id,
descriptionString,
descriptionPtr,
messageString,
(void*)message,
resultString,
&result,
null,
};
plugin.GetPluginId(out info.Product, out info.ID);
fixed (void** arrayPtr = array)
{
info.Option = (IntPtr)arrayPtr;
NativeMethods.MQ_SendMessage((int)Message.UserMessage, ref info);
}
}
return result;
}