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.

39 lines
928 B

  1. #ifndef _TSVCCACHE_HXX_INCLUDED_
  2. #define _TSVCCACHE_HXX_INCLUDED_
  3. #ifndef dllexp
  4. #define dllexp __declspec( dllexport )
  5. #endif
  6. class dllexp TSVC_CACHE
  7. {
  8. public:
  9. VOID SetParameters(
  10. DWORD dwServiceId,
  11. DWORD dwInstanceId,
  12. PVOID pInstance
  13. )
  14. { m_dwServiceId = dwServiceId;
  15. m_dwInstanceId = dwInstanceId;
  16. m_pInstance = pInstance;
  17. }
  18. DWORD GetServiceId( VOID ) const
  19. { return( m_dwServiceId ); }
  20. DWORD GetInstanceId( VOID ) const
  21. { return( m_dwInstanceId ); }
  22. PVOID GetServerInstance( VOID ) const
  23. { return( m_pInstance ); }
  24. private:
  25. DWORD m_dwServiceId;
  26. DWORD m_dwInstanceId;
  27. PVOID m_pInstance;
  28. };
  29. #endif /* included */