bool __stdcall GlobalRenderShadow()

It finalize the hardware shadows. You need call it after you put your HW shadow objects, and before you call the EndRender (RenderHWND). :

Result:
bool: