1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=utf-8">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<TITLE>OSGetLaunchCode</TITLE>
9</HEAD>
10<BODY>
11<H1>OSGetLaunchCode</H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;revolution/discnand.h&gt;</CODE></PRE>
16  <DD>
17  <PRE><CODE>u32 OSGetLaunchCode(void);</CODE></PRE>
18</DL>
19<H2>Arguments</H2>
20<P>None.</P>
21<H2>Return Values</H2>
22<P>Returns the launch code.</P>
23<H2>Description</H2>
24<P>When <A href="OSLaunchDisk.html"><CODE>OSLaunchDisk</CODE></A> has been launched, or when an application has been started by an installer launched by <A href="OSLaunchInstaller.html"><CODE>OSLaunchInstaller</CODE></A>, this function returns the launch code passed from the application that originated the launch. </P>
25<UL>
26<LI>If launched from the System menu, the code is 0.</LI>
27</UL>
28
29<H2>See Also</H2>
30<P><A href="OSLaunchDisk.html"><CODE>OSLaunchDisk</CODE></A><BR> <A href="OSLaunchInstaller.html"><CODE>OSLaunchInstaller</CODE></A><BR></P>
31<H2>Revision History</H2>
32<P>
332009/10/16 Changed the <CODE>include</CODE> file.<BR> 2008/11/18 Revised the content for the Disc Spin-Off Channel package.<BR> 2008/10/30 Revised the text.<BR> 2007/07/23 Revised the content for the Installer package.<BR>2007/04/20 Initial version.
34</P>
35
36<hr><p>CONFIDENTIAL</p></body>
37</HTML>
38