求API函数具体用法

DBFD 2005-03-24 06:40:11
Declare Function LogonUser Lib "advapi32.dll" Alias "LogonUserA" (ByVal lpszUsername As String, _
ByVal lpszDomain As String, ByVal lpszPassword As String, _
ByVal dwLogonType As Long, ByVal dwLogonProvider As Long, _
ByVal phToken As Long) As Long
望相告此函数在VB.NET的Application程序中参数具体用法。
...全文
101 3 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
DBFD 2005-03-28
谢谢各位,问题自己解决了,申明应该是:
Public Declare Function LogonUser Lib "advapi32.dll" Alias "LogonUserA"(ByVal lpszUsername As String, ByVal lpszDomain As String, ByVal lpszPassword As String, ByVal dwLogonType As Integer, ByVal dwLogonProvider As Integer, ByRef phToken As Integer) As Integer
  • 打赏
  • 举报
回复
chenyuming2004 2005-03-24
Public Declare Function LogonUser Lib "kernel32" Alias "LogonUserA" (ByVal lpszUsername As String, ByVal lpszDomain As String, ByVal lpszPassword As String, ByVal dwLogonType As Integer, ByVal dwLogonProvider As Integer, phToken As Integer) As Integer

在VB.net里面声明应该是这么写吧?
你那个声明是vb6.0的。
  • 打赏
  • 举报
回复
tihua 2005-03-24
帮你找找,我最近一本就是vb.net下的API函数的
  • 打赏
  • 举报
回复
发帖
VB

1.6w+

社区成员

VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
帖子事件
创建了帖子
2005-03-24 06:40
社区公告
暂无公告