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.

32 lines
815 B

  1. //=================================================================
  2. //
  3. // NtDevToSvcSearch.h
  4. //
  5. // Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved
  6. //
  7. //=================================================================
  8. #ifndef __NTDEVTOSVCSEARCH_H__
  9. #define __NTDEVTOSVCSEARCH_H__
  10. #define DEVTOSVC_BASEKEYPATH _T("HARDWARE\\RESOURCEMAP")
  11. #define RAWVALUENAME_FMAT _T("\\Device\\%s.Raw")
  12. #define TRANSLATEDVALUENAME_FMAT _T("\\Device\\%s.Translated")
  13. class CNTDeviceToServiceSearch : public CRegistrySearch
  14. {
  15. public:
  16. //Construction/Destruction
  17. CNTDeviceToServiceSearch();
  18. ~CNTDeviceToServiceSearch();
  19. // Single method for finding an NT service name based off of a device name
  20. BOOL Find( LPCTSTR pszDeviceName, CHString& strServiceName );
  21. };
  22. #endif