[
板情報
|
カテゴリランキング
]
したらばTOP
■掲示板に戻る■
全部
1-100
最新50
|
1-
101-
201-
301-
401-
501-
601-
701-
801-
901-
1001-
この機能を使うにはJavaScriptを有効にしてください
|
焼肉避難所2
969
:
(・肉・)
:2008/10/14(火) 09:05:48 ID:FrsXHCZU0
(・肉・) さんへ
C#にて
namespace _FFFUNC_
{
public static class FFFUNC
{
#region General
[DllImport("FFXiFunc.dll", EntryPoint = "CreateFnTextCommand")]
public static extern int CreateFnTextCommand();
[DllImport("FFXiFunc.dll", EntryPoint = "FnTextCommandEnter")]
public static extern bool FnTextCommandEnter(int Command, int Pid);
[DllImport("FFXiFunc.dll", EntryPoint = "FnTextCommandUpdate")]
public static extern bool FnTextCommandUpdate(int Command);
[DllImport("FFXiFunc.dll", EntryPoint = "FnTextCommandPattern")]
public static extern void FnTextCommandPattern(int Command, Byte[] pattern);
[DllImport("FFXiFunc.dll", EntryPoint = "FnTextCommandSearch")]
public static extern bool FnTextCommandSearch(int Command, int size);
[DllImport("FFXiFunc.dll", EntryPoint = "FnTextCommand")]
public static extern void FnTextCommand(int Command, Byte[] comStr);
[DllImport("FFXiFunc.dll", EntryPoint = "FnTextCommandLeave")]
public static extern void FnTextCommandLeave(int Command);
[DllImport("FFXiFunc.dll", EntryPoint = "FnTextCommandDestruct")]
public static extern void FnTextCommandDestruct(int Command);
#endregion
}
}
こんな定義して、
int Command;
Command = FFFUNC.CreateFnTextCommand();
MessageBox.Show(Command.ToString());
if (Command != 0)
{
//対象プロセスに作業領域を作成
if (FFFUNC.FnTextCommandEnter(Command,pPol.Id))
{
MessageBox.Show("対象プロセスに作業領域を作成");
//FFXiMain.dllのアドレスを取得
if (FFFUNC.FnTextCommandUpdate(Command))
{
MessageBox.Show("FFXiMain.dllのアドレスを取得");
//検索に使用するパターンを設定
//具体的な値はReadme.txt参照
//FFXiFuncのデフォルト値を使うなら不要
FFFUNC.FnTextCommandPattern(Command, Encoding.ASCII.GetBytes(""));
//必要な関数を検索
if (FFFUNC.FnTextCommandSearch(Command, 0x800000))
{
FFFUNC.FnTextCommand(Command, Encoding.ASCII.GetBytes("/echo test"));
}
}
//対象プロセスから作業領域を削除
FFFUNC.FnTextCommandLeave(Command);
}
//インターフェイスを破棄
FFFUNC.FnTextCommandDestruct(Command);
}
}
こんな風に書いてみたが、反応ないです(´・ω・`)
pidはとれて、名前とかHPとかは取得できています。
新着レスの表示
名前:
E-mail
(省略可)
:
※書き込む際の注意事項は
こちら
※画像アップローダーは
こちら
(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)
スマートフォン版
掲示板管理者へ連絡
無料レンタル掲示板