Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / How to get starting application

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. How to get starting application
#5742
Posted by: kjactive 2005-01-26 03:37:28
I have a problem - is there a way to get the starting application name and path into a macro.dll and how, as an example loaded from your old or new editor...

K?re
Message2.
#5744
Posted by: Jeff Glatt 2005-01-26 08:12:22 Last edited by: Jeff Glatt 2007-06-26 15:00:06 (Total edited 2 times)
The easiest way to get the name of the application that launched your script is via the Windows' GetModuleFileName() function like so:
FUNCDEF("GetModuleFileName", "32u, 32u, str[260] stor, 32u", "kernel32")

getmodulefilename(0, filename, 260)
SAY filename
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,420.00 ·
 
 
¥950.00 ·
 
 
¥288.00 ·
 
 
¥738.00 ·
 
 
¥397.00 ·
 
 
¥750.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0