Hi, i am working for windows 8 wrapped credential provider .i did every thing in document which is provided by Microsoft .i implemented ICredentialProviderCredential2 interface with GetUserSid(__deref_out PWSTR *ppszSid) method,i am able to get sid .but my credential provider showing like other user tile ,but widows default credential showing password text box only,why my credential showing username text box and password text box. please help about this Thanks
venkatesh52867
Posts
-
windows 8 custom credential provider -
win32 dialogbox with custom control not displaying in windows 8 64bitmy dll is custom credential provider .this dll provide a link in windows logon screen,this link will display win32 dialog with custom control.this is working for windows 7 32&64 bit and windows 8 32bit.but 64 bit windows 8 every thing is coming fine dialog only not displaying . Thanks
-
win32 dialogbox with custom control not displaying in windows 8 64bithi, in my dll i am calling win32 dialog with custom control it working in 32 bit windows 8 machine but it is not display in 64 bit windows 8 machine. anyone tell me solution . Thanks
-
Implementation two interfaces in one classhi, ok but that is not problem when i called ICredentialProviderSetUserArray ==riid probblem is occurring if (IID_IUnknown == riid || IID_ICredentialProvider == riid || IID_ICredentialProviderSetUserArray ==riid) { Thanks
-
Implementation two interfaces in one classHi, please check this code.i am highlighted with bold that code add then it is crashing. #pragma once #include #include #include #include "PasswordResetCredential.h" #include "helpers.h" class CSampleProvider : public ICredentialProvider,public ICredentialProviderSetUserArray { public: // IUnknown STDMETHOD_(ULONG, AddRef)() { return _cRef++; } STDMETHOD_(ULONG, Release)() { LONG cRef = _cRef--; if (!cRef) { delete this; } return cRef; } STDMETHOD (QueryInterface)(REFIID riid, void** ppv) { HRESULT hr; if (IID_IUnknown == riid || IID_ICredentialProvider == riid ||IID_ICredentialProviderSetUserArray==riid) { *ppv = this; reinterpret_cast(*ppv)->AddRef(); hr = S_OK; } else { *ppv = NULL; hr = E_NOINTERFACE; } return hr; } public: IFACEMETHODIMP SetUsageScenario(CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus, DWORD dwFlags); IFACEMETHODIMP SetSerialization(const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION* pcpcs); IFACEMETHODIMP Advise(__in ICredentialProviderEvents* pcpe, UINT_PTR upAdviseContext); IFACEMETHODIMP UnAdvise(); IFACEMETHODIMP GetFieldDescriptorCount(__out DWORD* pdwCount); IFACEMETHODIMP GetFieldDescriptorAt(DWORD dwIndex, __deref_out CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR** ppcpfd); IFACEMETHODIMP GetCredentialCount(__out DWORD* pdwCount, __out DWORD* pdwDefault, __out BOOL* pbAutoLogonWithDefault); IFACEMETHODIMP GetCredentialAt(DWORD dwIndex, __out ICredentialProviderCredential** ppcpc); IFACEMETHODIMP SetUserArray (__in ICredentialProviderUserArray * users); friend HRESULT CSampleProvider_CreateInstance(REFIID riid, __deref_out void** ppv); protected: CSampleProvider(); __override ~CSampleProvider(); private: void _CleanUpAllCredentials(); private: LONG _cRef; CSampleCredential **_rgpCredentials; // Pointers to the credentials which will be enumerated by this // Provider. ICredentialProvider *_pWrappedProvider; // Our wrapped provider.
-
Implementation two interfaces in one classHi, Problem is this || IID_ICredentialProviderSetUserArray when i call IID_ICredentialProviderSetUserArray interface through Quareyinterface dll is crashing without implementing ICredentialProviderSetUserArray interface dll is working is fine . thanks
-
Implementation two interfaces in one classHi, i have implemented two interfaces in class CSampleProvider : public ICredentialProvider,public ICredentialProviderSetUserArray { ....
STDMETHOD (QueryInterface)(REFIID riid, void** ppv)
{
HRESULT hr;
if (IID_IUnknown == riid ||
IID_ICredentialProvider == riid || IID_ICredentialProviderSetUserArray )
{
*ppv = this;
reinterpret_cast<IUnknown*>(*ppv)->AddRef();
hr = S_OK;
}
else
{
*ppv = NULL;
hr = E_NOINTERFACE;
}
return hr;
}........ }; it is building with out errors .but when i execute dll logonui is crashing .how can implement two interfaces in one class please help me
-
How can i get date valu from ADSI with c++ codeHi Richard, Thanks for reply .The method is return success var.date value returns 2.613867737909e-316#DEN . i am not able to understand this value.
-
How can i get date valu from ADSI with c++ codeHi, i am not able to get Date value from ADSI directory VARIANT var; hr = ADsOpenObject(path,NULL,NULL,0, IID_IADsUser, id**)&pUsr); HRESULT h1= pUsr->Get(L"pwdLastSet", &var); INT8 bb=var.date; This code is not working pwdLastSet type is integer8 .it stores date value how can i get date value from adsi with c++ code please help anyone
-
How can i get date valu from ADSI with c++ codeHi, i am not able to get Date value from ADSI directory hr = ADsOpenObject(path,NULL,NULL,0, IID_IADsUser, id**)&pUsr); HRESULT h1= pUsr->Get(L"pwdLastSet", &var); INT8 bb=var.date;
-
get objectSid in ADSI with c++ codeit is objectSid.
-
get objectSid in ADSI with c++ codeHi, i am not able to get objectSid from adsi .i able to get string attributes like cn,DN.. but hr = ADsGetObject(L"LDAP://CN=nitin n,CN=Users,DC=northwing,DC=Com", IID_IADs, (void**) &pADs ); pUsr->Get(L"objectSid ",&var) method not working for objectSid. please help me. Thanks
-
error handling in c++ dllHi, I have one function which is return string array in my C++ dll .from this function how can return error .please help me . Thanks
-
get all domains in ADSI foresthi, i have to implement one method to get all domain names from adsi forest in c++ anyone tell that how can do that in c++. thanks
-
get all domains form adsi foresthi, i have to implement one method to get all domain names from adsi forest in c++ anyone tell that how can do that in c++. thanks
-
ICredentialProviderFilterhi i was implemented ICredentialProviderFilter in my custom credential provider it is switch user button not showing. ie: it is showing only my custom credential provider it is not showing my other credentials please help me anyone
-
RegOpenKeyExret =2 that RegOpenKeyEx returns 2 LONG ret =RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Apache Software Foundation\\Tomcat\\7.0\\Tomcat7", 0, KEY_ALL_ACCESS, &hKey); this not success
-
RegOpenKeyExhi, return value ERROR_FILE_NOT_FOUND. but path of key correct
-
RegOpenKeyExHi, i am trying to read registry key value the code is this unable to get key value whats wrong this code LONG ret =RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Apache Software Foundation\\Tomcat\\7.0\\Tomcat7", 0, KEY_ALL_ACCESS, &hKey); if(ret == ERROR_SUCCESS) { RegQueryValueEx( hKey, "Version",NULL, 0, (BYTE*)value, &size); } MessageBox(value); RegCloseKey(keyHandle)
-
how can update .properties filehi, i need to update .properties file example**
log4j.logger.PXPBroker=TRACE, C, fileappender
log4j.additivity.PXPBroker=false
log4j.appender.C=org.apache.log4j.ConsoleAppender
log4j.appender.C.layout=org.apache.log4j.PatternLayout
log4j.appender.fileappender=org.apache.log4j.RollingFileAppender
log4j.appender.fileappender.File=C:/pxpserver/logs/pbesb.log**i want to update these values in c++ please help me.