无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 1483|回复: 27
打印 上一主题 下一主题

[求助] Help, I'm having troubles calling a dll from pecmd

  [复制链接]
跳转到指定楼层
1#
发表于 2024-6-7 22:12:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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.
2#
发表于 2024-6-7 22:54:23 | 只看该作者
我英文很差 除非你说中文
回复

使用道具 举报

3#
发表于 2024-6-7 22:59:16 | 只看该作者
Remarks
This function has no associated import library or header file; you must call it using the LoadLibrary and GetProcAddress functions.

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

点评

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  详情 回复 发表于 2024-6-7 23:13
回复

使用道具 举报

4#
发表于 2024-6-7 23:01:19 | 只看该作者
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
回复

使用道具 举报

5#
 楼主| 发表于 2024-6-7 23:13:33 | 只看该作者
红毛樱木 发表于 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.

回复

使用道具 举报

6#
发表于 2024-6-7 23:13:41 | 只看该作者
And which country are you in, can you make a test to create a free subdomain hosting in freewha.com?
回复

使用道具 举报

7#
发表于 2024-6-7 23:52:37 | 只看该作者
  1. CALL $--ret:&hKeymgr ,-LoadLibrary,Keymgr.dll
  2. CALL $--ret:&hKRShowKeyMgr ,-GetProcAddress,*%&hKeymgr%,KRShowKeyMgr
  3. CALL $--qd --ret:&KRShowKeyMgrRet #,%&hKRShowKeyMgr%,xxxxxxxxxxxxxxx
复制代码
回复

使用道具 举报

8#
发表于 2024-6-8 00:46:09 | 只看该作者
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
回复

使用道具 举报

9#
 楼主| 发表于 2024-6-8 01:22:00 | 只看该作者
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.

点评

不需要--win,那是rundll32的用法了  发表于 2024-6-8 14:19
pecmdedit不能debug,无意义  详情 回复 发表于 2024-6-8 01:28
回复

使用道具 举报

10#
发表于 2024-6-8 01:28:06 来自手机 | 只看该作者
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,无意义
回复

使用道具 举报

11#
发表于 2024-6-8 07:34:13 | 只看该作者
看不懂英文

点评

百度翻译  详情 回复 发表于 2024-6-8 12:49
回复

使用道具 举报

12#
发表于 2024-6-8 07:55:12 | 只看该作者
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。任何帮助将不胜感激。另外,我是以英语为母语的,所以如果翻译不好,我深表歉意。
回复

使用道具 举报

13#
发表于 2024-6-8 08:08:51 | 只看该作者
红毛樱木 发表于 2024-6-8 01:28
pecmdedit不能debug,无意义

回复

使用道具 举报

14#
发表于 2024-6-8 10:05:02 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

15#
发表于 2024-6-8 10:29:02 | 只看该作者
看不懂啊
回复

使用道具 举报

16#
发表于 2024-6-8 11:31:29 | 只看该作者

RE: Help, I'm having troubles calling a dll from pecmd [修改]
回复

使用道具 举报

17#
发表于 2024-6-8 11:39:28 | 只看该作者
You have to figure it out, because you don't speak Chinese.
回复

使用道具 举报

18#
发表于 2024-6-8 12:49:01 | 只看该作者


百度翻译
回复

使用道具 举报

19#
发表于 2024-6-8 14:31:14 | 只看该作者
回复

使用道具 举报

20#
发表于 2024-6-8 15:37:23 | 只看该作者
这老外应该找个翻译翻译一下嘛。就像我们如果去老外论坛问别人问题用中文人家保证理都不带理的

点评

翻译软件翻译的不准,还不如就原文,然后自己翻译软件翻译不会有歧义  详情 回复 发表于 2024-6-8 17:31
回复

使用道具 举报

21#
发表于 2024-6-8 17:31:40 来自手机 | 只看该作者
newyun 发表于 2024-6-8 15:37
这老外应该找个翻译翻译一下嘛。就像我们如果去老外论坛问别人问题用中文人家保证理都不带理的

翻译软件翻译的不准,还不如就原文,然后自己翻译软件翻译不会有歧义
回复

使用道具 举报

22#
发表于 2024-6-13 18:43:25 | 只看该作者
不懂
回复

使用道具 举报

23#
发表于 2024-6-15 10:01:33 | 只看该作者
回复

使用道具 举报

24#
发表于 2024-6-15 14:43:05 | 只看该作者
虽然看不懂,但感觉很厉害的样子
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-9-25 15:17

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表