none
GetAvailableProcessorCount(), GetProcessorCount() missing from win32 API

    Question

  • GetAvailableProcessorCount(), GetProcessorCount() missing from win32 API

    where did they go? did they get deleted from win32 and left in .Net?

    Wednesday, September 07, 2016 3:08 AM

Answers

  • Hi Jim Michaels,

    According to the following MSDN documents, in a Win 32 Console Application of C++, we could use GetProcessorCount Function in this syntax:

    unsigned int __cdecl GetProcessorCount();

    It requires Namespace: concurrency and Header: concrtrm.h.

    But in concurrency Namespace, I have not found the GetAvailableProcessorCount() function.

    Please refer to the following document:

    GetProcessorCount Function:

    https://msdn.microsoft.com/en-us/library/dd470844.aspx

    concurrency Namespace:

    https://msdn.microsoft.com/en-us/library/dd492819.aspx

    Sincerely,

    Oscar


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Thursday, September 08, 2016 2:46 AM
    Moderator

All replies

  • Hi Jim Michaels,

    According to the following MSDN documents, in a Win 32 Console Application of C++, we could use GetProcessorCount Function in this syntax:

    unsigned int __cdecl GetProcessorCount();

    It requires Namespace: concurrency and Header: concrtrm.h.

    But in concurrency Namespace, I have not found the GetAvailableProcessorCount() function.

    Please refer to the following document:

    GetProcessorCount Function:

    https://msdn.microsoft.com/en-us/library/dd470844.aspx

    concurrency Namespace:

    https://msdn.microsoft.com/en-us/library/dd492819.aspx

    Sincerely,

    Oscar


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Thursday, September 08, 2016 2:46 AM
    Moderator
  • Hi Jim Michaels,

    Please free feel to let me know your latest result.

    Sincerely,

    Oscar


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Tuesday, September 13, 2016 5:56 AM
    Moderator