Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CreateIoCompletionPort will support windows server 2000.

As per the msdn document is not supportable. but i written a sample program which is giving proper result in both xp and windows server 2000 also.


how its possible.

C#
int _tmain(int argc, _TCHAR* argv[])
{

    try
    {
        HANDLE  myManagerIOPort = CreateIoCompletionPort((HANDLE)INVALID_HANDLE_VALUE, NULL, 0, 0);

        if(!myManagerIOPort)
        {
            printf("Error creating communication port for manager.\r\n");
            return -1;
        }
        else
        {
            printf("Communication port is ready\n");
        }
    }
    catch(...)
    {
        printf("Exception in the CrateIoCompletion Port Exception");
    }
    return 0;

}



Output:


Communication port is ready
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900