// stdafx.h : 可在?標頭檔中包含標準的系統 Include 檔，
// 或是經常使用卻很少變更的
// 專案專用 Include 檔案
//

#pragma once

#pragma comment(linker, "/nodefaultlib:libc.lib")
#pragma comment(linker, "/nodefaultlib:libcd.lib")

// 注意 - 這個值與目標??的 Windows CE OS 並沒有太大關係
#define WINVER _WIN32_WCE

#include <ceconfig.h>
#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
#define SHELL_AYGSHELL
#endif

#ifdef _CE_DCOM
#define _ATL_APARTMENT_THREADED
#endif

#include <windows.h>
#include <commctrl.h>



// Windows 標頭檔:
//#include <windows.h>


#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
#ifndef _DEVICE_RESOLUTION_AWARE
#define _DEVICE_RESOLUTION_AWARE
#endif
#endif

#ifdef _DEVICE_RESOLUTION_AWARE
#include "DeviceResolutionAware.h"
#endif

#if _WIN32_WCE < 0x500 && ( defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) )
	#pragma comment(lib, "ccrtrtti.lib")
	#ifdef _X86_
		#if defined(_DEBUG)
			#pragma comment(lib, "libcmtx86d.lib")
		#else
			#pragma comment(lib, "libcmtx86.lib")
		#endif
	#endif
#endif

#include <altcecrt.h>

// TODO: 在?參考您的程式所需要的其他標頭


#ifdef ARM
	#include "private_winpac.h"
	#define  AddressMultiplica  2
   #ifdef SV_PAC
    #pragma comment(lib, "SV_Lib\\ceddk.lib")
    #pragma comment(lib, "SV_Lib\\iphlpapi.lib") 
    #pragma comment(lib, "SV_Lib\\ws2.lib")
   #else
   	#pragma comment(lib, "WP_Lib\\ceddk.lib")
		#pragma comment(lib, "WP_Lib\\storeapi.lib") 
		#pragma comment(lib, "WP_Lib\\xllplib.lib")     
   #endif 
#endif
#ifdef x86
	#include "private_xpac.h"
   #define  AddressMultiplica  1
#ifdef N2K_WCE7
		#pragma comment(lib, "N2WC7_Lib\\ceddk.lib") 
		#pragma comment(lib, "N2WC7_Lib\\iphlpapi.lib") 
		#pragma comment(lib, "N2WC7_Lib\\ws2.lib") 
#else	
		#pragma comment(lib, "XP_Lib\\ceddk.lib") 
		#pragma comment(lib, "XP_Lib\\iphlpapi.lib") 
		#pragma comment(lib, "XP_Lib\\ws2.lib") 
#endif
#endif


#pragma warning(disable:4996)       //disable sprintf to sprintf_s warning



//#endif