locked
Supported api test in WACK 4.0

    Question

  • Hi,

    CreateThread wasn't previously allowed so we emulated it, then it become allowed in WACK3.4 (along with WinSock and a bunch of other APIs), excellent

    We're now in the process of moving to Visual studio 2015 with WACK 4.0 where it is now being reported as an unsupported API but it compiles OK.

    Is this a bug in WACK 4.0 and it will continue to be supported?

    Thanks

    Tuesday, February 17, 2015 2:48 PM

Answers

  • Interesting. It looks like there's at least a doc error here.

    For now I'd recommend you continue using the current version of the WACK rather than the preview version.

    --Rob

    Wednesday, February 18, 2015 11:14 PM
    Moderator

All replies

  • WACK is correct. CreateThread is still not supported in Windows Store apps. See the docs at https://msdn.microsoft.com/en-us/library/windows/desktop/ms682453(v=vs.85).aspx 

    Minimum supported client

    Windows XP [desktop apps only]

    Minimum supported server

    Windows Server 2003 [desktop apps only]

    Minimum supported phone

    Windows Phone 8.1

    You're probably thinking of it being now allowed in Windows Phone 8.1 (Update). 

    Tuesday, February 17, 2015 3:52 PM
    Moderator
  • Thanks for the reply.

    Why does it pass the test on WACK3.4?

    It compiles on VS2013 update 4 as CreateThread is defined in processthreadsapi.h (Windows kits/8.1/include/um) is under:

    #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)

    The documentation here:

    https://msdn.microsoft.com/en-us/library/windows/desktop/ms682453%28v=vs.85%29.aspx

    States:

    Windows 8.1 and Windows Server 2012 R2: This function is supported for Windows Store apps on Windows 8.1, Windows Server 2012 R2, and later.

    This is all very confusing!

    Tuesday, February 17, 2015 5:21 PM
  • Interesting. It looks like there's at least a doc error here.

    For now I'd recommend you continue using the current version of the WACK rather than the preview version.

    --Rob

    Wednesday, February 18, 2015 11:14 PM
    Moderator
  • Thanks Rob, Will do.

    Hope this continues to be supported rather than a doc & include file error (if not available it should be #if under WINAPI_PARTITION_DESKTOP)

    Thursday, February 19, 2015 1:19 PM