www.pudn.com > freepy.rar > stub.h


// 
// Copyright (c) Microsoft Corporation.  All rights reserved. 
// 
// 
// Use of this source code is subject to the terms of the Microsoft end-user 
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT. 
// If you did not accept the terms of the EULA, you are not authorized to use 
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your 
// install media. 
// 
// 
// 
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 
 
Module Name: 
 
    Stub.h 
 
Abstract: 
 
    Sample IME for Windows CE. 
 
[Environment:] 
 
    Runs on all of Windows CE platform. 
 
[Notes:] 
 
    This code and information is provided "as is" without warranty of 
    any kind, either expressed or implied, including but not limited to 
    the implied warranties of merchantability and/or fitness for a 
    particular purpose. 
 
-------------------------------------------------------------------*/ 
 
#ifndef _STUB_H_ 
#define _STUB_H_ 
 
#define TextOut(hdc, x, y, sz, cbsz) \ 
			ExtTextOut((hdc),(x),(y),0,NULL,(sz),(cbsz),NULL) 
UINT WINAPI GetWindowsDirectory( LPTSTR lpBuffer, UINT uSize ); 
LPTSTR lstrcpyn( LPTSTR lpString1, LPCTSTR lpString2, int iMaxLength ); 
 
DWORD GetPrivateProfileString( 
	LPCTSTR lpAppName, 	// Section name 
	LPCTSTR lpKeyName,	// Key name  
	LPCTSTR lpDefault,	// Default string  
	LPTSTR  lpString,	// Destination buffer  
	DWORD   nSize,		// Size of destination buffer  
	LPCTSTR lpFileName 	// Filename  
); // Return value is number of copied characters 
 
BOOL WritePrivateProfileString( 
	LPCTSTR  lpAppName,	// Section name  
	LPCTSTR  lpKeyName,	// Key name  
	LPCTSTR  lpString,	// pointer to string to add  
	LPCTSTR  lpFileName 	// Filename  
); 
 
#endif  // _STUB_H_