Click here to Skip to main content
16,014,637 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRuntime Controls in VB6 Pin
Kumaran21cen28-May-07 23:25
Kumaran21cen28-May-07 23:25 
AnswerRe: Runtime Controls in VB6 Pin
Navneet Hegde28-May-07 23:34
Navneet Hegde28-May-07 23:34 
AnswerRe: Runtime Controls in VB6 Pin
SimulationofSai29-May-07 0:11
SimulationofSai29-May-07 0:11 
QuestionGet current user's logon password Pin
Steven J Jowett28-May-07 23:21
Steven J Jowett28-May-07 23:21 
AnswerRe: Get current user's logon password Pin
Navneet Hegde28-May-07 23:32
Navneet Hegde28-May-07 23:32 
GeneralRe: Get current user's logon password Pin
Steven J Jowett28-May-07 23:39
Steven J Jowett28-May-07 23:39 
GeneralRe: Get current user's logon password Pin
Navneet Hegde29-May-07 0:03
Navneet Hegde29-May-07 0:03 
AnswerRe: Get current user's logon password Pin
SimulationofSai28-May-07 23:58
SimulationofSai28-May-07 23:58 
You can't get the password!!!! How did you ever expect the OS password to be accessible through API???Confused | :confused: Microsoft's done some stupid things regarding security, but this is not one of em. The password's hashed anyway. Yeah, you have software that can attempt to crack it. But in a normal PC, a reasonably strong password would take a few days or months to be rebuilt using dictionary cracking, if at all it succeeds.
What you can do is get the current principal of the user and check if that login is within an Windows Role. Ex. if all your users are in the Role named "Administrators", you can get the thread.CurrentPrincipal and check if that Windows principal is in the role named "Administrators". If no, you can prompt for the user name and password again.
Look up the WindowsPrincipal and WindowsIdentity classes for more info.

SG
GeneralRe: Get current user's logon password Pin
Steven J Jowett29-May-07 0:10
Steven J Jowett29-May-07 0:10 
GeneralRe: Get current user's logon password Pin
Kiran Kumar B29-May-07 17:31
Kiran Kumar B29-May-07 17:31 
GeneralRe: Get current user's logon password Pin
Kiran Kumar B29-May-07 17:35
Kiran Kumar B29-May-07 17:35 
GeneralRe: Get current user's logon password Pin
Steven J Jowett29-May-07 22:10
Steven J Jowett29-May-07 22:10 
QuestionCreating VPN Pin
carsell28-May-07 23:20
carsell28-May-07 23:20 
QuestionFlexGrid in VB6 Pin
Kumaran21cen28-May-07 23:14
Kumaran21cen28-May-07 23:14 
AnswerRe: FlexGrid in VB6 Pin
Navneet Hegde28-May-07 23:45
Navneet Hegde28-May-07 23:45 
QuestionRestarting a socket Pin
Diego F.28-May-07 22:54
Diego F.28-May-07 22:54 
AnswerRe: Restarting a socket Pin
ne0h29-May-07 0:36
ne0h29-May-07 0:36 
GeneralRe: Restarting a socket Pin
Diego F.29-May-07 0:42
Diego F.29-May-07 0:42 
GeneralRe: Restarting a socket Pin
Kiran Kumar B29-May-07 17:44
Kiran Kumar B29-May-07 17:44 
GeneralRe: Restarting a socket Pin
Diego F.29-May-07 21:50
Diego F.29-May-07 21:50 
QuestionCrystal Report Takes too Much Time Pin
Rupesh Kumar Swami28-May-07 22:13
Rupesh Kumar Swami28-May-07 22:13 
AnswerRe: Crystal Report Takes too Much Time Pin
Steven J Jowett28-May-07 23:14
Steven J Jowett28-May-07 23:14 
GeneralRe: Crystal Report Takes too Much Time Pin
Rupesh Kumar Swami29-May-07 0:29
Rupesh Kumar Swami29-May-07 0:29 
QuestionImporting COM Components Pin
Zaegra28-May-07 21:18
Zaegra28-May-07 21:18 
AnswerRe: Importing COM Components Pin
CPallini29-May-07 2:04
mveCPallini29-May-07 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.