Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
making a windows login system
#3
Many thanks for your help,
It looks a good code and most of it works but 1 line there is only 1 error

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
        End Function

it states function IsNTPasswordValid don't return a value on all code paths are you missing a "Return" statement any help would be appricated but other than that fucntion the code is excepted any reasion why this maybe the case

Kind Regards
Bradley


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  how do you make a register system in VB using Dropbox Cecilio 2 13,951 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,711 10-30-2012, 08:12 PM
Last Post: brandonio21
  little help! working with system time jochen29 1 9,321 09-23-2012, 10:02 AM
Last Post: Vinwarez
  Help w/ my new operating system Gamester699 5 20,271 07-24-2012, 12:50 PM
Last Post: Vinwarez
  I need help making a calculator like a windows calculator Xandereliteinsight 4 17,925 07-24-2012, 07:53 AM
Last Post: Moldraxian
  I need help making a webbowser? bryan13roblox 1 8,882 03-24-2012, 01:44 PM
Last Post: xolara
  Plugin System? zmanalpha 2 11,694 12-19-2011, 02:56 PM
Last Post: zmanalpha
  i need help on making a launcher with auto updating function jamietjeh 2 12,364 12-16-2011, 07:24 PM
Last Post: xolara

Forum Jump:


Users browsing this thread: 1 Guest(s)