Skip to content

LongestSubkeyLength - cRegistry

Returns the length of the longest Subkey name for the currently open Key

Type: Function
Return Data Type: Integer

Syntax

Function LongestSubkeyLength Returns Integer

Call Example

Get LongestSubkeyLength to IntegerVariable

Description

The LongestSubkeyLength function returns the length of the longest Subkey name for the currently open Key. Use LongestSubkeyLength when you need to know the maximum length of all of the Subkey names. This is typically only used when you need to make low-level Windows API calls.

Return Value

Returns the number of bytes in the longest name of the Subkeys for the Key.