How to get stack address



Hi,

I would like to know how I can get the bottom stack address of a thread on windows CE.

I am currently doing this :

BOOL bKmode = SetKMode(TRUE);
DWORD dwOrigBase = ((ArmHigh->kdata).pCurThd)->dwOrigBase;
SetKMode(bKmode);


Is there a better option that accessing directly the kernel ?
.