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.

50 lines
1.5 KiB

4 years ago
  1. /****************************************************************************
  2. *
  3. * config.c
  4. *
  5. * Multimedia kernel driver support component (drvlib)
  6. *
  7. * Copyright (c) Microsoft Corporation 1993. All rights reserved.
  8. *
  9. * Support configuration of multi-media drivers :
  10. *
  11. * This code steps through the stages of configuration and calls back
  12. * the real driver when there's something to do. We also handle setting
  13. * registry parameters and loading/unloading the kernel driver,
  14. * retrieving new/changed parameters etc.
  15. *
  16. * History
  17. *
  18. ***************************************************************************/
  19. /**************************************************************************
  20. Spec :
  21. State :
  22. Set of install card instances in the registry
  23. Set of state variables
  24. **************************************************************************/
  25. BOOL DriverConfigCheckAccess(PDRIVER_CONFIGURATION Config)
  26. {
  27. BOOL Result;
  28. REG_ACCESS RegAccess;
  29. //
  30. // Check to see if we can access the registry.
  31. // Note thta this may be a config immediately after install
  32. // so we may not have a service or node yet
  33. //
  34. DrvCreateServicesNode(STR_DRIVERNAME,
  35. SoundDriverTypeNormal,
  36. &RegAccess,
  37. FALSE); // Don't create
  38. Result = DrvAccess(&RegAccess);
  39. DrvCloseServiceManager(&RegAccess);
  40. return Result;
  41. }