hMapFile = OpenFileMapping(FILE_MAP_ALL_ACCESS, // read/write permission
FALSE, // Do not inherit the name
"MyFileMappingObject"); // of the mapping object.
看介绍
BOOL OpenClipboard( HWND hWndNewOwner );
[in] Handle to the window to be associated with the open clipboard. If this parameter is NULL, the open clipboard is associated with the current task.
和窗口相关联的吧