CHANS reference
This is an old revision of this page, as edited by Yellows8 (talk | contribs) at 04:39, 15 June 2010. It may differ significantly from the current revision. |
This page describes the CHANS functions, objects, and types/enums that can be used by CHANS scripts. For information on using CHANS, for filenames and locations etc, see WiiConnect24.
General
This section is for info on functions etc that is used in both KD and sysmenu VMs.
KD
This section is for info on functions etc that can only be used by KD scripts for processing mail. To access imported objects functions etc, use: objname.property, where objname is the imported object name, and property is the function name etc.
Imported objects:
- NWC24
NWC24
Type | Name | Number of parameters for function | Return value for function | Possible values for enums | Description |
---|---|---|---|---|---|
Function | getStorage | 0 | 0 for failure, FILE fd otherwise | Opens storage.bin in title's wc24scr.vff under data directory. | |
Function | getReceivedMsg | 0 | Mail object on success | Gets a mail object for the received mail being processed. | |
Function | getReplyMsg | 0 | Mail object on success | Gets a mail object for replying to the mail being processed. | |
Function | isFailed | 0 | 1 for failure, zero for success | Checks for the success for the previous NWC24 object function call. | |
Enum | MSGTYPE | MSGTYPE_PUBLIC, MSGTYPE_WII_MENU | Message types, unknown what mail header makes mail "public" and "normal". |
This section is for info on functions etc that can only be used by system menu banner scripts. Fill me in!
This article is a stub. You can help WiiBrew by expanding it. |