I think you want the GetCursorPos function 11874:




#include <stdio.h>
#include <windows.h>


int main(void)