例としてマウスカーソル位置の色を0xFFRRGGBB形式で返すコードを作成します。 /* getcolor.cpp g++ -shared -o getcolor.dll getcolor.cpp -luser32 -lgdi32 */ #include <windows.h> // マウスカーソル位置の色を返す(0xFFRRGGBB) extern "C" __declspec(dllexport) DWORD __stdcall GetCursor...
Register as a new user and use Qiita more conveniently You get articles that match your needs You can efficiently read back useful information You can use dark theme What you can do with signing up Sign upLogin Comments No comments Let's comment your feelings that are more than good ...
よって 0b00110101 = 0x35 オフセットが -11 なので f5 ff ff ff となることから確認できます。 そして、 write システムコールの番号、出力先ファイル記述子 (第一引数)、出力バイト数(第三引数) をそれぞれ指定し、syscall命令を呼びます。 アセンブリで表現すると以下のような形で...