How to know a variable is defined on to stack or heap. Is Win OS providing any API to know it.