Official user-processes use a LayerId stored in a global state field("...ExternalLayerId") if non-zero, otherwise:
Official user-processes use a LayerId stored in a global state field("...ExternalLayerId") if non-zero, otherwise:
* When AppletResourceUserId==0, [[#CreateStrayLayer]] is used instead of the OpenLayer cmd.
* When AppletResourceUserId==0, [[#CreateStrayLayer]] is used instead of the OpenLayer cmd.
−
* When AppletResourceUserId!=0, {unknown cmd} is used and the output from that is used for LayerId with the OpenLayer cmd.
+
* When AppletResourceUserId!=0, [[AM_services|AM]] ISelfController-CreateManagedDisplayLayer is used and the output from that is used for LayerId with the OpenLayer cmd.