Seems also okay with hotfix in user mode. Not sure why but there is also another library which handles these commands (specifically context) although slightly differently.
...
invoke RtlInitializeExtendedContext,Context,100040h,Chunk ; Is chunk the right word?
... ; Returns 0 on success.
;----------------------------------------------
section '.idata' import data readable writeable
;===============================================
library xstate,'api-ms-win-core-xstate-l1-1-0.dll'
import xstate,\
RtlCopyExtendedContext,'RtlCopyExtendedContext',\
RtlGetEnabledExtendedFeatures,'RtlGetEnabledExtendedFeatures',\
RtlGetExtendedContextLength,'RtlGetExtendedContextLength',\
RtlGetExtendedFeaturesMask,'RtlGetExtendedFeaturesMask',\
RtlInitializeExtendedContext,'RtlInitializeExtendedContext',\
RtlLocateExtendedFeature,'RtlLocateExtendedFeature',\
RtlLocateLegacyContext,'RtlLocateLegacyContext ',\
RtlSetExtendedFeaturesMask,'RtlSetExtendedFeaturesMask'