home *** CD-ROM | disk | FTP | other *** search
- // ************************************************************************
- //
- // Microsoft Developer Support
- // Copyright (c) 1992, 1993 Microsoft Corporation
- //
- // ************************************************************************
- // HEADER : Port.H
- // PURPOSE : A Win16/Win32 Sample Application Porting Macros Header File
- // which provide the macros that will allow the application to
- // compile for Win16 (Windows 3.x) or Win32 (Windows NT)
- // COMMENTS :
- //
- // ************************************************************************
-
- #if !defined( WIN32 ) && !defined( WIN32S )
- #include <ToolHelp.H>
-
- typedef UINT (CALLBACK *LPCFHOOKPROC)(HWND, UINT, WPARAM, LPARAM);
- typedef UINT (CALLBACK *LPCCHOOKPROC)(HWND, UINT, WPARAM, LPARAM);
-
- #define INT int
- #define TCHAR char
- #define TEXT(quote) quote
- #define LPTSTR LPSTR
- #define LPCTSTR LPCSTR
- #define WM_CTLCOLORLISTBOX WM_CTLCOLOR
-
- #define UNREFERENCED_PARAMETER( param )
-
- #define POINTS POINT
- #define MAKEPOINTS MAKEPOINT
-
- #define ExitProcess( nExitCode ) PostQuitMessage( nExitCode )
- #define GetLastError() 0
- #endif
-
- #ifdef WIN32S
- #undef wsprintf
- #define wsprintf wsprintfA
- #endif
-