Leaked source code of windows server 2003
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.

38 lines
1.1 KiB

  1. #ifndef __INSTENUM_H_
  2. #define __INSTENUM_H_
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CEnumInstalledApps
  5. class CEnumInstalledApps : public IEnumInstalledApps
  6. {
  7. public:
  8. CEnumInstalledApps(void);
  9. // *** IUnknown Methods
  10. virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
  11. virtual STDMETHODIMP_(ULONG) AddRef(void) ;
  12. virtual STDMETHODIMP_(ULONG) Release(void);
  13. // *** IEnumInstalledApps
  14. STDMETHODIMP Next(IInstalledApp ** ppia);
  15. STDMETHODIMP Reset(void);
  16. protected:
  17. virtual ~CEnumInstalledApps(void);
  18. HRESULT _GetNextLegacyAppFromRegistry(IInstalledApp ** ppia);
  19. HRESULT _GetNextLegacyApp(IInstalledApp ** ppia);
  20. HRESULT _GetNextDarwinApp(IInstalledApp ** ppia);
  21. UINT _cRef;
  22. DWORD _iEnumIndex; // Total Application Enumeration index.
  23. DWORD _iIndexEach; // Shared index by Legacy or Darwin or SMS
  24. BOOL _bEnumLegacy;
  25. DWORD _dwCIA; // What kind of legacy enumeration are we doing?
  26. HKEY _hkeyUninstall;
  27. };
  28. #endif //__INSTENUM_H_