result=SetWindowLongPtrA(handle,GWL_EXSTYLE,WS_EX_LAYERED|WS_EX_TOOLWINDOW);
if(result==0)
{
MessageBox(handle,"Error","Error",MB_OK);
}
SetWindowPos(handle,HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
SetLayeredWindowAttributes(handle,RGB(255,0,255),0,LWA_COLORKEY);
Any ideas why this doesn't work on windows 7? The winapi documentation said something about "The SetWindowLongPtr function fails if the process that owns the window specified by the hWnd parameter is at a higher process privilege in the UIPI hierarchy than the process the calling thread resides in." Could this be a possible reason for not allowing transparency?