This code below checks the windows password (from the Id already obtained). I wrote this code in Access 2000, but have since been given a new computer with Windows XP Office. All my other code works, but with this code I get the following error,
Can't Find DLL entry point WNetVerifyPasswordA in mpr.dll
This did work fine in Access 2000. The code with this particualr call is shown below...
Public Function VerifyWindowsLoginUserPassword _
(ByVal Password As String) As Boolean
Dim rtn As Long, Match As Long
rtn = WNetVerifyPassword(Password, Match) 'reads this line and crashes
If rtn Then
VerifyWindowsLoginUserPassword = False
Else
VerifyWindowsLoginUserPassword = (Match <> 0)
End If
End Function
Any ideas on how to sort this out would be great. Thanks for any help
Sam
"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer
Can't Find DLL entry point WNetVerifyPasswordA in mpr.dll
This did work fine in Access 2000. The code with this particualr call is shown below...
Public Function VerifyWindowsLoginUserPassword _
(ByVal Password As String) As Boolean
Dim rtn As Long, Match As Long
rtn = WNetVerifyPassword(Password, Match) 'reads this line and crashes
If rtn Then
VerifyWindowsLoginUserPassword = False
Else
VerifyWindowsLoginUserPassword = (Match <> 0)
End If
End Function
Any ideas on how to sort this out would be great. Thanks for any help
Sam
"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer