亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? helloworld.c

?? brew平臺下的helloworld例子
?? C
字號:
/*===========================================================================

FILE: helloworld.c
===========================================================================*/


/*===============================================================================
INCLUDES AND VARIABLE DEFINITIONS
=============================================================================== */
#include "AEEModGen.h"          // Module interface definitions
#include "AEEAppGen.h"          // Applet interface definitions
#include "AEEShell.h"           // Shell interface definitions
#include "helloworld.brh"
#include "helloworld.bid"

/*-------------------------------------------------------------------
Applet structure. All variables in here are reference via "pMe->"
-------------------------------------------------------------------*/
// create an applet structure that's passed around. All variables in
// here will be able to be referenced as static.
typedef struct _helloworld {
	AEEApplet      a ;	       // First element of this structure must be AEEApplet
    AEEDeviceInfo  DeviceInfo; // always have access to the hardware device information

    // add your own variables here...



} helloworld;

/*-------------------------------------------------------------------
Function Prototypes
-------------------------------------------------------------------*/
static  boolean helloworld_HandleEvent(helloworld* pMe, 
                                                   AEEEvent eCode, uint16 wParam, 
                                                   uint32 dwParam);
boolean helloworld_InitAppData(helloworld* pMe);
void    helloworld_FreeAppData(helloworld* pMe);

/*===============================================================================
FUNCTION DEFINITIONS
=============================================================================== */

/*===========================================================================
FUNCTION: AEEClsCreateInstance

DESCRIPTION
	This function is invoked while the app is being loaded. All Modules must provide this 
	function. Ensure to retain the same name and parameters for this function.
	In here, the module must verify the ClassID and then invoke the AEEApplet_New() function
	that has been provided in AEEAppGen.c. 

   After invoking AEEApplet_New(), this function can do app specific initialization. In this
   example, a generic structure is provided so that app developers need not change app specific
   initialization section every time except for a call to IDisplay_InitAppData(). 
   This is done as follows: InitAppData() is called to initialize AppletData 
   instance. It is app developers responsibility to fill-in app data initialization 
   code of InitAppData(). App developer is also responsible to release memory 
   allocated for data contained in AppletData -- this can be done in 
   IDisplay_FreeAppData().

PROTOTYPE:
   int AEEClsCreateInstance(AEECLSID ClsId,IShell * pIShell,IModule * po,void ** ppObj)

PARAMETERS:
	clsID: [in]: Specifies the ClassID of the applet which is being loaded

	pIShell: [in]: Contains pointer to the IShell object. 

	pIModule: pin]: Contains pointer to the IModule object to the current module to which
	this app belongs

	ppObj: [out]: On return, *ppObj must point to a valid IApplet structure. Allocation
	of memory for this structure and initializing the base data members is done by AEEApplet_New().

DEPENDENCIES
  none

RETURN VALUE
  AEE_SUCCESS: If the app needs to be loaded and if AEEApplet_New() invocation was
     successful
  EFAILED: If the app does not need to be loaded or if errors occurred in 
     AEEApplet_New(). If this function returns FALSE, the app will not be loaded.

SIDE EFFECTS
  none
===========================================================================*/
int AEEClsCreateInstance(AEECLSID ClsId, IShell *pIShell, IModule *po, void **ppObj)
{
	*ppObj = NULL;

	if( ClsId == AEECLSID_HELLOWORLD )
	{
		// Create the applet and make room for the applet structure
		if( AEEApplet_New(sizeof(helloworld),
                          ClsId,
                          pIShell,
                          po,
                          (IApplet**)ppObj,
                          (AEEHANDLER)helloworld_HandleEvent,
                          (PFNFREEAPPDATA)helloworld_FreeAppData) ) // the FreeAppData function is called after sending EVT_APP_STOP to the HandleEvent function
                          
		{
			//Initialize applet data, this is called before sending EVT_APP_START
            // to the HandleEvent function
			if(helloworld_InitAppData((helloworld*)*ppObj))
			{
				//Data initialized successfully
				return(AEE_SUCCESS);
			}
			else
			{
				//Release the applet. This will free the memory allocated for the applet when
				// AEEApplet_New was called.
				IAPPLET_Release((IApplet*)*ppObj);
				return EFAILED;
			}

        } // end AEEApplet_New

    }

	return(EFAILED);
}


