* src/common/Makefile
* src/common/hbwince.c
+ src/common/hbwin.c
! Moved Windows UNICODE helper function into new source,
leaving WinCE API local emulation into separate source file.
* include/hbwince.h
+ Now automatically includes windows.h. (since it depends on it)
* include/hbdefs.h
- Deleted HB_OS_WIN_USED autodetection. Not needed anymore.
! Fixed to not include hbwince.h anymore. It should be included
directly from source files, where needed.
* include/hbdefs.h
* contrib/hbodbc/odbc.c
* contrib/rddsql/sddodbc/odbcdd.c
+ Always defining HB_TCHAR_*() macros. They will be dummies
in non-Windows or non-UNICODE builds.
* include/clipdefs.h
! Legacy Clipper types moved to the bottom, because it's
no longer true that hbapi.h defines their dependent types
(our legacy ones).
* contrib/hbwin/win_bmpd.c
* contrib/hbwin/wapi_wingdi.c
* contrib/hbwin/win_misc.c
* contrib/hbwin/wapi_winbase.c
* contrib/hbwin/wapi_alloc.c
* contrib/hbwin/wapi_winuser.c
* contrib/hbwin/hbwin.h
* contrib/hbwin/hbwinole.h
* contrib/hbwin/mapi.c
* contrib/hbwin/wapi_wingdi_font.c
* contrib/hbwin/olecore.c
* contrib/hbwin/wce_simc.c
* contrib/hbwin/wapi_winnls.c
* contrib/hbwin/win_bmp.c
* contrib/hbwin/win_com.c
* contrib/hbwin/Makefile
* contrib/hbwin/win_regc.c
* contrib/hbwin/win_prn1.c
* contrib/hbwin/win_prn2.c
* contrib/hbwin/win_prn3.c
* contrib/hbwin/wapi_commctrl.c
* contrib/hbwin/win_osc.c
* contrib/hbwin/wce_smsc.c
* contrib/hbwin/wapi_err.c
* contrib/hbwin/legacycd.c
* contrib/hbwin/hbwapi.h
* contrib/hbwin/wapi_shellapi.c
* contrib/hbwin/win_dlg.c
* contrib/hbwin/legacyco.c
* contrib/hbwin/win_dll.c
* contrib/hbwin/wapi_winbase_mutex.c
+ Reworked the way windows.h is included and headers
are organized. New types allow complete control and
flexibility. Finally.
* src/vm/mainwin.c
* src/vm/maindll.c
* src/vm/maindllh.c
* src/vm/cmdarg.c
* src/vm/maindllp.c
* src/vm/task.c
* src/vm/fm.c
* src/vm/extrap.c
* src/vm/thread.c
* src/vm/hvmall.c
* src/vm/dynlibhb.c
* src/common/hbgete.c
* src/common/hbffind.c
* src/common/hbver.c
* src/common/hbtrace.c
* src/common/hbfsapi.c
* src/common/hbdate.c
* src/rtl/gtwin/gtwin.c
* src/rtl/fstemp.c
* src/rtl/gttone.c
* src/rtl/fserr.c
* src/rtl/filesys.c
* src/rtl/lang.c
* src/rtl/diskspac.c
* src/rtl/console.c
* src/rtl/cputime.c
* src/rtl/gtclip.c
* src/rtl/oemansi.c
* src/rtl/disksphb.c
* src/rtl/net.c
* src/rtl/gtgui/gtgui.c
* src/rtl/hbproces.c
* src/rtl/gtwvt/gtwvt.h
* src/rtl/gtwvt/gtwvt.c
* src/rtl/gtkbstat.c
* contrib/hbct/ctnet.c
* contrib/hbct/dattime3.c
* contrib/hbct/disk.c
* contrib/hbodbc/odbc.c
* contrib/xhb/hboutdbg.c
* contrib/xhb/xhberrc.c
* contrib/xhb/filestat.c
* contrib/xhb/hbserv.c
* contrib/hbtpathy/tpwin.c
* contrib/hbmzip/hbmzip.c
* contrib/hbqt/hbqt_base.cpp
* contrib/hbnf/getenvrn.c
* contrib/rddsql/sddodbc/odbcdd.c
* contrib/rddads/adsx.c
* contrib/rddads/adsfunc.c
* contrib/rddads/rddads.h
* contrib/rddads/ads1.c
* contrib/rddads/adsmgmnt.c
* examples/hbapollo/apollo.c
+ HB_OS_WIN_USED trick replaced with direct windows.h
inclusion, just like we do for all other OSes.
+ Also inclded hbwince.h in source files which required
it. Please test it.
* contrib/hbqt/gtqtc/gtqtc.cpp
- Deleted commented code to not create false grep hits
all the time.
171 lines
6.6 KiB
C
171 lines
6.6 KiB
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* Harbour Project source code:
|
|
*
|
|
*
|
|
* Copyright 2007 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
|
*
|
|
* As a special exception, the Harbour Project gives permission for
|
|
* additional uses of the text contained in its release of Harbour.
|
|
*
|
|
* The exception is that, if you link the Harbour libraries with other
|
|
* files to produce an executable, this does not by itself cause the
|
|
* resulting executable to be covered by the GNU General Public License.
|
|
* Your use of that executable is in no way restricted on account of
|
|
* linking the Harbour library code into it.
|
|
*
|
|
* This exception does not however invalidate any other reasons why
|
|
* the executable file might be covered by the GNU General Public License.
|
|
*
|
|
* This exception applies only to the code released by the Harbour
|
|
* Project under the name Harbour. If you copy code from other
|
|
* Harbour Project or Free Software Foundation releases into a copy of
|
|
* Harbour, as the General Public License permits, the exception does
|
|
* not apply to the code that you add in this way. To avoid misleading
|
|
* anyone as to the status of such modified files, you must delete
|
|
* this exception notice from them.
|
|
*
|
|
* If you write modifications of your own for Harbour, it is your choice
|
|
* whether to permit this exception to apply to your modifications.
|
|
* If you do not wish that, delete this exception notice.
|
|
*
|
|
*/
|
|
|
|
#ifndef HB_WINCE_H_
|
|
#define HB_WINCE_H_
|
|
|
|
/* Some protection */
|
|
#if defined( HB_OS_WIN_CE )
|
|
|
|
#include <windows.h>
|
|
|
|
HB_EXTERN_BEGIN
|
|
|
|
#if defined( _MSC_VER )
|
|
#ifndef MAX_COMPUTERNAME_LENGTH
|
|
#define MAX_COMPUTERNAME_LENGTH 31
|
|
#define SEM_FAILCRITICALERRORS 0x0001
|
|
#define FILE_TYPE_CHAR 0x0002
|
|
#define STD_INPUT_HANDLE ((DWORD)-10)
|
|
#define STD_OUTPUT_HANDLE ((DWORD)-11)
|
|
#define STD_ERROR_HANDLE ((DWORD)-12)
|
|
#define LOCKFILE_FAIL_IMMEDIATELY 0x00000001
|
|
#define LOCKFILE_EXCLUSIVE_LOCK 0x00000002
|
|
#define OEM_FIXED_FONT SYSTEM_FONT
|
|
#define WM_NCMOUSEMOVE 0x00A0
|
|
#define WM_QUERYENDSESSION 0x0011
|
|
#define WM_ENTERIDLE 0x0121
|
|
#define SM_CMOUSEBUTTONS 43
|
|
#define PROOF_QUALITY 2
|
|
#define LR_LOADFROMFILE 0x0010
|
|
#ifndef DRIVE_UNKNOWN
|
|
#define DRIVE_UNKNOWN 0
|
|
#endif
|
|
#endif
|
|
|
|
BOOL WINAPI GetProcessTimes( HANDLE hprocess,
|
|
LPFILETIME lpCreationTime, LPFILETIME lpExitTime,
|
|
LPFILETIME lpKernelTime, LPFILETIME lpUserTime );
|
|
BOOL WINAPI LockFile( HANDLE hFile,
|
|
DWORD dwFileOffsetLow, DWORD dwFileOffsetHigh,
|
|
DWORD nNumberOfBytesToLockLow, DWORD nNumberOfBytesToLockHigh );
|
|
BOOL WINAPI LockFileEx( HANDLE hFile,
|
|
DWORD dwFlags, DWORD dwReserved,
|
|
DWORD nNumberOfBytesToLockLow,
|
|
DWORD nNumberOfBytesToLockHigh, LPOVERLAPPED lpOverlapped );
|
|
BOOL WINAPI UnlockFile( HANDLE hFile,
|
|
DWORD dwFileOffsetLow, DWORD dwFileOffsetHigh,
|
|
DWORD nNumberOfBytesToUnlockLow, DWORD nNumberOfBytesToUnlockHigh );
|
|
BOOL WINAPI UnlockFileEx( HANDLE hFile, DWORD dwReserved,
|
|
DWORD nNumberOfBytesToUnlockLow,
|
|
DWORD nNumberOfBytesToUnlockHigh, LPOVERLAPPED lpOverlapped );
|
|
UINT WINAPI SetErrorMode( UINT mode );
|
|
HANDLE WINAPI GetStdHandle( DWORD nStdHandle );
|
|
DWORD WINAPI GetFileType( HANDLE handle );
|
|
BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDurat );
|
|
int WINAPI SetTextCharacterExtra( HDC hdc, int i );
|
|
BOOL WINAPI GetKeyboardState( PBYTE p );
|
|
BOOL WINAPI SetKeyboardState( PBYTE p );
|
|
|
|
int WINAPI FrameRect( HDC hDC, CONST RECT * lprc, HBRUSH hbr );
|
|
BOOL WINAPI FloodFill( HDC hdc, int x, int y, COLORREF color);
|
|
BOOL WINAPI Arc( HDC hdc, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);
|
|
#endif /* _MSC_VER */
|
|
|
|
#if defined( __POCC__ ) || defined( __XCC__ )
|
|
#ifndef GlobalAlloc
|
|
#define GlobalAlloc(flags, cb) LocalAlloc(flags, cb)
|
|
#endif
|
|
#ifndef GlobalLock
|
|
#define GlobalLock(lp) LocalLock(lp)
|
|
#endif
|
|
#ifndef GlobalUnlock
|
|
#define GlobalUnlock(lp) LocalUnlock(lp)
|
|
#endif
|
|
#ifndef GlobalSize
|
|
#define GlobalSize(lp) LocalSize(lp)
|
|
#endif
|
|
#ifndef GlobalFree
|
|
#define GlobalFree(h) LocalFree(h)
|
|
#endif
|
|
#ifndef GlobalReAlloc
|
|
#define GlobalReAlloc(h, cb, flags) LocalReAlloc(h, cb, flags)
|
|
#endif
|
|
#ifndef GlobalHandle
|
|
#define GlobalHandle(lp) LocalHandle(lp)
|
|
#endif
|
|
#ifndef GlobalFlags
|
|
#define GlobalFlags(lp) LocalFlags(lp)
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined( GetEnvironmentVariable )
|
|
DWORD WINAPI GetEnvironmentVariableW( LPCWSTR name, LPWSTR value, DWORD size );
|
|
#define GetEnvironmentVariable GetEnvironmentVariableW
|
|
#endif
|
|
#if !defined( SetEnvironmentVariable )
|
|
BOOL WINAPI SetEnvironmentVariableW( LPCWSTR name, LPCWSTR value );
|
|
#define SetEnvironmentVariable SetEnvironmentVariableW
|
|
#endif
|
|
#if !defined( SetCurrentDirectory )
|
|
BOOL WINAPI SetCurrentDirectoryW( LPCWSTR dirname );
|
|
#define SetCurrentDirectory SetCurrentDirectoryW
|
|
#endif
|
|
#if !defined( GetCurrentDirectory )
|
|
DWORD WINAPI GetCurrentDirectoryW( DWORD len, LPWSTR buffer );
|
|
#define GetCurrentDirectory GetCurrentDirectoryW
|
|
#endif
|
|
#if !defined( GetComputerName )
|
|
BOOL WINAPI GetComputerNameW( LPWSTR buffer, LPDWORD len );
|
|
#define GetComputerName GetComputerNameW
|
|
#endif
|
|
#if !defined( GetUserName )
|
|
BOOL WINAPI GetUserNameW( LPWSTR buffer, LPDWORD len );
|
|
#define GetUserName GetUserNameW
|
|
#endif
|
|
|
|
HB_EXTERN_END
|
|
|
|
#endif
|
|
|
|
#endif /* HB_WINCE_H_ */
|