Sample Code

Windows Driver Samples/ Native Wifi IHV Service/ C++/ ihvsampleui/ IHVClassFactory.h/

//
// Copyright (C) Microsoft Corporation 2005
// IHV UI Extension sample
//

#pragma once

// The class factory
class CIHVClassFactory : public IClassFactory
{
public:
   // Constructor
   CIHVClassFactory();
   ~CIHVClassFactory();

   // IUnknown
   STDMETHODIMP_(ULONG) AddRef();
   STDMETHODIMP_(ULONG) Release();
   STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject);

   // IClassFactory
   STDMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppvObject);
   STDMETHODIMP LockServer(BOOL fLock);

private:
   long m_refCount;
};

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS