Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.3 KiB

4 years ago
  1. //--------------------------------------------------------------------------;
  2. //
  3. // File: dsndcom.h
  4. //
  5. // Copyright (c) 1996 Microsoft Corporation. All Rights Reserved.
  6. //
  7. // Abstract:
  8. // This file contains the declaration of the Class Factory
  9. //
  10. //
  11. // History:
  12. // 02/09/96 angusm Initial version
  13. //
  14. //--------------------------------------------------------------------------;
  15. #ifndef DSNDCOM_H
  16. #define DSNDCOM_H
  17. // ________________________________________________________________________
  18. // CClassFactory
  19. //
  20. // This class implements an IClassFactory for DirectSound
  21. // ________________________________________________________________________
  22. class CClassFactory : public IClassFactory
  23. {
  24. protected:
  25. ULONG m_cRef; // object reference count
  26. public:
  27. void *operator new(unsigned);
  28. void operator delete(void *p);
  29. CClassFactory(); // contructor
  30. STDMETHODIMP_(ULONG)
  31. AddRef // IUnknown AddRef
  32. (void);
  33. STDMETHODIMP_(ULONG)
  34. Release // IUnknown Release
  35. (void);
  36. STDMETHODIMP
  37. QueryInterface // IUnknown QueryInterface
  38. (REFIID riid,
  39. void** ppv);
  40. STDMETHODIMP
  41. CreateInstance // IClassFactory CreateInstance
  42. (IUnknown* pUnkOuter,
  43. REFIID riid,
  44. void** ppvObject);
  45. STDMETHODIMP
  46. LockServer // IClassFactory LockServer
  47. (BOOL fLock);
  48. };
  49. #endif DSNDCOM_H