Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Looking at <a href="https://github.com/jp9000/OBS/blob/master/extras/winapifamily.h" rel="nofollow">winapifamily.h</a>, you can see that these macros are used to determine what platform you have and what API's are suitable for your platform.</p> <pre><code>/* * Windows APIs can be placed in a partition represented by one of the below bits. The * WINAPI_FAMILY value determines which partitions are available to the client code. */ #define WINAPI_PARTITION_DESKTOP 0x00000001 #define WINAPI_PARTITION_APP 0x00000002 /* * A family may be defined as the union of multiple families. WINAPI_FAMILY should be set * to one of these values. */ #define WINAPI_FAMILY_APP WINAPI_PARTITION_APP #define WINAPI_FAMILY_DESKTOP_APP (WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_APP) /* * A constant that specifies which code is available to the program's target runtime platform. * By default we use the 'desktop app' family which places no restrictions on the API surface. * To restrict the API surface to just the App API surface, define WINAPI_FAMILY to WINAPI_FAMILY_APP. */ #ifndef WINAPI_FAMILY #define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP #endif /* Macro to determine if a partition is enabled */ #define WINAPI_FAMILY_PARTITION(Partition) ((WINAPI_FAMILY &amp; Partition) == Partition) /* Macro to determine if only one partition is enabled from a set */ #define WINAPI_FAMILY_ONE_PARTITION(PartitionSet, Partition) ((WINAPI_FAMILY &amp; PartitionSet) == Partition) </code></pre> <p>So your <code>WINAPI_PARTITION_DESKTOP</code> would only be set if you are running on a Desktop family of the the system. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload