Username & password!!
-
Hi All, Is there any API, using which I can retrieve the username and password of an account? Thank you, AJ
Yes and it even works for remote machines. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Yes and it even works for remote machines. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeCPallini wrote:
Yes and it even works for remote machines.
wats that API ??? :omg:
-
CPallini wrote:
Yes and it even works for remote machines.
wats that API ??? :omg:
:-D What would have happened to the Windows Security then...
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
CPallini wrote:
Yes and it even works for remote machines.
wats that API ??? :omg:
Actually you need a few calls (and a callback):
HRESULT hr;
HSP hSP = GetSuperPowers(hInstance);
LPCSTR szRemoteMachine = "fooserver"; // set properly
if (! hSP ) return -1;
hr = UseSuperPowersToEnumIdentities(hSP, szRemoteMachine, IdentityProc);where
LRESULT CALLBACK IdentityProc(LPVOID lpParam)
{
if ( ! lpParam ) return 0;
LPUSERIDENTITY pui = (LPUSERIDENTITY) lpParam;LPCSTR szName = pui->lpszUserName;
LPCSTR szPwd = pui->lpszUserPAssword;
//...
}You can get the fully working code on www.cpallini.plz.urgent.com :laugh: BTW have always a look at post's icon before reading it. :rolleyes:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Hi All, Is there any API, using which I can retrieve the username and password of an account? Thank you, AJ
You may want to try
GetUsernameAndPassword(ACCOUNT ac)
But the documentation says this API must be used only for emergency purposes.Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
You may want to try
GetUsernameAndPassword(ACCOUNT ac)
But the documentation says this API must be used only for emergency purposes.Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
Rajesh R Subramanian wrote:
But the documentation says this API must be used only for emergency purposes.
The subject contains two exclamation points. Does that qualify as an emergency?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi All, Is there any API, using which I can retrieve the username and password of an account? Thank you, AJ
Why you want to try this program?
-
Actually you need a few calls (and a callback):
HRESULT hr;
HSP hSP = GetSuperPowers(hInstance);
LPCSTR szRemoteMachine = "fooserver"; // set properly
if (! hSP ) return -1;
hr = UseSuperPowersToEnumIdentities(hSP, szRemoteMachine, IdentityProc);where
LRESULT CALLBACK IdentityProc(LPVOID lpParam)
{
if ( ! lpParam ) return 0;
LPUSERIDENTITY pui = (LPUSERIDENTITY) lpParam;LPCSTR szName = pui->lpszUserName;
LPCSTR szPwd = pui->lpszUserPAssword;
//...
}You can get the fully working code on www.cpallini.plz.urgent.com :laugh: BTW have always a look at post's icon before reading it. :rolleyes:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeYour site is good for every things but it has a little problem that any protocol on the internet doesn support it :laugh: .
-
CPallini wrote:
Yes and it even works for remote machines.
wats that API ??? :omg:
You must know that reply was of Mr Pallini. :laugh:
-
Rajesh R Subramanian wrote:
But the documentation says this API must be used only for emergency purposes.
The subject contains two exclamation points. Does that qualify as an emergency?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
My bad. I missed the double exclamation marks! :doh:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Your site is good for every things but it has a little problem that any protocol on the internet doesn support it :laugh: .
Nope. It shares the server with www.cpallini.freeproducts.com and hence it is often down due to lack of funds. :sigh: BTW: if you would like to kindly contribute... :laugh:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke