MSV1_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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于解决了我的问题。我将注册表项从 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.