无忧启动论坛

标题: Help, I'm having troubles calling a dll from pecmd [打印本页]

作者: dcstechteam    时间: 2024-6-7 22:12
标题: Help, I'm having troubles calling a dll from pecmd
本帖最后由 dcstechteam 于 2024-6-7 22:15 编辑

When calling: CALL  $KEYMGR.DLL, KRShowKeyMgr
it does not load the key manager window.  I have tried numerous variations and combinations for calling, even tried --c to load as C library but nothing seems to work.  It's a very simple wcs and just tries to launch that dll.  Any help would be greatly appreciated.  Also, I am english native, so I appologize if this doesn't translate well.

作者: Zap    时间: 2024-6-7 22:54
我英文很差 除非你说中文
作者: 红毛樱木    时间: 2024-6-7 22:59
Remarks
This function has no associated import library or header file; you must call it using the LoadLibrary and GetProcAddress functions.

--------------------------------


作者: 邪恶海盗    时间: 2024-6-7 23:01
I think it's not pecmd's problem, maybe it's the os's bug...

you'd better to show us your os (and version) and how did you use pecmd
作者: dcstechteam    时间: 2024-6-7 23:13
红毛樱木 发表于 2024-6-7 22:59
Remarks
This function has no associated import library or header file; you must call it using the L ...

Thank you for the help.  I am trying to learn the details of pecmd.  Could you please help me construct the call line using the LoadLibrary and GetProcAddress?  Here's what I have tried based on your suggestions, but it doesn't look complete to me and isn't working:
CALL  $--ret:keymgr, -LoadLibrary, <KEYMGR.DLL, KRShowKeyMgr

I think if I can get a good example of how to use this call I should be able to learn and recreate after that.


作者: 邪恶海盗    时间: 2024-6-7 23:13
And which country are you in, can you make a test to create a free subdomain hosting in freewha.com?
作者: 红毛樱木    时间: 2024-6-7 23:52
  1. CALL $--ret:&hKeymgr ,-LoadLibrary,Keymgr.dll
  2. CALL $--ret:&hKRShowKeyMgr ,-GetProcAddress,*%&hKeymgr%,KRShowKeyMgr
  3. CALL $--qd --ret:&KRShowKeyMgrRet #,%&hKRShowKeyMgr%,xxxxxxxxxxxxxxx
复制代码

作者: henrygoode    时间: 2024-6-8 00:46
dcstechteam 发表于 2024-6-7 23:13
Thank you for the help.  I am trying to learn the details of pecmd.  Could you please help me cons ...

pecmd's problem, use pecmdedit tool debug
作者: dcstechteam    时间: 2024-6-8 01:22
Thank you so much for the help!!
I changed the code to this and the window finally showed:
CALL $--ret:&hKeymgr ,-LoadLibrary,Keymgr.dll
CALL $--ret:&hKRShowKeyMgr ,-GetProcAddress,*%&hKeymgr%,KRShowKeyMgr
CALL $--win --ret:&KRShowKeyMgrRet #,%&hKRShowKeyMgr%,xxxxxxxxxxxxxxx

I think I understand the structure now.
Also, I am using both pecmd and pecmdedit to test.
作者: 红毛樱木    时间: 2024-6-8 01:28
dcstechteam 发表于 2024-6-8 01:22
Thank you so much for the help!!
I changed the code to this and the window finally showed:
CALL $ ...

pecmdedit不能debug,无意义
作者: yyz2191958    时间: 2024-6-8 07:34
看不懂英文
作者: xnj19    时间: 2024-6-8 07:55
it does not load the key manager window.  I have tried numerous variations and combinations for calling, even tried --c to load as C library but nothing seems to work.  It's a very simple wcs and just tries to launch that dll.  Any help would be greatly appreciated.  Also, I am english native, so I appologize if this doesn't translate well.
它不会加载密钥管理器窗口。我已经尝试了许多变体和组合来调用,甚至尝试将 --c 加载为 C 库,但似乎没有任何效果。这是一个非常简单的wcs,只是尝试启动该dll。任何帮助将不胜感激。另外,我是以英语为母语的,所以如果翻译不好,我深表歉意。

作者: henrygoode    时间: 2024-6-8 08:08
红毛樱木 发表于 2024-6-8 01:28
pecmdedit不能debug,无意义


作者: 财源茂盛    时间: 2024-6-8 10:05
提示: 作者被禁止或删除 内容自动屏蔽
作者: guong    时间: 2024-6-8 10:29
看不懂啊
作者: zlq_hysy    时间: 2024-6-8 11:31

RE: Help, I'm having troubles calling a dll from pecmd [修改]
作者: rgfwqx@163.com    时间: 2024-6-8 11:39
You have to figure it out, because you don't speak Chinese.
作者: martin313    时间: 2024-6-8 12:49
yyz2191958 发表于 2024-6-8 07:34
看不懂英文


百度翻译
作者: henrygoode    时间: 2024-6-8 14:31
martin313 发表于 2024-6-8 12:49
百度翻译


作者: newyun    时间: 2024-6-8 15:37
这老外应该找个翻译翻译一下嘛。就像我们如果去老外论坛问别人问题用中文人家保证理都不带理的
作者: 红毛樱木    时间: 2024-6-8 17:31
newyun 发表于 2024-6-8 15:37
这老外应该找个翻译翻译一下嘛。就像我们如果去老外论坛问别人问题用中文人家保证理都不带理的

翻译软件翻译的不准,还不如就原文,然后自己翻译软件翻译不会有歧义
作者: 19353048280    时间: 2024-6-13 18:43
不懂
作者: 孤山飞雪    时间: 2024-6-15 10:01

作者: 2011wfj    时间: 2024-6-15 14:43
虽然看不懂,但感觉很厉害的样子




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3