RE: Once again Vista logon (ICredentialProvider)

From: gf (gf_at_discussions.microsoft.com)
Date: 11/24/05


Date: Thu, 24 Nov 2005 07:41:06 -0800

Excuse me, I am new to COM and I didn't register correctly my component.
Now it's done my DLL is loaded but everytime "DllGetClassObject () ()" is
called, everytime the RID is the IClassFactory RID => "QueryInterface ()"
never affect a ICredentialProvider object ! None of "ICredentialProvider"
method is called.
Same questions : do I need to implement another interface
(ICredentialProviderCredential) or a Logon UI or a Cred UI ?

P. S. : for information, register a component is to create a registre key
"{<component GUID>}" under "HKEY_CLASSES_ROOT", under which create a key
"InprocServer32" under which create a value "ThreadingModel" (type : REG_SZ,
value : "Apartment") and set the default value to the DLL name.

"gf" wrote:

> Hi all,
> I'm implementing the ICredentialProvider interface to replace my GINA. I
> implemented very simply that interface with tracing into text file each
> method, compiled the DLL, placed it in "\Windows\system32" and create a
> registry key under
> "HKLM/Software/Microsoft/Windows/CurrentVersion/Authentication/Credential
> Providers", rebooted computer but my DLL isn't loaded, and my text file is
> empty.
>
> Have I forgotten something ? Must I implement another interface
> (ICredentialProviderCredential) or a Logon UI or a Cred UI ?
>
> "wolf777" wrote:
>
> > So meanwhile I found the solution myself :-)
> >
> > If there is anybody interested - look at this key in the registry:
> > HKLM/Software/Microsoft/Windows/CurrentVersion/Authentication/CredentialProviders
> >
> > You will find there Microsoft "Password" and "SmartCard" providers and just
> > create a key which name is your provider GUID in the same manner as MS does.
> >
> > Would be great to read it in the SDK :-) And one more tip - when you compile
> > ICredentialProviderCredential implementation, you should add Platform SDK
> > library "Uuid.lib" to your project, otherwise you will get unresolved
> > external errors.
> >
> > This beta development is a real adventure though :-D
> >
> > "wolf777" wrote:
> >
> > > Hi all,
> > >
> > > thanks to help from this community I could finally implement an early
> > > version of Vista Credential Provider, which generally means to implement the
> > > ICredentialProvider using Windows Longhorn Professional SDK Beta 1.
> > >
> > > I built the dll, added some trace-to-file calls to know what actually
> > > happens, registered the dll in Vista and rebooted the computer.
> > > Unfortunatelly, this doesn't work (according to the log, the DLL is only
> > > loaded and unloaded, no method is called).
> > >
> > > My question is: Which steps must I take, to make winlogonUI start using my
> > > dll? I am quite new to COM and windows shell, so I maybe ommit some basic
> > > step... Intuitively, I would expect that one should be able to set somewhere
> > > which credential provider shall be used for logon, as there can be multiple
> > > such provider dlls registered. Is there for example some section in the
> > > registry, where I should put some entries pointing to my dll?
> > >
> > > Thank you in advance, I really appreciate your help which already allowed me
> > > to get so far :-)



Relevant Pages

  • Re: Register Redemption Object
    ... The "DLLRegisterServery entry point was not found" error means that either ... they were trying to load a wrong dll or tha tteh dll is damaged. ... when I ask them to register the .dll on ... to interface type 'Redemption.IMAPIUtils'. ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: ATL 3.0 DLL does not register interface
    ... Yes, i tried the test on a test sample, so i just built a ATL-DLL added an ... Then i used a simple test client to instanciate the dll and it gives me ... interface it implements is the IUnknown ... ATL 3.0 DLL does not register interface ...
    (microsoft.public.vc.atl)
  • Re: IRibbonExtensibility and Exchange Client Addin
    ... I did implement COM Addin stuff in my dll. ... But what do you mean by "register the COM Addin registry keys". ... IRibbonExtensibility interface separately? ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: view dll with oleview to create idl
    ... If I register the dll, it shows up under AllObjects, but only the multuse ... The interface dll class I want to create the tlb for doesn't show up.... ... own IDL, which you then compile. ...
    (microsoft.public.vb.general.discussion)
  • Re: static or not?
    ... >> Thus, for example, controller.Driver will register its Controller ... > "If I use a singleton, then I can strip away an interface from this ... > if this is done from class foo, what's foo's package? ...
    (comp.lang.java.help)