FindKey 

long FindKey (LPCTSTR Name)

Parameters

Name

Name of the key to search for

Return Value

Index (not Virtual-Key Value) of the first key with this name; -1 if not found.

Comments

Searches are for the initial substring, and are not case-sensitive.