📄 contacts.c
字号:
/*
* Contacts.c
*
* main file for Contacts
*
* This wizard-generated code is based on code adapted from the
* stationery files distributed as part of the Palm OS SDK 4.0.
*
* Copyright (c) 1999-2000 Palm, Inc. or its subsidiaries.
* All rights reserved.
*/
#include <PalmOS.h>
#include "Contacts.h"
#include "Contacts_Rsc.h"
/*********************************************************************
* Entry Points
*********************************************************************/
/*********************************************************************
* Global variables
*********************************************************************/
/*********************************************************************
* Internal Constants
*********************************************************************/
/*********************************************************************
* Internal Functions
*********************************************************************/
/*
* FUNCTION: PilotMain
*
* DESCRIPTION: This is the main entry point for the application.
*
* PARAMETERS:
*
* cmd
* word value specifying the launch code.
*
* cmdPB
* pointer to a structure that is associated with the launch code
*
* launchFlags
* word value providing extra information about the launch.
*
* RETURNED:
* Result of launch, errNone if all went OK
*/
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
switch (cmd)
{
case sysAppLaunchCmdNormalLaunch:
{
LocalID dbID;
UInt16 pSize = sizeof(LocalID);
if (PrefGetAppPreferences(appFileCreator, appPrefID, &dbID, &pSize, true) == noPreferenceFound)
{
dbID = DmFindDatabase(0, "Address Book");
PrefSetAppPreferences(appFileCreator, appPrefID, appPrefVersionNum, &dbID, pSize, true);
}
SysUIAppSwitch(0, dbID, sysAppLaunchCmdNormalLaunch, NULL);
break;
}
}
return errNone;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -