Takes a PID-descriptor, an type-0x6 buffer, a [[#DisplayName]](which was previously used with [[#OpenDisplay]]), an u64 ExternalLayerId, and an u64 [[AM_services|AppletResourceUserId]]. Returns an output u64.
+
Takes a PID-descriptor, an type-0x6 buffer, a [[#DisplayName]](which was previously used with [[#OpenDisplay]]), an u64 ExternalLayerId, and an u64 [[AM_services|AppletResourceUserId]]. Returns an output u64 LayerHandle.
Official user-processes use an ExternalLayerId stored in a global state field if non-zero, otherwise:
Official user-processes use an ExternalLayerId stored in a global state field if non-zero, otherwise:
Line 140:
Line 140:
== CreateStrayLayer ==
== CreateStrayLayer ==
−
Takes a type-0x6 buffer, an u32, and an u64. Returns two output u64s, first u64 is an ExternalLayerId.
+
Takes a type-0x6 buffer, an u32, and an u64. Returns two output u64s: ExternalLayerId and LayerHandle.