win32 api SetProcessWindowStation怎么用?

win32 api SetProcessWindowStation怎么用?

http://blog.csdn.net/harrymeinan/article/details/8440057

https://msdn.microsoft.com/en-us/library/ms686232(VS.85).aspx

Assigns the specified window station to the calling process. This enables the process to access objects in the window station such as desktops, the clipboard, and global atoms. All subsequent operations on the window station use the access rights granted to hWinSta.