here is a C++ Code for the XHair:
[highlight=cpp]void DrawXHair(int y, int x, HDC hwdc, COLORREF col)
{
SetPixel(hwdc, x, y, col);
SetPixel(hwdc, x, y - 1, col);
SetPixel(hwdc, x, y + 1, col);
SetPixel(hwdc, x - 1, y, col);
SetPixel(hwdc, x + 1, y, col);
SetPixel(hwdc, x, y - 2, col);
SetPixel(hwdc, x, y + 2, col);
SetPixel(hwdc, x - 2, y, col);
SetPixel(hwdc, x + 2, y, col);
SetPixel(hwdc, x, y - 3, col);
SetPixel(hwdc, x, y + 3, col);
SetPixel(hwdc, x - 3, y, col);
SetPixel(hwdc, x + 3, y, col);
SetPixel(hwdc, x, y - 4, col);
SetPixel(hwdc, x, y + 4, col);
SetPixel(hwdc, x - 4, y, col);
SetPixel(hwdc, x + 4, y, col);
SetPixel(hwdc, x, y - 5, col);
SetPixel(hwdc, x, y + 5, col);
SetPixel(hwdc, x - 5, y, col);
SetPixel(hwdc, x + 5, y, col);
SetPixel(hwdc, x, y - 6, col);
SetPixel(hwdc, x, y + 6, col);
SetPixel(hwdc, x - 6, y, col);
SetPixel(hwdc, x + 6, y, col);
SetPixel(hwdc, x, y - 7, col);
SetPixel(hwdc, x, y + 7, col);
SetPixel(hwdc, x - 7, y, col);
SetPixel(hwdc, x + 7, y, col);
SetPixel(hwdc, x, y - 8, col);
SetPixel(hwdc, x, y + 8, col);
SetPixel(hwdc, x - 8, y, col);
SetPixel(hwdc, x + 8, y, col);
SetPixel(hwdc, x, y - 9, col);
SetPixel(hwdc, x, y + 9, col);
SetPixel(hwdc, x - 9, y, col);
SetPixel(hwdc, x + 9, y, col);
SetPixel(hwdc, x, y - 10, col);
SetPixel(hwdc, x, y + 10, col);
SetPixel(hwdc, x - 10, y, col);
SetPixel(hwdc, x + 10, y, col);
}
[/highlight]
How to use:
[highlight=cpp]
HDC hwdc = GetDC(FindWindowA(NULL, "alterIWnet"));
int x = GetSystemMetrics( 1 ) / 2;
int y = GetSystemMetrics( 0 ) / 2;
DrawXHair(y, x, hwdc, D3DCOLOR_RGBA(255, 200, 200, 100));[/highlight]