How do I find the coordinates of the cursor in a console window?
<p>I gave the cursor some coordinates using the following code:</p>

<pre><code>COORD c = { 7, 7 };
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(h, c); 
</code></pre>

<p>Now I'm writing some text on the screen, and I want to know the current location of the cursor.</p>

<p>The only function I found was using <code>POINT</code> and not <code>COORD</code>. So I wrote:</p>

<pre><code>VOID KeyEventProc(KEY_EVENT_RECORD ker)
{
    POINT position;
    GetCursorPos(&amp;position);

        if (position.y&lt;14 &amp;&amp; position.x&lt;9){
            if (ker.bKeyDown)
                printf("%c", ker.uChar);
        }

}
</code></pre>

<p>But the <code>POINT</code> doesn't give the same values as I need. How can I convert it? Or what is the function for getting the current <code>COORD</code>?</p>