Windows2000/private/windows/screg/winreg/server/support.c
2020-09-30 17:12:32 +02:00

62 lines
856 B
C

/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
Support.c
Abstract:
This module contains support functions for the server side of the
Win32 Registry APIs. That is:
- PRPC_HKEY_rundown
Author:
David J. Gilman (davegi) 21-Mar-1992
--*/
#include <rpc.h>
#include "regrpc.h"
error_status_t
BaseRegCloseKeyInternal(
IN OUT PHKEY phKey
);
VOID
RPC_HKEY_rundown (
IN RPC_HKEY hKey
)
/*++
Routine Description:
Arguments:
Return Value:
None.
--*/
{ LONG Error;
ASSERT( ((hKey == HKEY_PERFORMANCE_DATA) ||
(hKey == HKEY_PERFORMANCE_TEXT) ||
(hKey == HKEY_PERFORMANCE_NLSTEXT)) ||
!IsPredefinedRegistryHandle( hKey ) );
CleanDeadClientInfo( hKey );
Error = BaseRegCloseKeyInternal( &hKey );
ASSERT( Error == ERROR_SUCCESS );
}