home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 6 Unleashed…sional Reference Edition)
/
Visual_Basic_6_Unleashed_Professional_Reference_Edition_Sams_1999.iso
/
Source
/
CHAP29
/
309X3214.TXT
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1998-05-05
|
312 bÂ
|
15 lines
Private Function CloseSubkey(lHandle As Long) As Long
Dim lonStatus As Long
' Close the key with the handle specified by the
' lHandle argument.
lonStatus = RegCloseKey(lHandle)
' Return zero if successful, -1 if not successful.
CloseSubkey = 0
If lonStatus Then CloseSubkey = -1
End Function