/*===========================================================================
FUNCTION SampleAppWizard_HandleEvent

DESCRIPTION
	This is the EventHandler for this app. All events to this app are handled in this
	function. All APPs must supply an Event Handler.

PROTOTYPE:
	boolean SampleAppWizard_HandleEvent(IApplet * pi, AEEEvent eCode, uint16 wParam, uint32 dwParam)

PARAMETERS:
	pi: Pointer to the AEEApplet structure. This structure contains information specific
	to this applet. It was initialized during the AEEClsCreateInstance() function.

	ecode: Specifies the Event sent to this applet

   wParam, dwParam: Event specific data.

DEPENDENCIES
  none

RETURN VALUE
  TRUE: If the app has processed the event
  FALSE: If the app did not process the event

SIDE EFFECTS
  none
===========================================================================*/
static boolean helloworld_HandleEvent(helloworld* pMe, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{  

    switch (eCode) 
	{
        // App is told it is starting up
        case EVT_APP_START:                        
			{
				AECHAR helloworld[]={'h','e','l','l','o','w','o','r','l','d','\0'};
				AECHAR buff[30]={0};

				ISHELL_LoadResString(pMe->a.m_pIShell,HELLOWORLD_RES_FILE,IDS_HELLO,buff,sizeof(buff));
				IDISPLAY_DrawText(pMe->a.m_pIDisplay,AEE_FONT_NORMAL,buff,-1,0,0,NULL,IDF_ALIGN_CENTER);
				IDISPLAY_Update(pMe->a.m_pIDisplay);
			}

            return(TRUE);


        // App is told it is exiting
        case EVT_APP_STOP:
            // Add your code here...

      		return(TRUE);


        // App is being suspended 
        case EVT_APP_SUSPEND:
		    // Add your code here...

      		return(TRUE);


        // App is being resumed
        case EVT_APP_RESUME:
		    // Add your code here...

      		return(TRUE);


        // An SMS message has arrived for this app. Message is in the dwParam above as (char *)
        // sender simply uses this format "//BREW:ClassId:Message", example //BREW:0x00000001:Hello World
        case EVT_APP_MESSAGE:
		    // Add your code here...

      		return(TRUE);

        // A key was pressed. Look at the wParam above to see which key was pressed. The key
        // codes are in AEEVCodes.h. Example "AVK_1" means that the "1" key was pressed.
        case EVT_KEY:
		    // Add your code here...

      		return(TRUE);


        // If nothing fits up to this point then we'll just break out
        default:
            break;
   }

   return FALSE;
}


// this function is called when your application is starting up
boolean helloworld_InitAppData(helloworld* pMe)
{
    // Get the device information for this handset.
    // Reference all the data by looking at the pMe->DeviceInfo structure
    // Check the API reference guide for all the handy device info you can get
    pMe->DeviceInfo.wStructSize = sizeof(pMe->DeviceInfo);
    ISHELL_GetDeviceInfo(pMe->a.m_pIShell,&pMe->DeviceInfo);

    // Insert your code here for initializing or allocating resources...



    // if there have been no failures up to this point then return success
    return TRUE;
}

// this function is called when your application is exiting
void helloworld_FreeAppData(helloworld* pMe)
{
    // insert your code here for freeing any resources you have allocated...

    // example to use for releasing each interface:
    // if ( pMe->pIMenuCtl != NULL )         // check for NULL first
    // {
    //    IMENUCTL_Release(pMe->pIMenuCtl)   // release the interface
    //    pMe->pIMenuCtl = NULL;             // set to NULL so no problems trying to free later
    // }
    //

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费人成在线不卡| 91丨porny丨中文| 欧美日韩一二三区| 日韩理论在线观看| 国产成人啪免费观看软件| 精品欧美黑人一区二区三区| 男女激情视频一区| 依依成人综合视频| 色噜噜狠狠色综合中国| 亚洲另类中文字| 久久精品欧美日韩精品| 丁香六月综合激情| 国产精品久久久久久久久果冻传媒| 成人激情动漫在线观看| 一区二区三区四区av| 欧美日韩一区在线观看| 国产成人综合在线| 国产一区二区剧情av在线| 中文字幕精品一区二区精品绿巨人| av亚洲精华国产精华精华| 亚洲国产精品久久人人爱 | 国内一区二区视频| 中文天堂在线一区| 欧美三级电影在线看| 成人h版在线观看| 国产精品一区二区免费不卡| 日韩理论片一区二区| 国产欧美一区二区精品性色超碰| 一本大道久久a久久综合| 日韩激情中文字幕| 久久夜色精品国产噜噜av| 91麻豆123| 99国产一区二区三精品乱码| 日本欧美一区二区在线观看| 国产精品国模大尺度视频| 久久久国产精华| 欧美高清性hdvideosex| 国产精品资源在线| 国产成人在线视频网址| 国产米奇在线777精品观看| 韩国一区二区三区| 国产乱码一区二区三区| 国产v综合v亚洲欧| 日韩成人免费电影| 日韩成人一级片| 久久成人久久鬼色| 亚洲一区在线观看网站| 欧美国产欧美综合| 国产欧美日韩中文久久| 综合激情成人伊人| 亚洲精品一卡二卡| 亚洲成人先锋电影| 亚洲欧美激情视频在线观看一区二区三区| 91精品国产免费久久综合| a美女胸又www黄视频久久| 91日韩精品一区| 欧美性受xxxx| 在线观看免费成人| 91小视频免费看| 欧美日韩精品免费观看视频| 99国产精品国产精品久久| 一道本成人在线| 91精品国产一区二区人妖| 久久在线免费观看| 亚洲人123区| 三级影片在线观看欧美日韩一区二区| 天天综合色天天| 午夜精品一区二区三区免费视频 | 奇米精品一区二区三区在线观看| 日本不卡一二三| 国产成人精品亚洲777人妖| 99re66热这里只有精品3直播 | 国产a久久麻豆| 在线亚洲免费视频| 日韩精品一区国产麻豆| 欧美一级理论片| 日韩一区二区在线观看| 国产亚洲精品超碰| 亚洲va韩国va欧美va精品| 国产原创一区二区| 欧美亚洲尤物久久| 久久久久88色偷偷免费| 亚洲一区精品在线| 国产一区二区三区蝌蚪| 欧美色男人天堂| 亚洲国产精品t66y| caoporn国产一区二区| 欧美另类一区二区三区| 久久久久久久av麻豆果冻| 亚洲国产美女搞黄色| 国产jizzjizz一区二区| 欧美一级二级三级蜜桃| 一区二区日韩电影| 国产成人aaa| 日韩网站在线看片你懂的| 亚洲精品水蜜桃| 国产毛片精品一区| 91精品国产欧美日韩| 一级做a爱片久久| 丁香桃色午夜亚洲一区二区三区| 欧美乱妇15p| 一区二区三区中文字幕| 懂色av中文字幕一区二区三区| 欧美一区二区久久| 一区二区三区四区视频精品免费 | 91一区二区三区在线观看| 2024国产精品| 免费成人av资源网| 欧美日韩免费观看一区三区| 亚洲欧洲日韩在线| 夜夜嗨av一区二区三区四季av| 国产精品一区二区久激情瑜伽| 91精品蜜臀在线一区尤物| 精品久久一区二区| 丝袜美腿亚洲综合| 欧美主播一区二区三区| 亚洲女同一区二区| av在线播放成人| 国产精品久久久久9999吃药| 国产一区二区三区四区五区入口| 欧美一区二区三区免费观看视频| 亚洲福利一区二区三区| 色婷婷一区二区三区四区| 中文字幕亚洲一区二区va在线| 国产不卡在线播放| 亚洲精品在线网站| 亚洲六月丁香色婷婷综合久久| 国产白丝网站精品污在线入口| 久久女同互慰一区二区三区| 国产在线看一区| 亚洲精品一区二区精华| 国产最新精品精品你懂的| 久久综合成人精品亚洲另类欧美 | 欧美制服丝袜第一页| 一区二区三区日韩精品| 色噜噜夜夜夜综合网| 一级做a爱片久久| 欧美日韩不卡在线| 成人aaaa免费全部观看| 国产精品―色哟哟| 91丝袜国产在线播放| 亚洲综合色婷婷| 欧美熟乱第一页| 午夜精品福利一区二区蜜股av| 欧美精品亚洲一区二区在线播放| 视频在线在亚洲| 日韩视频免费观看高清完整版| 精品一区二区在线播放| 一本色道久久综合亚洲aⅴ蜜桃| 亚洲欧美另类在线| 在线观看亚洲一区| 五月天欧美精品| 精品久久久久久综合日本欧美| 国产美女一区二区| 亚洲国产成人一区二区三区| 91老司机福利 在线| 偷拍亚洲欧洲综合| 精品乱人伦小说| 99久久国产综合精品女不卡| 亚洲欧美成人一区二区三区| 欧美日韩国产美| 激情欧美一区二区| 国产精品嫩草久久久久| 欧洲精品一区二区三区在线观看| 亚洲电影一区二区| 久久综合资源网| 97se亚洲国产综合自在线不卡| 亚洲一卡二卡三卡四卡| 欧美精品一区二区三区久久久| 成人av在线看| 五月激情丁香一区二区三区| 久久免费的精品国产v∧| 91日韩一区二区三区| 日韩电影在线一区二区| 国产精品欧美一级免费| 欧美性xxxxxxxx| 国产综合色在线| 亚洲亚洲人成综合网络| 久久老女人爱爱| 欧美午夜在线观看| 国产一区二区精品久久91| 亚洲一区在线观看网站| 久久久久久久久久美女| 精品视频一区二区不卡| 高清日韩电视剧大全免费| 无吗不卡中文字幕| 日韩美女啊v在线免费观看| 日韩欧美另类在线| 91成人在线免费观看| 国产原创一区二区| 亚洲成人一区二区| 18成人在线观看| 久久久久久久一区| 91精品国产aⅴ一区二区| 99精品视频在线观看| 久久国产精品99久久久久久老狼 | 日韩一本二本av| 色吊一区二区三区| 成人一级黄色片| 激情六月婷婷综合|