Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
making a windows login system
#4
I believe that simply editing the code and adding in one line should do the trick!

Code:
Public Function IsNTPasswordValid(ByVal Username As String, ByVal Password As String, Optional ByVal Domain As String = "") As Boolean
            Dim Token As New IntPtr
            LogonUser(Username, Domain, Password, LogonType.LOGON32_LOGON_INTERACTIVE, 0, Token)
            CloseHandle(Token)
            If Token.ToInt32 <> 0 Then
                Return True
            Else
                Return False
             End If
        End Function
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
making a windows login system - by Bradley - 05-28-2012, 04:47 AM
Re: making a windows login system - by Bradley - 05-29-2012, 12:50 AM
Re: making a windows login system - by brandonio21_phpbb3_import2 - 05-29-2012, 04:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how do you make a register system in VB using Dropbox Cecilio 2 13,950 08-15-2013, 08:14 AM
Last Post: Cecilio
  help with making a simple program Yevzor 2 14,794 03-29-2013, 05:04 AM
Last Post: Yevzor
  i am getting a problem with brandonio's login form mnxford 1 9,099 03-27-2013, 10:55 AM
Last Post: mnxford
  Windows API Code Pack 1.1 brco900033 1 8,709 10-30-2012, 08:12 PM
Last Post: brandonio21
  little help! working with system time jochen29 1 9,320 09-23-2012, 10:02 AM
Last Post: Vinwarez
  Help w/ my new operating system Gamester699 5 20,267 07-24-2012, 12:50 PM
Last Post: Vinwarez
  I need help making a calculator like a windows calculator Xandereliteinsight 4 17,923 07-24-2012, 07:53 AM
Last Post: Moldraxian
  I need help making a webbowser? bryan13roblox 1 8,880 03-24-2012, 01:44 PM
Last Post: xolara
  Plugin System? zmanalpha 2 11,688 12-19-2011, 02:56 PM
Last Post: zmanalpha
  i need help on making a launcher with auto updating function jamietjeh 2 12,361 12-16-2011, 07:24 PM
Last Post: xolara

Forum Jump:


Users browsing this thread: 1 Guest(s)