The following code snippet is expected to return the hive path for SharePoint (..\Microsoft Shared\Web Server Extensions\14), instead it returns null.
using Microsoft.SharePoint.Utilities;
string featurePath = SPUtility.GetGenericSetupPath(string.Empty);
What am I missing?