⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contacts.c

📁 palm os 上的中文伴侣源代码
💻 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 + -