libctru v2.5.0
|
ACT (Account) Services. More...
Go to the source code of this file.
Data Structures | |
struct | CoppaCodeMailData |
Coppa Code Mail Data Structure. More... | |
struct | CFLStoreData |
Mii CFLStoreData (CTR Face Library Store Data) structure. More... | |
struct | BirthDate |
Birth date structure. More... | |
struct | AccountInfo |
Account info structure. More... | |
struct | AccountTimezone |
Account Timezone structure. More... | |
struct | TimezoneList |
Timezone List structure. More... | |
struct | EulaInfo |
EULA Info structure. More... | |
struct | ExistentServerAccountData |
Existent Server Account Data structure. More... | |
struct | EulaEntry |
EULA entry header structure. More... | |
struct | SupportContext |
Support Context structure. More... | |
struct | EulaList |
EULA list structure. More... | |
struct | DeviceInfo |
Device Info structure. More... | |
struct | NexServiceToken |
NEX service token structure. More... | |
struct | CreditCardInfo |
Credit Card Info structure. More... | |
struct | IndependentServiceTokenV1 |
V1 Independent service token structure. More... | |
struct | IndependentServiceTokenV2 |
V2 Independent service token structure. More... | |
struct | AccountServerTypes |
Account server types structure (raw format) More... | |
struct | AccountServerTypesStr |
Account server types structure (string format) More... | |
struct | AccountAccessToken |
Account access token structure. More... | |
Typedefs | |
typedef u8 | ActUuid[ACT_UUID_LEN] |
typedef char | ActNnasSubdomain[ACT_NNAS_SUBDOMAIN_LEN] |
typedef char | AccountId[ACCOUNT_ID_LEN] |
typedef char | AccountPassword[ACCOUNT_PASSWORD_LEN] |
typedef char | AccountMailAddress[ACCOUNT_EMAIL_LEN] |
Functions | |
Result | actInit (bool forceUser) |
Initializes ACT services. | |
void | actExit (void) |
Exits ACT services. | |
Handle * | actGetSessionHandle (void) |
Get the ACT user/admin service handle. | |
Result | ACT_Initialize (u32 sdkVersion, u32 sharedMemSize, Handle sharedMem) |
Initializes the current ACT session. | |
Result | ACT_ResultToErrorCode (Result code) |
Returns a support error code (XXX-YYYY) for the given ACT result code. | |
Result | ACT_GetLastResponseResult () |
Gets the result of the last internal operation. | |
Result | ACT_Cancel () |
Cancels any currently running async operation. | |
Result | ACT_GetCommonInfo (void *output, u32 outputSize, u32 infoType) |
Retrieves information not specific to any one account. | |
Result | ACT_GetAccountInfo (void *output, u32 outputSize, u8 accountSlot, u32 infoType) |
Retrieves information of a certain account. | |
Result | ACT_GetAsyncResult (u32 *outReadSize, void *output, u32 outputSize, u32 requestType) |
Returns the data resulting from an async request. | |
Result | ACT_GetMiiImage (u32 *outSize, void *output, u32 outputSize, u8 accountSlot, u8 miiImageType) |
Gets one of the Mii images of a certain account. | |
Result | ACT_SetNfsPassword (u8 accountSlot, char *password) |
Sets the NFS (Nintendo Friend Server) password for a certain account. | |
Result | ACT_SetIsApplicationUpdateRequired (bool required) |
Sets the IsApplicationUpdateRequired field in the internal account manager. | |
Result | ACT_AcquireEulaList (u8 countryCode, Handle completionEvent) |
Acquires a list of EULA agreements for the specified country. | |
Result | ACT_AcquireTimezoneList (u8 countryCode, u8 languageCode, Handle completionEvent) |
Acquires a list of timezones for the specified country and language combination. | |
Result | ACT_GenerateUuid (ActUuid *uuid, u32 uniqueId) |
Generates a UUID. | |
Result | ACT_GetUuid (ActUuid *uuid, u8 accountSlot, u32 uniqueId) |
Gets a specific account's UUID. | |
Result | ACT_FindSlotNoByUuid (u8 *accountSlot, ActUuid *uuid, u32 uniqueId) |
Finds the account slot number of the account having the specified UUID. | |
Result | ACT_Save () |
Saves all pending changes to the ACT system save data. | |
Result | ACT_GetTransferableId (u64 *transferableId, u8 accountSlot, u8 saltValue) |
Returns a TransferableID for a certain account. | |
Result | ACT_AcquireNexServiceToken (u8 accountSlot, u32 serverId, bool doParentralControlsCheck, u32 callerProcessId, Handle completionEvent) |
Acquires an account-specific service token for a NEX server. | |
Result | ACT_GetNexServiceToken (NexServiceToken *token) |
Gets a NEX service token requested using ACT_AcquireNexServiceToken. | |
Result | ACT_AcquireIndependentServiceToken (u8 accountSlot, char *clientId, u32 cacheDuration, bool doParentalControlsCheck, bool shared, u32 callerProcessId, Handle completionEvent) |
Requests a V1 independent service token for a specific account. | |
Result | ACT_GetIndependentServiceToken (IndependentServiceTokenV1 *token) |
Gets a V1 independent service token requested using ACT_AcquireIndependentServiceToken. | |
Result | ACT_AcquireAccountInfo (u8 accountSlot, u32 infoType, Handle completionEvent) |
Acquires account information for the specified account. | |
Result | ACT_AcquireAccountIdByPrincipalId (u32 *principalIds, u32 principalIdsSize, u8 unk, Handle completionEvent) |
Acquires account IDs from a list of principal IDs. | |
Result | ACT_AcquirePrincipalIdByAccountId (AccountId *accountIds, u32 accountIdsSize, Handle completionHandle) |
Acquires principal IDs from a list of account IDs. | |
Result | ACT_AcquireMii (u32 *persistentIds, u32 persistentIdsSize, Handle completionEvent) |
Acquires Miis corresponding to a given list of persistent IDs. | |
Result | ACT_AcquireAccountInfoRaw (u8 accountSlot, Handle completionEvent) |
Acquires raw (XML) account info for the specified account. | |
Result | ACT_GetCachedIndependentServiceToken (IndependentServiceTokenV1 *token, u8 accountSlot, char *clientId, u32 cacheDuration, bool doParentralControlsCheck, bool shared) |
Gets a cached V1 independent service token for a specific account. | |
Result | ACT_InquireMailAddressAvailability (AccountMailAddress *mailAddress, Handle completionEvent) |
Inquires whether or not the given email address is available for creating a new account. | |
Result | ACT_AcquireEula (u8 countryCode, char *languageCode, Handle completionEvent) |
Acquires the EULA for the given country and language combination. | |
Result | ACT_AcquireEulaLanguageList (u8 countryCode, Handle completionEvent) |
Acquires a list of languages the EULA is available in for a given country. | |
Result | ACT_AcquireIndependentServiceTokenV2 (u8 accountSlot, char *clientId, u32 cacheDuration, bool doParentalControlsCheck, bool shared, u32 callerProcessId, Handle completionEvent) |
Requests a V2 independent service token for a specific account. | |
Result | ACT_GetIndependentServiceTokenV2 (IndependentServiceTokenV2 *token) |
Gets a V2 independent service token requested using ACT_AcquireIndependentServiceTokenV2. | |
Result | ACT_GetCachedIndependentServiceTokenV2 (IndependentServiceTokenV2 *token, u8 accountSlot, char *clientId, u32 cacheDuration, bool doParentralControlsCheck, bool shared) |
Gets a cached V2 independent service token for a specific account. | |
Result | ACTA_SwapAccounts (u8 accountSlot1, u8 accountSlot2) |
Swaps the account slot numbers of two accounts. | |
Result | ACTA_CreateConsoleAccount () |
Creates a new local console account. | |
Result | ACTA_CommitConsoleAccount (u8 accountSlot) |
Sets a local console account as committed. | |
Result | ACTA_UnbindServerAccount (u8 accountSlot, bool completely) |
Clears (but does not delete) account data for the given account slot. | |
Result | ACTA_DeleteConsoleAccount (u8 accountSlot) |
Deletes a local console account. | |
Result | ACTA_LoadConsoleAccount (u8 accountSlot, bool doPasswordCheck, AccountPassword *password, bool useNullPassword, bool dryRun) |
Loads ("logs in to") a local console account. | |
Result | ACTA_UnloadConsoleAccount () |
Unloads the currently loaded local console account. | |
Result | ACTA_EnableAccountPasswordCache (u8 accountSlot, bool enabled) |
Enables or disables the account password cache for a specific account. | |
Result | ACTA_SetDefaultAccount (u8 accountSlot) |
Sets the default account that is loaded when the ACT module is initialized. | |
Result | ACTA_ReplaceAccountId (u8 accountSlot) |
Replaces the AccountId with the AssignedAccountId for a specific account. | |
Result | ACTA_GetSupportContext (SupportContext *supportContext, u8 accountSlot) |
Creates a support context for a specific account. | |
Result | ACTA_SetHostServerSettings (u8 accountSlot, u8 nnasType, u8 nfsType, u8 nfsNo) |
Sets server environment settings for a specific account. | |
Result | ACTA_SetDefaultHostServerSettings (u8 nnasType, u8 nfsType, u8 nfsNo) |
Sets default server environment settings. | |
Result | ACTA_SetHostServerSettingsStr (u8 accountSlot, ActNnasSubdomain *nnasSubdomain, NfsTypeStr *nfsTypeStr) |
Sets server environment settings (in string form) for a specific account. | |
Result | ACTA_SetDefaultHostServerSettingsStr (ActNnasSubdomain *nnasSubdomain, NfsTypeStr *nfsTypeStr) |
Sets default server environment settings (in string form). | |
Result | ACTA_SetPersistentIdHead (u32 head) |
Sets the internal base value for generating new persistent IDs. | |
Result | ACTA_SetTransferableIdCounter (u16 counter) |
Sets the internal base value for generating new transferable IDs. | |
Result | ACTA_UpdateMiiData (u8 accountSlot, CFLStoreData *miiData, MiiScreenName *screenName) |
Updates a specific account's Mii data and screen name. | |
Result | ACTA_UpdateMiiImage (u8 accountSlot, u8 miiImageType, void *image, u32 imageSize) |
Updates a Mii image of a specific account. | |
Result | ACTA_InquireAccountIdAvailability (u8 accountSlot, AccountId *accountId, Handle completionEvent) |
Checks whether or not the given account ID is available for creating a new server account. | |
Result | ACTA_BindToNewServerAccount (u8 accountSlot, AccountId *accountId, AccountMailAddress *mailAddress, AccountPassword *password, bool isParentEmail, bool marketingFlag, bool offDeviceFlag, s64 birthDateTimestatmp, u8 gender, u32 region, AccountTimezone *timezone, EulaInfo *eulaInfo, s64 parentalConsentTimestamp, u32 parentalConsentId, Handle completionEvent) |
Links a new server account to a local console account. | |
Result | ACTA_BindToExistentServerAccount (u8 accountSlot, AccountId *accountId, AccountMailAddress *mailAddress, AccountPassword *password, Handle completionEvent) |
Links a local console account to an existing server account. | |
Result | ACTA_InquireBindingToExistentServerAccount (u8 accountSlot, AccountId *accountId, AccountMailAddress *mailAddress, AccountPassword *password, Handle completionEvent) |
Acquires information about an existing server account. | |
Result | ACTA_DeleteServerAccount (u8 accountSlot, Handle completionEvent) |
Deletes a server account. | |
Result | ACTA_AcquireAccountTokenEx (u8 accountSlot, AccountPassword *password, bool useNullPassword, Handle completionEvent) |
Acquires an account token for a specific account. | |
Result | ACTA_AgreeEula (u8 accountSlot, EulaInfo *eulaInfo, s64 agreementTimestamp, Handle completionEvent) |
Submits a EULA agreement to the account server. | |
Result | ACTA_SyncAccountInfo (u8 accountSlot, Handle completionEvent) |
Reloads account information from the server for a specific account. | |
Result | ACTA_InvalidateAccountToken (u8 accountSlot, u32 invalidationActionMask) |
Invalidates a specific account's access token in different ways. | |
Result | ACTA_UpdateAccountPassword (u8 accountSlot, AccountPassword *newPassword, Handle completionEvent) |
Updates the account password for a specific account. | |
Result | ACTA_ReissueAccountPassword (u8 accountSlot, Handle completionEvent) |
Requests the issuing of a temporary password (valid for 24 hours) to the email address associated with a specific account. | |
Result | ACTA_SetAccountPasswordInput (u8 accountSlot, AccountPassword *passwordInput) |
Sets the account password input for a specific account. | |
Result | ACTA_UploadMii (u8 accountSlot, Handle completionEvent) |
Uploads the Mii data of a specific account to the account server. | |
Result | ACTA_InactivateDeviceAssociation (u8 accountSlot, Handle completionEvent) |
Inactivates the device association for a specific account. | |
Result | ACTA_ValidateMailAddress (u8 accountSlot, u32 confirmationCode, Handle completionEvent) |
Validates the email address of a specific account using the code received via the confirmation email. | |
Result | ACTA_SendPostingApprovalMail (u8 accountSlot, AccountMailAddress *parentalEmail, Handle completionEvent) |
Requests parental approval for a specific account. | |
Result | ACTA_SendConfirmationMail (u8 accountSlot, Handle completionEvent) |
Requests the email address confirmation mail to be resent for a specific account. | |
Result | ACTA_SendConfirmationMailForPin (u8 accountSlot, AccountMailAddress *parentalEmail, Handle completionEvent) |
Registers a parental email address to be used in case the parental controls PIN has been forgotten for a specific account. | |
Result | ACTA_SendMasterKeyMailForPin (u8 accountSlot, u32 masterKey, AccountMailAddress *parentalEmail, Handle completionEvent) |
Sends the master key for resetting parental controls to a parental email for a specific account. | |
Result | ACTA_ApproveByCreditCard (u8 accountSlot, CreditCardInfo *cardInfo, Handle completionEvent) |
Requests COPPA parental consent using credit card information. | |
Result | ACTA_SendCoppaCodeMail (u8 accountSlot, u32 principalId, Handle completionEvent) |
Requests a COPPA code for a specific account. | |
Result | ACTA_SetIsMiiUpdated (u8 accountSlot, bool isDirty) |
Set a flag in a specifc account's data that determines whether or not it is necessary to upload the account Mii data to the account server. | |
Result | ACTA_ReserveTransfer (u8 accountSlot, DeviceInfo *newDevice, char *operatorData, u32 operatorSize, Handle completionEvent) |
Initializes a server account transfer of a specific account to another device. | |
Result | ACTA_CompleteTransfer (u8 accountSlot, Handle completionEvent) |
Finalizes a server account transfer of a specifc account to another device. | |
Result | ACTA_InactivateAccountDeviceAssociation (u8 accountSlot, Handle completionEvent) |
Inactivates the account-device association for a specific account. | |
Result | ACTA_SetNetworkTime (s64 timestamp) |
Set the internal network time field. | |
Result | ACTA_UpdateAccountInfo (u8 accountSlot, char *xmlData, u32 xmlDataSize, Handle completionEvent) |
Updates the account info of a specific account using raw XML data. | |
Result | ACTA_UpdateAccountMailAddress (u8 accountSlot, AccountMailAddress *newEmail, Handle completionEvent) |
Updates the email address of a specific account. | |
Result | ACTA_DeleteDeviceAssociation (u8 accountSlot, Handle completionEvent) |
Deletes the device association for a specific account. | |
Result | ACTA_DeleteAccountDeviceAssociation (u8 accountSlot, Handle completionEvent) |
Deletes the account-device association for a specific account. | |
Result | ACTA_CancelTransfer (u8 accountSlot, Handle completionEvent) |
Cancels a pending server account transfer of a specific account to another device. | |
Result | ACTA_ReloadAndBlockSaveData (Handle unloadFinishedEvent, Handle remountAndBlockEvent) |
Cancels any running HTTP requests, saves all pending changes to the system save data, then signals unloadFinishedEvent. | |
Result | ACTA_ReserveServerAccountDeletion (u8 accountSlot, Handle completionEvent) |
Initializes server-side account deletion for a specific account. | |
ACT (Account) Services.
enum ACT_AsyncRequestType |
Enumerator | |
---|---|
REQUEST_INQUIRE_BINDING_TO_EXISTENT_SERVER_ACCOUNT | ExistentServerAccountData struct. |
REQUEST_BIND_TO_EXISTENT_SERVER_ACCOUNT | u32, parentalConsentApprovalId |
REQUEST_ACQUIRE_EULA | EulaList structure (dynamically sized) |
REQUEST_ACQUIRE_EULA_LIST | EulaList structure (dynamically sized) |
REQUEST_ACQUIRE_EULA_LANGUAGE_LIST | EulaList structure with only the languageNameOffsets populated (dynamically sized) |
REQUEST_ACQUIRE_TIMEZONE_LIST | TimezoneList structure. |
REQUEST_ACQUIRE_ACCOUNT_INFO | INFO_TYPE_MAIL_ADDRESS: AccountMailAddress. |
REQUEST_ACQUIRE_ACCOUNT_ID_BY_PRINCIPAL_ID_MULTI | AccountId[count]. |
REQUEST_ACQUIRE_ACCOUNT_ID_BY_PRINCIPAL_ID | AccountId. |
REQUEST_ACQUIRE_PRINCIPAL_ID_BY_ACCOUNT_ID_MULTI | u32[count] |
REQUEST_ACQUIRE_PRINCIPAL_ID_BY_ACCOUNT_ID | u32 |
REQUEST_APPROVE_BY_CREDIT_CARD | u32, approvalId |
REQUEST_SEND_COPPA_CODE_MAIL | CoppaCodeMailData structure. |
REQUEST_ACQUIRE_MII | CFLStoreData[count]. |
REQUEST_ACQUIRE_ACCOUNT_INFO_RAW | char[0xC00+1], NULL-terminate ASCII raw profile XML data |
enum ACT_InfoType |
Enum for common / account specific info types.
Enumerator | |
---|---|
INFO_TYPE_COMMON_NUM_ACCOUNTS | u8 |
INFO_TYPE_COMMON_CURRENT_ACCOUNT_SLOT | u8 |
INFO_TYPE_COMMON_DEFAULT_ACCOUNT_SLOT | u8 |
INFO_TYPE_COMMON_NETWORK_TIME_DIFF | s64, difference between server time and device time in nanoseconds. |
INFO_TYPE_PERSISTENT_ID | u32 |
INFO_TYPE_COMMON_TRANSFERABLE_ID_BASE | u64 |
INFO_TYPE_TRANSFERABLE_ID_BASE | u64 |
INFO_TYPE_MII | |
INFO_TYPE_ACCOUNT_ID | AccountId. |
INFO_TYPE_MAIL_ADDRESS | AccountMailAddress. |
INFO_TYPE_BIRTH_DATE | BirthDate structure. |
INFO_TYPE_COUNTRY_NAME | char[2+1] |
INFO_TYPE_PRINCIPAL_ID | u32 |
INFO_TYPE_IS_PASSWORD_CACHE_ENABLED | bool |
INFO_TYPE_ACCOUNT_INFO | AccountInfo structure. |
INFO_TYPE_GENDER |
u8, F = 0, M = 1 |
INFO_TYPE_LAST_AUTHENTICATION_RESULT | Result. |
INFO_TYPE_ASSIGNED_ACCOUNT_ID | AccountId. |
INFO_TYPE_PARENTAL_CONTROL_SLOT_NUMBER | u8 |
INFO_TYPE_SIMPLE_ADDRESS_ID | u32 |
INFO_TYPE_UTC_OFFSET | s64 |
INFO_TYPE_IS_COMMITTED | bool |
INFO_TYPE_MII_NAME | MiiScreenName. |
INFO_TYPE_NFS_PASSWORD | char[0x10+1] |
INFO_TYPE_HAS_ECI_VIRTUAL_ACCOUNT | bool |
INFO_TYPE_TIMEZONE_ID | char[0x40+1] |
INFO_TYPE_IS_MII_UPDATED | bool |
INFO_TYPE_IS_MAIL_ADDRESS_VALIDATED | bool |
INFO_TYPE_ACCOUNT_ACCESS_TOKEN | AccountAccessToken structure. |
INFO_TYPE_COMMON_IS_APPLICATION_UPDATE_REQUIRED | bool |
INFO_TYPE_COMMON_DEFAULT_ACCOUNT_SERVER_TYPES | |
INFO_TYPE_IS_SERVER_ACCOUNT_DELETED | bool |
INFO_TYPE_MII_IMAGE_URL | char[0x100+1] |
INFO_TYPE_ASSIGNED_PRINCIPAL_ID | u32 |
INFO_TYPE_ACCOUNT_ACCESS_TOKEN_STATE | u32, AccountAccessTokenState enum |
INFO_TYPE_ACCOUNT_SERVER_ENVIRONMENT | AccountServerTypesStr structure. |
INFO_TYPE_COMMON_DEFAULT_ACCOUNT_SERVER_ENVIRONMENT | AccountServerTypesStr structure. |
INFO_TYPE_COMMON_DEVICE_HASH | u8[8] |
INFO_TYPE_FP_LOCAL_ACCOUNT_ID | u8 |
INFO_TYPE_AGE | u16 |
INFO_TYPE_IS_ENABLED_RECEIVE_ADS | bool |
INFO_TYPE_IS_OFF_DEVICE_ENABLED | bool |
INFO_TYPE_TRANSLATED_SIMPLE_ADDRESS_ID | u32 |
enum MiiImageType |
Result ACT_AcquireAccountIdByPrincipalId | ( | u32 * | principalIds, |
u32 | principalIdsSize, | ||
u8 | unk, | ||
Handle | completionEvent | ||
) |
Acquires account IDs from a list of principal IDs.
principalIds | Pointer to the input principal IDs. |
principalIdsSize | Size of the input principal IDs buffer. |
unk | Unknown value. Must be 0. |
completionEvent | The event handle to signal once the request has finished. |
Acquires account information for the specified account.
accountSlot | The account slot number to acquire information for. |
infoType | The type of info to obtain. (only INFO_TYPE_MAIL_ADDRESS is supported.) |
completionEvent | The event handle to signal once the request has finished. |
Acquires raw (XML) account info for the specified account.
accountSlot | The account slot number of the account to acquire raw info for. |
Acquires the EULA for the given country and language combination.
countryCode | The country code of the country for the EULA. |
languageCode | The 2-character ISO 639 Set 1 language code for the EULA. |
completionEvent | The event handle to signal once the request has finished. |
Acquires a list of languages the EULA is available in for a given country.
countryCode | The country code to acquire the EULA language list for. |
completionEvent | The event handle to signal once the request has finished. |
Acquires a list of EULA agreements for the specified country.
countryCode | The country code of the country to acquire EULA agreements for. |
completionEvent | The event handle to signal when the request has finished. |
Result ACT_AcquireIndependentServiceToken | ( | u8 | accountSlot, |
char * | clientId, | ||
u32 | cacheDuration, | ||
bool | doParentalControlsCheck, | ||
bool | shared, | ||
u32 | callerProcessId, | ||
Handle | completionEvent | ||
) |
Requests a V1 independent service token for a specific account.
accountSlot | The account slot number of the account to request the token with. |
clientId | The client ID to use for requesting the independent service token. |
cacheDuration | The duration in seconds to cache the token. If a token was requested within the past cacheDuration seconds, this command returns that token instead of requesting a new one. Passing 0 will cause ACT to always request a new token. |
doParentalControlsCheck | Whether or not to perform a parental controls check before requesting the token. (unused) |
shared | Whether or not this token should be shared with other processes. If set to false, it will only be accessible to the process with the given process ID. |
callerProcessId | The process ID of the process requesting the token. |
completionEvent | The event handle to signal once the request has finished. |
Result ACT_AcquireIndependentServiceTokenV2 | ( | u8 | accountSlot, |
char * | clientId, | ||
u32 | cacheDuration, | ||
bool | doParentalControlsCheck, | ||
bool | shared, | ||
u32 | callerProcessId, | ||
Handle | completionEvent | ||
) |
Requests a V2 independent service token for a specific account.
accountSlot | The account slot number of the account to request the token with. |
clientId | The client ID to use for requesting the independent service token. |
cacheDuration | The duration in seconds to cache the token. If a token was requested within the past cacheDuration seconds, this command returns that token instead of requesting a new one. Passing 0 will cause ACT to always request a new token. |
doParentalControlsCheck | Whether or not to perform a parental controls check before requesting the token. (unused) |
shared | Whether or not this token should be shared with other processes. If set to false, it will only be accessible to the process with the given process ID. |
callerProcessId | The process ID of the process requesting the token. |
completionEvent | The event handle to signal once the request has finished. |
Acquires Miis corresponding to a given list of persistent IDs.
persistentIds | Pointer to input persistent IDs to use. |
persistentIdsSize | Size of the input persistent IDs buffer. |
completionEvent | The event handle to signal once the request has finished. |
Result ACT_AcquireNexServiceToken | ( | u8 | accountSlot, |
u32 | serverId, | ||
bool | doParentralControlsCheck, | ||
u32 | callerProcessId, | ||
Handle | completionEvent | ||
) |
Acquires an account-specific service token for a NEX server.
accountSlot | The account slot number of the account to use for acquiring the token. |
serverId | The NEX server ID to request a service token for. |
doParentalControlsCheck | Whether or not to perform a parental controls check before requesting the token. (unused) |
callerProcessId | The process ID of the process requesting the token. |
completionEvent | The event handle to signal once the request has finished. |
Result ACT_AcquirePrincipalIdByAccountId | ( | AccountId * | accountIds, |
u32 | accountIdsSize, | ||
Handle | completionHandle | ||
) |
Acquires principal IDs from a list of account IDs.
accountIds | Pointer to input account IDs. |
accountIdsSize | Size of the input account IDs buffer. |
completionEvent | The event handle to signal once the request has finished. |
Acquires a list of timezones for the specified country and language combination.
countryCode | The country code of the country to acquire time zones for. |
language | code The language code of the language to acquire the time zones in. |
completionEvent | The event handle to signal when the request has finished. |
Finds the account slot number of the account having the specified UUID.
accountSlot | Pointer to output the account slot number to. |
uuid | Pointer to the UUID to find the account slot number for. |
uniqueId | The unique ID to use during internal UUID generation. Special values include ACT_UUID_REGULAR and ACT_UUID_CURRENT_PROCESS . |
Generates a UUID.
uuid | Pointer to output the generated UUID to. |
uniqueId | The unique ID to use during generation. Special values include ACT_UUID_REGULAR and ACT_UUID_CURRENT_PROCESS . |
Retrieves information of a certain account.
output | Pointer to buffer to output the data to. |
outputSize | Size of the output buffer. |
accountSlot | The account slot number of the account to retrieve information for. |
infoType | The type of data to retrieve. |
Returns the data resulting from an async request.
outReadSize | Pointer to output the number of retrieved bytes to. |
output | Pointer to buffer to output the data to. |
outputSize | Size of the output buffer. |
requestType | The type of async request to retrieve data for. |
Result ACT_GetCachedIndependentServiceToken | ( | IndependentServiceTokenV1 * | token, |
u8 | accountSlot, | ||
char * | clientId, | ||
u32 | cacheDuration, | ||
bool | doParentralControlsCheck, | ||
bool | shared | ||
) |
Gets a cached V1 independent service token for a specific account.
accountSlot | The account slot number of the account to get the token for. |
clientId | The client ID to use for the cache lookup. |
cacheDuration | The duration in seconds ago this token must have been requested in at least for it to be eligible for retrieval. |
doParentalControlsCheck | Whether or not to perform a parental controls check before getting the token. (unused) |
shared | Whether or not to only look for shared (non-process-specific) tokens in the cache. |
Result ACT_GetCachedIndependentServiceTokenV2 | ( | IndependentServiceTokenV2 * | token, |
u8 | accountSlot, | ||
char * | clientId, | ||
u32 | cacheDuration, | ||
bool | doParentralControlsCheck, | ||
bool | shared | ||
) |
Gets a cached V2 independent service token for a specific account.
accountSlot | The account slot number of the account to get the token for. |
clientId | The client ID to use for the cache lookup. |
cacheDuration | The duration in seconds ago this token must have been requested in at least for it to be eligible for retrieval. |
doParentalControlsCheck | Whether or not to perform a parental controls check before getting the token. (unused) |
shared | Whether or not to only look for shared (non-process-specific) tokens in the cache. |
Retrieves information not specific to any one account.
output | Pointer to buffer to output the data to. |
outputSize | Size of the output buffer. |
infoType | The type of data to retrieve. |
Result ACT_GetIndependentServiceToken | ( | IndependentServiceTokenV1 * | token | ) |
Gets a V1 independent service token requested using ACT_AcquireIndependentServiceToken.
token | Pointer to output the V1 independent service token to. |
Result ACT_GetIndependentServiceTokenV2 | ( | IndependentServiceTokenV2 * | token | ) |
Gets a V2 independent service token requested using ACT_AcquireIndependentServiceTokenV2.
token | Pointer to output the V2 independent service token to. |
Result ACT_GetMiiImage | ( | u32 * | outSize, |
void * | output, | ||
u32 | outputSize, | ||
u8 | accountSlot, | ||
u8 | miiImageType | ||
) |
Gets one of the Mii images of a certain account.
outSize | Pointer to output the raw size of the image to. |
output | Pointer to output the image data to. |
outputSize | Size of the output buffer. |
accountSlot | The account slot number of the account to get the Mii image for. |
miiImageType | The type of the Mii image to get. |
Result ACT_GetNexServiceToken | ( | NexServiceToken * | token | ) |
Gets a NEX service token requested using ACT_AcquireNexServiceToken.
token | Pointer to output the NEX service token data to. |
Returns a TransferableID for a certain account.
transferableId | Pointer to output the generated TransferableID to. |
accountSlot | The account slot number of the account to generate the TransferableID for. Special values include ACT_TRANSFERABLE_ID_BASE_COMMON and ACT_TRANSFERABLE_ID_BASE_CURRENT_ACCOUNT . |
saltValue | The value to use as a salt during generation. |
Gets a specific account's UUID.
uuid | Pointer to output the UUID to. |
uniqueId | The unique ID to use during the retrieval of the UUID. Special values include ACT_UUID_REGULAR and ACT_UUID_CURRENT_PROCESS . |
Initializes the current ACT session.
sdkVersion | The SDK version of the client process. |
sharedMemSize | The size of the shared memory block. |
sharedMem | Handle to the shared memory block. |
Result ACT_InquireMailAddressAvailability | ( | AccountMailAddress * | mailAddress, |
Handle | completionEvent | ||
) |
Inquires whether or not the given email address is available for creating a new account.
mailAddress | Pointer to the input email address to check. |
completionEvent | The event handle to signal once the request has finished. |
Returns a support error code (XXX-YYYY) for the given ACT result code.
code | The result code to convert. |
Result ACT_SetIsApplicationUpdateRequired | ( | bool | required | ) |
Sets the IsApplicationUpdateRequired
field in the internal account manager.
required | The new value to use. |
Sets the NFS (Nintendo Friend Server) password for a certain account.
accountSlot | The account slot number of the account to set the NfsPassword for. |
password | Pointer to the new NFS password to use. |
Result ACTA_AcquireAccountTokenEx | ( | u8 | accountSlot, |
AccountPassword * | password, | ||
bool | useNullPassword, | ||
Handle | completionEvent | ||
) |
Acquires an account token for a specific account.
accountSlot | The account slot number of the account to acquire the account token for. |
password | Pointer to the password of the account. |
useNullPassword | Whether or not to force NULL as the password (no password). This will cause the account password cache to be used instead, if it is enabled. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_AgreeEula | ( | u8 | accountSlot, |
EulaInfo * | eulaInfo, | ||
s64 | agreementTimestamp, | ||
Handle | completionEvent | ||
) |
Submits a EULA agreement to the account server.
accountSlot | The account slot number of the account to use to submit the agreement. |
eulaInfo | Pointer to a EULA information structure describing the agreed EULA. |
agreementTimestamp | A timestamp in the format milliseconds elapsed since 01.01.2000 00:00:00 UTC of when the user agreed to the EULA. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_ApproveByCreditCard | ( | u8 | accountSlot, |
CreditCardInfo * | cardInfo, | ||
Handle | completionEvent | ||
) |
Requests COPPA parental consent using credit card information.
accountSlot | The account slot number for the account to request approval for. |
cardInfo | Pointer to the credit card information to use for the approval process. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_BindToExistentServerAccount | ( | u8 | accountSlot, |
AccountId * | accountId, | ||
AccountMailAddress * | mailAddress, | ||
AccountPassword * | password, | ||
Handle | completionEvent | ||
) |
Links a local console account to an existing server account.
In other words, this links an existing NNID.
accountSlot | The account slot number of the local console account to bind. |
accountId | Pointer to the account ID of the existing server account. |
mailAddress | Pointer to the email address of the existing server account. |
password | Pointer to the password of the existing server account. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_BindToNewServerAccount | ( | u8 | accountSlot, |
AccountId * | accountId, | ||
AccountMailAddress * | mailAddress, | ||
AccountPassword * | password, | ||
bool | isParentEmail, | ||
bool | marketingFlag, | ||
bool | offDeviceFlag, | ||
s64 | birthDateTimestatmp, | ||
u8 | gender, | ||
u32 | region, | ||
AccountTimezone * | timezone, | ||
EulaInfo * | eulaInfo, | ||
s64 | parentalConsentTimestamp, | ||
u32 | parentalConsentId, | ||
Handle | completionEvent | ||
) |
Links a new server account to a local console account.
In other words, this creates and links an NNID.
accountSlot | The account slot number of the local console account to bind. |
accountId | Pointer to the account ID to use for the new server account. |
mailAddress | Pointer to the email address to use for the new server account. |
password | Pointer to the password to use for the new server account. |
isParentEmail | Whether or not the input email address is a parental email address. |
marketingFlag | Whether or not the user has consented to receiving marketing emails. ("Customized Email Offers") |
offDeviceFlag | Whether or not the user has allowed using the server account from other devices. ("Access from PCs and Other Devices") |
birthDateTimestamp | A birth date timestamp in the format milliseconds elapsed since 01.01.2000 00:00:00 UTC. |
parentalConsentTimestamp | When parental consent is required, the timestamp of parental consent in the format milliseconds elapsed since 01.01.2000 00:00:00 UTC. |
parentalConsentId | When parental consent is required, the resulting ID corresponding to the consent. |
completionEvent | The event handle to signal once the request has finished. |
Cancels a pending server account transfer of a specific account to another device.
accountSlot | The account slot number of the account to cancel the transfer for. |
completionEvent | The event handle to signal once the request has finished. |
Sets a local console account as committed.
accountSlot | The account slot number of the account to set as committed. |
Finalizes a server account transfer of a specifc account to another device.
accountSlot | The account slot number of the account to complete the transfer for. |
completionEvent | The event handle to signal once the request has finished. |
Deletes the account-device association for a specific account.
accountSlot | The account slot of the account to perform this action on. |
completionEvent | The event handle to signal once the request has finished. |
Deletes a local console account.
accountSlot | The account slot number of the local console account to delete. |
Deletes the device association for a specific account.
accountSlot | The account slot of the account to perform this action on. |
completionEvent | The event handle to signal once the request has finished. |
Deletes a server account.
In other words, this deletes an NNID (server-side).
accountSlot | The account slot number of the local console account bound to the server account to delete. |
completionEvent | The event handle to signal once the request has finished. |
Enables or disables the account password cache for a specific account.
When the account password cache is enabled, entering the password is not required to log into the account.
accountSlot | The account slot number to enable/disable the account password cache for. |
enabled | Whether or not to enable the account password cache. |
Result ACTA_GetSupportContext | ( | SupportContext * | supportContext, |
u8 | accountSlot | ||
) |
Creates a support context for a specific account.
supportContext | Pointer to write the support context data to. |
accountSlot | The account slot number of the account to create the support context for. |
Inactivates the account-device association for a specific account.
In other words, this deletes an NNID.
accountSlot | The account slot number of the account to perform this action on. |
completionEvent | The event handle to signal once the request has finished. |
Inactivates the device association for a specific account.
accountSlot | The account slot number of the account to inactive the device association for. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_InquireAccountIdAvailability | ( | u8 | accountSlot, |
AccountId * | accountId, | ||
Handle | completionEvent | ||
) |
Checks whether or not the given account ID is available for creating a new server account.
accountSlot | The account slot number of the account to perform the check for. |
accountId | Pointer to the input account ID to check. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_InquireBindingToExistentServerAccount | ( | u8 | accountSlot, |
AccountId * | accountId, | ||
AccountMailAddress * | mailAddress, | ||
AccountPassword * | password, | ||
Handle | completionEvent | ||
) |
Acquires information about an existing server account.
accountSlot | The account slot number of the local console account to use for the request. |
accountId | Pointer to the account ID of the existing server account. |
mailAddress | Pointer to the email address of the existing server account. |
password | Pointer to the password of the existing server account. |
completionEvent | The event handle to signal once the request has finished. |
Invalidates a specific account's access token in different ways.
accountSlot | The account slot number of the account to invalidate the access token for. |
invalidationMask | A bitfield of the actions to take to invalidate the access token. |
Result ACTA_LoadConsoleAccount | ( | u8 | accountSlot, |
bool | doPasswordCheck, | ||
AccountPassword * | password, | ||
bool | useNullPassword, | ||
bool | dryRun | ||
) |
Loads ("logs in to") a local console account.
accountSlot | The account slot number of the local console account to load. |
doPasswordCheck | Whether or not the check the input password, or if one isn't provided, the cached password (if enabled). |
password | Pointer to the input password. |
useNullPassword | Whether or not to forcefully use NULL as the password (= no password). |
dryRun | Whether or not to execute this command as a "dry run," not actually changing the current account to specified one. |
Requests the issuing of a temporary password (valid for 24 hours) to the email address associated with a specific account.
accountSlot | The account slot number of the account to issue the temporary password for. |
completionEvent | The event handle to signal once the request has finished. |
Cancels any running HTTP requests, saves all pending changes to the system save data, then signals unloadFinishedEvent.
Then, waits for remountAndBlockEvent, and once this has been signaled, remounts the system save, and blocks subsequent attempts to save the system save data (which can be bypassed by entering and exiting sleep mode).
unloadFinishedEvent | The event handle for ACT to signal once it has saved pending changes and has unmounted its system save. |
remountAndBlockEvent | The event handle for the caller to signal once ACT should remount its save data and block subsequent save attempts. |
Replaces the AccountId with the AssignedAccountId for a specific account.
accountSlot | The account slot number of the account to perform this replacement for. |
Initializes server-side account deletion for a specific account.
In other words, this deletes an NNID.
accountSlot | The account slot number of the account to perform this action on. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_ReserveTransfer | ( | u8 | accountSlot, |
DeviceInfo * | newDevice, | ||
char * | operatorData, | ||
u32 | operatorSize, | ||
Handle | completionEvent | ||
) |
Initializes a server account transfer of a specific account to another device.
accountSlot | The account slot number of the account to transfer the server account of. |
newDevice | Pointer to device info of the target device. |
operatorData | Pointer to operator data for the transfer. |
operatorSize | Size of the operator data buffer (max: 0x100) |
completionEvent | The event handle to signal once the request has finished. |
Requests the email address confirmation mail to be resent for a specific account.
accountSlot | The account slot number of the account for which the confirmation mail should be resent. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_SendConfirmationMailForPin | ( | u8 | accountSlot, |
AccountMailAddress * | parentalEmail, | ||
Handle | completionEvent | ||
) |
Registers a parental email address to be used in case the parental controls PIN has been forgotten for a specific account.
accountSlot | The account slot number of the account to register the fallback parental email for. |
parentalEmail | Pointer to the parental email to use. |
completionEvent | The event handle to signal once the request has finished. |
Requests a COPPA code for a specific account.
accountSlot | The account slot number for the account to send the request for. |
principalId | The principalId of the account to send the request for. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_SendMasterKeyMailForPin | ( | u8 | accountSlot, |
u32 | masterKey, | ||
AccountMailAddress * | parentalEmail, | ||
Handle | completionEvent | ||
) |
Sends the master key for resetting parental controls to a parental email for a specific account.
accountSlot | The account slot number for the account to be used for this operation. |
masterKey | The master key to send to the parental email address. |
parentalEmail | Pointer to the parental email address to send the master key to. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_SendPostingApprovalMail | ( | u8 | accountSlot, |
AccountMailAddress * | parentalEmail, | ||
Handle | completionEvent | ||
) |
Requests parental approval for a specific account.
accountSlot | The account slot number of the account to request parental approval for. |
parentalEmail | Pointer to a parental email to use for parental consent. |
completionEvent | The event handle to signal once the request has finished. |
Sets the account password input for a specific account.
This value is not stored in the save data and only resides in memory. Following up a call to this command with a call to ACTA_EnableAccountPasswordCache will lead to the account password cache being updated.
Sets the default account that is loaded when the ACT module is initialized.
accountSlot | The account slot number of the account to set as the default. |
Sets default server environment settings.
This will also update CFG configuration block 0x150002 accordingly.
nnasType | The NNAS (Nintendo Network Authentication Server) type. |
nfsType | The NFS (Nintendo Friend Server) type. |
nfsNo | The NFS (Nintendo Friend Server) number. |
Result ACTA_SetDefaultHostServerSettingsStr | ( | ActNnasSubdomain * | nnasSubdomain, |
NfsTypeStr * | nfsTypeStr | ||
) |
Sets default server environment settings (in string form).
This will also update CFG configuration block 0x150002 accordingly.
nnasSubdomain | Pointer to the new NNAS (Nintendo Network Authentication Server) subdomain to use. |
nfsTypeStr | Pointer to the new NFS (Nintendo Friend Server) type to use. |
Sets server environment settings for a specific account.
This will also update CFG configuration block 0x150002 accordingly.
accountSlot | The account slot number of the account to set the host server settings for. |
nnasType | The NNAS (Nintendo Network Authentication Server) type. |
nfsType | The NFS (Nintendo Friend Server) type. |
nfsNo | The NFS (Nintendo Friend Server) number. |
Result ACTA_SetHostServerSettingsStr | ( | u8 | accountSlot, |
ActNnasSubdomain * | nnasSubdomain, | ||
NfsTypeStr * | nfsTypeStr | ||
) |
Sets server environment settings (in string form) for a specific account.
This will also update CFG configuration block 0x150002 accordingly.
accountSlot | The account slot number of the account to set the host server settings for. |
nnasSubdomain | Pointer to the new NNAS (Nintendo Network Authentication Server) subdomain to use. |
nfsTypeStr | Pointer to the new NFS (Nintendo Friend Server) type to use. |
Set a flag in a specifc account's data that determines whether or not it is necessary to upload the account Mii data to the account server.
accountSlot | The account slot number of the account to set the flag for. |
isDirty | Whether or not the Mii data should be reuploaded to the account server. |
Set the internal network time field.
timestamp | The new server time timestamp to use. The timestamp format is milliseconds elapsed since 01.01.2000 00:00:00 UTC. |
Sets the internal base value for generating new persistent IDs.
head | The new base value to use. |
Sets the internal base value for generating new transferable IDs.
counter | The new base value to use. |
Swaps the account slot numbers of two accounts.
accountSlot1 | The first account slot number. |
accountSlot2 | The second account slot number. |
Reloads account information from the server for a specific account.
accountSlot | The account slot number of the account to reload information for. |
completionEvent | The event handle to signal once the request has finished. |
Clears (but does not delete) account data for the given account slot.
The FpLocalAccountId will not be cleared.
accountSlot | The account slot number of the account to clear. |
completely | Whether or not to also clear the AssignedAccountId and AssignedPrincipalId in the account data. |
Result ACTA_UpdateAccountInfo | ( | u8 | accountSlot, |
char * | xmlData, | ||
u32 | xmlDataSize, | ||
Handle | completionEvent | ||
) |
Updates the account info of a specific account using raw XML data.
accountSlot | The account slot number of the account to update information for. |
xmlData | Pointer to the input XML data. |
xmlDataSize | Size of the input XML data. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_UpdateAccountMailAddress | ( | u8 | accountSlot, |
AccountMailAddress * | newEmail, | ||
Handle | completionEvent | ||
) |
Updates the email address of a specific account.
accountSlot | The account slot number of the account to update the email address for. |
newEmail | Pointer to the new email address to use. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_UpdateAccountPassword | ( | u8 | accountSlot, |
AccountPassword * | newPassword, | ||
Handle | completionEvent | ||
) |
Updates the account password for a specific account.
accountSlot | The account slot number of the account to update the password for. |
password | Pointer to the new password to use. |
completionEvent | The event handle to signal once the request has finished. |
Result ACTA_UpdateMiiData | ( | u8 | accountSlot, |
CFLStoreData * | miiData, | ||
MiiScreenName * | screenName | ||
) |
Updates a specific account's Mii data and screen name.
accountSlot | The account slot number of the account to update the Mii and screen name of. |
miiData | Pointer to the new Mii data to use. |
screenName | Pointer to the new screen name to use. |
Updates a Mii image of a specific account.
accountSlot | The account slot number of the account to update the Mii image for. |
miiImageType | The type of Mii image to update. |
image | Pointer to the Mii image data to use. |
imageSize | Size of the Mii image data. |
Uploads the Mii data of a specific account to the account server.
accountSlot | The account slot number of the account to upload the Mii for. |
completionEvent | The event handle to signal once the request has finished. |
Validates the email address of a specific account using the code received via the confirmation email.
accountSlot | The account slot number of the account to validate the email address for. |
confirmationCode | The confirmation code received via email. |
completionEvent | The event handle to signal once the request has finished. |
Result actInit | ( | bool | forceUser | ) |
Initializes ACT services.
forceUser | Whether or not to force using the user service act:u instead of the default (admin service act:a). |