- hKey [in]
-
A handle to the open key to be closed. The handle must have been opened by the RegCreateKeyEx, RegCreateKeyTransacted, RegOpenKeyEx, RegOpenKeyTransacted, or RegConnectRegistry function.
Remarks
The handle for a specified key should not be used after it has been closed, because it will no longer be valid. Key handles should not be left open any longer than necessary.
The RegCloseKey function does not necessarily write information to the registry before returning; it can take as much as several seconds for the cache to be flushed to the hard disk. If an application must explicitly write registry information to the hard disk, it can use the RegFlushKey function. RegFlushKey, however, uses many system resources and should be called only when necessary.
[RegOpenKey : http://msdn.microsoft.com/en-us/library/ms724895(VS.85).aspx]
[RegCloseKey : http://msdn.microsoft.com/en-us/library/ms724837(VS.85).aspx]
[RegCreateKey : http://msdn.microsoft.com/en-us/library/ms724842(VS.85).aspx]
[RegDeleteKey : http://msdn.microsoft.com/en-us/library/ms724845(VS.85).aspx]
'Programming > C Win32 MFC' 카테고리의 다른 글
The C Library Reference Guide (0) | 2009.02.24 |
---|---|
warning: array subscript has type ‘char’ (0) | 2009.01.02 |
현재 실행파일이 있는 경로 알아 내기 - How to get full path of executed current file(not current directory) (2) | 2008.12.26 |
확장자별 우클릭 메뉴를 위한 레지스트리 등록(Windows Registry for file extension context-menu) (5) | 2008.12.18 |
File 길이 알아내기 (2) | 2008.10.29 |