[ros-dev] may it is a problem(about Completion port)

Yee Jacky piziyi at gmail.com
Sat Jan 19 14:31:50 CET 2008


when we use iocp,first,we should create a port like
this --- CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0);---
But in the implementation of CreateIoCompletionPort,the beginning of  the
fuction is :

   if ( ExistingCompletionPort == NULL && FileHandle == INVALID_HANDLE_VALUE
)
   {
      SetLastError(ERROR_INVALID_PARAMETER);
      return FALSE;
   }

so ,all the application running well on MS Windows will not run correct in
ReactOS,Because they will always get the ERROR_INVALID_PARAMETER error code
when they
 call CreateIoCompletionPort like
--CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0);--

I think this is a problem,But I'm not sure!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-dev/attachments/20080119/03d0f17d/attachment.html 


More information about the Ros-dev mailing list