Allocate menu item Id failed by aaApi_ReserveCommandIdByType(AAMENU_USERFLDR)

I need add context menu for Custom Hierarchy, so I use aaApi_ReserveCommandIdByType(AAMENU_USERFLDR) to allote menu item Id, but it always return 0, I have tried in V8i SS4 and CE SDK.
although I can add context menu item with Id allocated by aaApi_ReserveCommandIdByType(AAMENU_CUSTOM), but the callback function can not execute while menu item clicked, how to fix it? thanks.