MSV1_0 子验证包注册

发布于 2024-08-29 08:51:49 字数 483 浏览 3 评论 0原文

我正在尝试为 MS Windows Server 2003 注册一个简单的 MSV1_0 子身份验证包。我创建了一个 dll,它实现了 MSDN 中描述的所需功能。我将 dll 复制到 system32 文件夹。之后,我创建了一个注册表项Auth255(我也尝试过Auth128),其值是REG_SZ,它指定我的dll名称,到这个位置; HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\MSV1_0。我希望在调用 dll 时它会创建一个 test.txt 文件用于调试目的,但它不会创建该文件。我怎样才能做到这一点?

本主题的 MSDN 链接; http://msdn.microsoft.com/en-我们/库/aa374786%28VS.85%29.aspx

I'm trying to register a simple MSV1_0 subauthentication package for MS Windows Server 2003. I created a dll which implements required functions described in MSDN. I copied my dll to system32 folder. After that, I created a registry key Auth255 (I also tried Auth128) with a REG_SZ value ,which specifies my dll name, to this location; HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\MSV1_0. I expect that it will create a test.txt file for debugging puposes when the dll is called, but it doesn't create the file. How can I make this work?

MSDN Link for this topic;
http://msdn.microsoft.com/en-us/library/aa374786%28VS.85%29.aspx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

朕就是辣么酷 2024-09-05 08:51:50

我终于解决了我的问题。我将注册表项从 Auth255 重命名为 Auth0,并且我的 dll 的 init 函数由 MSV1_0 调用。我意识到我忘记从 DLL 中导出所需的函数。经过这些步骤后,我的 dll 工作正常。

I finally solved my problem. I renamed registry key from Auth255 to Auth0 and my dll's init function called by MSV1_0. I realized that I forgot to export required functions from DLL. After these steps my dll worked fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文