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
61 lines
919 B
/*++
|
|
|
|
|
|
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 );
|
|
}
|