אלו הן המגבלות : (מתוך ה MSDN)The system restricts which processes can set the foreground window. A process can set the foreground window only if one of the following conditions is true:
- The process is the foreground process.
- The process was started by the foreground process.
- The process received the last input event.
- There is no foreground process.
- The foreground process is being debugged.
- The foreground is not locked (see LockSetForegroundWindow).
- The foreground lock time-out has expired (see SPI_GETFOREGROUNDLOCKTIMEOUT in SystemParametersInfo).
- No menus are active.
מההודעה קצת לא הבנתי מה אתה עושה, אתה מנסה לפתוח קובץ מה-Explorer ואז לעשות שהתוכנה שלך תהיה בחזית?
מה התוכנה שלך עושה בעלייה? היא כנראה לא הופכת להיות ה Foreground process
תבדוק עם הקוד שלך האם זה התהליך הופך להיות ה Process האקטיבי
http://stackoverflow.com/questions/884256/how-to-determine-if-an-process-is-the-currently-active-foreground-application