HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2017
0423
Yuuki実行ファイルのパスを取得2解決


Yuuki

リンク

2017/4/23(Sun) 23:15:28|NO.79265

実行ファイルのパスを取得するモジュールを作ってみました。

#module #uselib "KERNEL32.DLL" #func GetModuleFileName "GetModuleFileNameA" int, var, int #defcfunc exepath sdim buf,256 GetModuleFileName ,buf,256 return buf #global



この記事に返信する


スペース

リンク

2017/4/23(Sun) 23:30:19|NO.79267

windowsのファイルパスは最大259Byteですよ。



Yuuki

リンク

2017/4/25(Tue) 08:38:59|NO.79285

修正しました。

#module #uselib "KERNEL32.DLL" #func GetModuleFileName "GetModuleFileNameA" int, var, int #defcfunc exepath sdim buf,259 GetModuleFileName ,buf,259 return buf #global



ONION software Copyright 1997-2023(c) All rights reserved.