掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
AccExplorerのファインダーツール (ID:102589)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
# 一応、全部書いておきます。 > 起動時に Win32 関数の SetProcessDPIAware を呼び出します。 http://msdn.microsoft.com/ja-jp/library/aa970067(VS.80).aspx Detoursを用いるのはアプリケーションの起動時にSetProcessDPIAwareが呼び出される必要があるためです。 1) AccExpHook.js実行でAccExpHook.dllを作成。 2) withDll_AccExpHook.js実行で確認。 UIPIに付いては下記を参照。 http://ebi.dyndns.biz/diary/20080813.html 環境 Windows 7 SP1β/IE9β/VC++2010/Excel2010 AccExpHook.bat call "C:\Program Files\Microsoft Visual Studio 10\VC\Vcvarsall.bat" x86 cl.exe AccExpHook.cpp /LD /MT User32.lib .\lib\detours.lib .\lib\detoured.lib AccExpHook.cpp #include <windows.h> #include ".\include\detours.h" __declspec(dllexport)void hoge(){return;} BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved) { if (dwReason == DLL_PROCESS_ATTACH) { DetourTransactionBegin(); DetourUpdateThread(GetCurrentThread()); SetProcessDPIAware(); DetourTransactionCommit(); } else if (dwReason == DLL_PROCESS_DETACH) { DetourTransactionBegin(); DetourUpdateThread(GetCurrentThread()); DetourTransactionCommit(); } return TRUE; } AccExpHook.js var FolderPath = "C:\\Temp\\Detours\\"; var FilePath1 = "AccExpHook.bat"; var FilePath2 = "AccExpHook.txt"; var wsh = new ActiveXObject("WScript.Shell"); wsh.CurrentDirectory = FolderPath; wsh.Run("cmd.exe /C " + FilePath1 + " > " + FilePath2,0,true); WScript.Echo("finished!"); withDll_AccExpHook.js var FolderPath = "C:\\Temp\\Detours\\"; var CmdLine = ".\\bin\\withdll.exe /d:AccExpHook.dll /p:.\\bin\\detoured.dll AccExplorer32.exe"; var wsh = new ActiveXObject("WScript.Shell"); wsh.CurrentDirectory = FolderPath; wsh.Run(CmdLine,1,false); > AccessibleObjectFromPointをフックして、 > 第一引数(ptScreen)をGetPhysicalCursorPosで得た座標値に置き換えるかで対応したいと思います。 こちらは上手くいきませんでした。 # 眠い。orz
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.