Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL Error

Status
Not open for further replies.

SpankYou

Programmer
Feb 24, 2003
211
GB
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

&quot;You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine.&quot; - Homer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top