home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 3_2004-2005.ISO / Data / Zips / AllAPI_API179141992004.psc / API / A / AllowSetForegroundWindow.api < prev    next >
Encoding:
INI File  |  2004-08-30  |  969 b   |  24 lines

  1. [NAME]
  2. AllowSetForegroundWindow
  3. [DESCRIPTION]
  4. The AllowSetForegroundWindow function enables the specified process to set the foreground window using the SetForegroundWindow function.
  5. [DECLARATION]
  6. Declare Function AllowSetForegroundWindow Lib "user32.dll" (ByVal dwProcessId As Long) As Long
  7. [VBNET]
  8. N/A
  9. [OS]
  10. Requires Windows 2000 or later; Requires Windows ME
  11. [LIBRARY]
  12. User32
  13. [PARAMETERS]
  14. ╖ dwProcessId
  15. [in] Specifies the identifier of the process that will be enabled to set the foreground window. If this parameter is ASFW_ANY, all processes will be enabled to set the foreground window.
  16. [RETURNS]
  17. If the function succeeds, the return value is nonzero.
  18.  
  19. If the function fails, the return value is zero. The function will fail if the calling process cannot set the foreground window. To get extended error information, call GetLastError. 
  20. [EXAMPLES]
  21. AllowSetForegroundWindow*B7C44612023F283F9F4815D6C2252FD0.html
  22. [RELATED]
  23. SetForegroundWindow
  24.