<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ACAPI_Licensing_GetProtectionMode does not return APIPROT_NFR_MASK for cloud license in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Licensing-GetProtectionMode-does-not-return-APIPROT-NFR/m-p/712070#M11013</link>
    <description>&lt;P&gt;Hi, so I am having this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;// # AC26
#if PH_ACADUTIL_APIVER&amp;gt;=2700
GSErrCode ph::AcadGetProtData(API_ProtectionInfo&amp;amp; protInfo, GS::UniString* pConfNumber)
{
	protInfo.keySerialNumber = ACAPI_Licensing_GetSerialNumber();
	protInfo.protMode = ACAPI_Licensing_GetProtectionMode();
	protInfo.numberOfLicenses = ACAPI_Licensing_GetNumberOfLicenses();
	protInfo.keyBoxMask = ACAPI_Licensing_GetBoxMask();
	protInfo.expirationTime = ACAPI_Licensing_GetExpirationTime();
	protInfo.partnerID = ACAPI_Licensing_GetPartnerId();

	if (pConfNumber) {
		*pConfNumber = ACAPI_Licensing_GetConfigurationNumber();&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And with my cloud nfr-license APIPROT_NFR_MASK is not set, just&amp;nbsp;APIPROT_TW_MASK is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetteriHeiskari_0-1787048016699.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/104838i319E4B5202AA4FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetteriHeiskari_0-1787048016699.png" alt="PetteriHeiskari_0-1787048016699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the question is: How to detect NFR with AC26-30? Tested with AC29.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance and keep on coding!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Petteri&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2026 12:09:09 GMT</pubDate>
    <dc:creator>PetteriHeiskari</dc:creator>
    <dc:date>2026-08-18T12:09:09Z</dc:date>
    <item>
      <title>ACAPI_Licensing_GetProtectionMode does not return APIPROT_NFR_MASK for cloud license</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Licensing-GetProtectionMode-does-not-return-APIPROT-NFR/m-p/712070#M11013</link>
      <description>&lt;P&gt;Hi, so I am having this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;// # AC26
#if PH_ACADUTIL_APIVER&amp;gt;=2700
GSErrCode ph::AcadGetProtData(API_ProtectionInfo&amp;amp; protInfo, GS::UniString* pConfNumber)
{
	protInfo.keySerialNumber = ACAPI_Licensing_GetSerialNumber();
	protInfo.protMode = ACAPI_Licensing_GetProtectionMode();
	protInfo.numberOfLicenses = ACAPI_Licensing_GetNumberOfLicenses();
	protInfo.keyBoxMask = ACAPI_Licensing_GetBoxMask();
	protInfo.expirationTime = ACAPI_Licensing_GetExpirationTime();
	protInfo.partnerID = ACAPI_Licensing_GetPartnerId();

	if (pConfNumber) {
		*pConfNumber = ACAPI_Licensing_GetConfigurationNumber();&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And with my cloud nfr-license APIPROT_NFR_MASK is not set, just&amp;nbsp;APIPROT_TW_MASK is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetteriHeiskari_0-1787048016699.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/104838i319E4B5202AA4FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetteriHeiskari_0-1787048016699.png" alt="PetteriHeiskari_0-1787048016699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the question is: How to detect NFR with AC26-30? Tested with AC29.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance and keep on coding!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Petteri&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2026 12:09:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Licensing-GetProtectionMode-does-not-return-APIPROT-NFR/m-p/712070#M11013</guid>
      <dc:creator>PetteriHeiskari</dc:creator>
      <dc:date>2026-08-18T12:09:09Z</dc:date>
    </item>
  </channel>
</rss>

