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.

61 lines
919 B

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. Support.c
  5. Abstract:
  6. This module contains support functions for the server side of the
  7. Win32 Registry APIs. That is:
  8. - PRPC_HKEY_rundown
  9. Author:
  10. David J. Gilman (davegi) 21-Mar-1992
  11. --*/
  12. #include <rpc.h>
  13. #include "regrpc.h"
  14. error_status_t
  15. BaseRegCloseKeyInternal(
  16. IN OUT PHKEY phKey
  17. );
  18. VOID
  19. RPC_HKEY_rundown (
  20. IN RPC_HKEY hKey
  21. )
  22. /*++
  23. Routine Description:
  24. Arguments:
  25. Return Value:
  26. None.
  27. --*/
  28. { LONG Error;
  29. ASSERT( ((hKey == HKEY_PERFORMANCE_DATA) ||
  30. (hKey == HKEY_PERFORMANCE_TEXT) ||
  31. (hKey == HKEY_PERFORMANCE_NLSTEXT)) ||
  32. !IsPredefinedRegistryHandle( hKey ) );
  33. CleanDeadClientInfo( hKey );
  34. Error = BaseRegCloseKeyInternal( &hKey );
  35. ASSERT( Error == ERROR_SUCCESS );
  36. }