MSSQLServerDeve loper,
In addition to the other comments.
Are you attempting to validate the current user or are you attempting to
authenticate the current user is allowed to use the program?
If you are attempting to validate the current user Keith Brown's book "The
..NET Developer's Guide to Windows Security" from Addison Wesley contains a
plethora of information on security under Win32 & specifically .NET.
Including a topic on how to prompt for a password. You can access the book
on-line at:
http://www.pluralsight.com/keith/book/html/book.html I have not
tried the API reference, however a quick scan of MSDN suggests you might be
able to use it for the current user...
NOTE: Keith's book also includes a topic on how to run a program as another
user! (via the CreateProcessWi thLogonW Win32 API)
If you are simply trying to authenticate the current user is allows to use
the program I would consider using Code Access Security and/or Role-Based
Security coupled with Win32 ACLs, rather then prompt for a password.
Info on Code Access Security:
http://msdn.microsoft.com/library/de...sssecurity.asp
Info on Role-Based Security:
http://msdn.microsoft.com/library/de...edsecurity.asp
Keith's book on info on using Win32 ACLs from .NET.
Hope this helps
Jay
"MSSQLServerDev eloper" <MS************ ******@discussi ons.microsoft.c om>
wrote in message news:88******** *************** ***********@mic rosoft.com...
I am running in a windows 2000 environment and have the following scenario
/
question.
I have a vb.net application. Before allowing the user the go into the
app,
I would like to validate against the windows password. Is there any easy
way
to do this?
tia