Back to index

lightning-sunbird  0.9+nobinonly
mozce_shunt.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is MOZCE Lib.
00015  *
00016  * The Initial Developer of the Original Code is Doug Turner <dougt@meer.net>.
00017 
00018  * Portions created by the Initial Developer are Copyright (C) 2005
00019  * the Initial Developer. All Rights Reserved.
00020  *
00021  * Contributor(s):
00022  *  John Wolfe <wolfe@lobo.us>
00023  * 
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 
00039 #ifndef MOZCE_SHUNT_H
00040 #define MOZCE_SHUNT_H
00041 
00042 // This is to silence the #pragma deprecated warnings
00043 #pragma warning(disable: 4068)
00044 
00045 #include "mozce_defs.h"
00046 
00047 
00048 // Enable a way for malloc to inform a mozce application
00049 // that it is getting low on memory.
00050 #define MOZCE_ALLOCATOR
00051 
00052 #ifdef MOZCE_ALLOCATOR
00053 #include "mozce_allocator.h"
00054 #endif
00055 
00056 #include <commdlg.h>
00057 
00059 // Function Mapping
00061 
00062 #ifndef MOZCE_SHUNT_EXPORTS
00063 
00064 
00065 // From asswert.cpp
00066 #ifdef _assert
00067 #undef _assert
00068 #endif
00069 #define _assert             mozce_assert
00070 
00071 #ifdef assert
00072 #undef assert
00073 #endif
00074 #define assert              mozce_assert
00075 
00076 
00077 // From direct.cpp
00078 #ifdef mkdir
00079 #undef mkdir
00080 #endif
00081 #define mkdir        mozce_mkdir
00082 
00083 #ifdef _mkdir
00084 #undef _mkdir
00085 #endif
00086 #define _mkdir              mozce_mkdir
00087 
00088 #ifdef _rmdir
00089 #undef _rmdir
00090 #endif
00091 #define _rmdir              mozce_rmdir
00092 
00093 #ifdef rmdir
00094 #undef rmdir
00095 #endif
00096 #define rmdir        mozce_rmdir
00097 
00098 
00099 // From errno.cpp
00100 #ifdef errno
00101 #undef errno
00102 #endif
00103 #define errno        mozce_errno
00104 
00105 
00106 // From io.cpp
00107 #ifdef _chmod
00108 #undef _chmod
00109 #endif
00110 #define _chmod              mozce_chmod
00111 
00112 #ifdef chmod
00113 #undef chmod
00114 #endif
00115 #define chmod        mozce_chmod
00116 
00117 #ifdef _isatty
00118 #undef _isatty
00119 #endif
00120 #define _isatty             mozce_isatty
00121 
00122 #ifdef isatty
00123 #undef isatty
00124 #endif
00125 #define isatty              mozce_isatty
00126 
00127 
00128 #ifdef fileno
00129 #undef fileno
00130 #endif
00131 #define fileno              mozce_fileno
00132 
00133 #ifdef _fileno
00134 #undef _fileno
00135 #endif
00136 #define _fileno             mozce_fileno
00137 
00138 #ifdef getprotobyname
00139 #undef getprotobyname
00140 #endif
00141 #define getprotobyname mozce_getprotobyname
00142 
00143 #ifdef getprotobynumber
00144 #undef getprotobynumber
00145 #endif
00146 #define getprotobynumber mozce_getprotobynumber
00147 
00148 // From mbstring.cpp
00149 #ifdef _mbsinc
00150 #undef _mbsinc
00151 #endif
00152 #define _mbsinc             mozce_mbsinc
00153 
00154 #ifdef _mbspbrk
00155 #undef _mbspbrk
00156 #endif
00157 #define _mbspbrk     mozce_mbspbrk
00158 
00159 #ifdef _mbsrchr
00160 #undef _mbsrchr
00161 #endif
00162 #define _mbsrchr     mozce_mbsrchr
00163 
00164 #ifdef _mbschr
00165 #undef _mbschr
00166 #endif
00167 #define _mbschr             mozce_mbschr
00168 
00169 #ifdef _mbctolower
00170 #undef _mbctolower
00171 #endif
00172 #define _mbctolower tolower 
00173 
00174 #ifdef _mbsicmp
00175 #undef _mbsicmp
00176 #endif
00177 #define _mbsicmp    mozce_mbsicmp
00178 
00179 #ifdef _mbsdec
00180 #undef _mbsdec
00181 #endif
00182 #define _mbsdec     mozce_mbsdec
00183 
00184 // From process.cpp
00185 #ifdef abort
00186 #undef abort
00187 #endif
00188 #define abort        mozce_abort
00189 
00190 #ifdef getenv
00191 #undef getenv
00192 #endif
00193 #define getenv              mozce_getenv
00194 
00195 #ifdef putenv
00196 #undef putenv
00197 #endif
00198 #define putenv              mozce_putenv
00199 
00200 #ifdef getpid
00201 #undef getpid
00202 #endif
00203 #define getpid              mozce_getpid
00204 
00205 #ifdef _getpid
00206 #undef _getpid
00207 #endif
00208 #define _getpid             mozce_getpid
00209 
00210 // From signal.cpp
00211 #ifdef raise
00212 #undef raise
00213 #endif
00214 #define raise        mozce_raise
00215 
00216 #ifdef signal
00217 #undef signal
00218 #endif
00219 #define signal              mozce_signal
00220 
00221 
00222 // From stat.cpp
00223 #ifdef stat
00224 #undef stat
00225 #endif
00226 #define stat         mozce_stat
00227 
00228 
00229 // From stdio.cpp
00230 #ifdef _access
00231 #undef _access
00232 #endif
00233 #define _access             mozce_access
00234 
00235 #ifdef access
00236 #undef access
00237 #endif
00238 #define access              mozce_access
00239 
00240 #ifdef rewind
00241 #undef rewind
00242 #endif
00243 #define rewind              mozce_rewind
00244 
00245 #ifdef fdopen
00246 #undef fdopen
00247 #endif
00248 #define       fdopen        mozce_fdopen
00249 
00250 #ifdef _fdopen
00251 #undef _fdopen
00252 #endif
00253 #define       _fdopen              mozce_fdopen
00254 
00255 #ifdef perror
00256 #undef perror
00257 #endif
00258 #define       perror        mozce_perror
00259 
00260 #ifdef remove
00261 #undef remove
00262 #endif
00263 #define remove              mozce_remove
00264 
00265 
00266 #ifdef _getcwd
00267 #undef _getcwd
00268 #endif
00269 #define _getcwd     mozce_getcwd
00270 
00271 #ifdef getcwd
00272 #undef getcwd
00273 #endif
00274 #define getcwd      mozce_getcwd
00275 
00276 #ifdef printf
00277 #undef printf
00278 #endif
00279 #define printf mozce_printf
00280 
00281 #ifdef open
00282 #undef open
00283 #endif
00284 #define open mozce_open
00285 
00286 #ifdef _open
00287 #undef _open
00288 #endif
00289 #define _open mozce_open
00290 
00291 #ifdef close
00292 #undef close
00293 #endif
00294 #define close mozce_close
00295 
00296 #ifdef read
00297 #undef read
00298 #endif
00299 #define read mozce_read
00300 
00301 #ifdef write
00302 #undef write
00303 #endif
00304 #define write mozce_write
00305 
00306 #ifdef unlink
00307 #undef unlink
00308 #endif
00309 #define unlink mozce_unlink
00310 
00311 #ifdef lseek
00312 #undef lseek
00313 #endif
00314 #define lseek mozce_lseek
00315 
00316 // From stdlib.cpp
00317 #ifdef _fullpath
00318 #undef _fullpath
00319 #endif
00320 #define _fullpath    mozce_fullpath
00321 
00322 #ifdef _splitpath
00323 #undef _splitpath
00324 #endif
00325 #define _splitpath   mozce_splitpath
00326 
00327 #ifdef _makepath
00328 #undef _makepath
00329 #endif
00330 #define _makepath    mozce_makepath
00331 
00332 
00333 
00334 #define lstrlenA  strlen
00335 #define lstrcpyA  strcpy
00336 #define lstrcmpA  strcmp
00337 #define lstrcmpiA strcmpi
00338 #define lstrcatA  strcat
00339 
00340 #ifdef strdup
00341 #undef strdup
00342 #endif
00343 #define strdup      _strdup
00344 
00345 #ifdef stricmp
00346 #undef stricmp
00347 #endif
00348 #define stricmp     _stricmp
00349 
00350 #ifdef strcmpi
00351 #undef strcmpi
00352 #endif
00353 #define strcmpi     _stricmp
00354 
00355 #ifdef strnicmp
00356 #undef strnicmp
00357 #endif
00358 #define strnicmp    _strnicmp
00359 
00360 
00361 // From string.cpp
00362 #ifdef strerror
00363 #undef strerror
00364 #endif
00365 #define strerror     mozce_strerror
00366 
00367 #ifdef wsprintfA
00368 #undef wsprintfA
00369 #endif
00370 #define wsprintfA mozce_wsprintfA
00371 
00372 // From time.cpp
00373 #ifdef strftime
00374 #undef strftime
00375 #endif
00376 #define strftime     mozce_strftime
00377 
00378 #ifdef localtime_r
00379 #undef localtime_r
00380 #endif
00381 #define localtime_r  mozce_localtime_r
00382 
00383 #ifdef localtime
00384 #undef localtime
00385 #endif
00386 #define localtime    mozce_localtime
00387 
00388 #ifdef gmtime_r
00389 #undef gmtime_r
00390 #endif
00391 #define gmtime_r     mozce_gmtime_r
00392 
00393 #ifdef gmtime
00394 #undef gmtime
00395 #endif
00396 #define gmtime           mozce_gmtime
00397 
00398 #ifdef mktime
00399 #undef mktime
00400 #endif
00401 #define mktime           mozce_mktime
00402 
00403 //#ifdef time(T)
00404 //#undef time(T)
00405 //#endif
00406 //#define time(T)           mozce_time(T)
00407 
00408 #ifdef ctime
00409 #undef ctime
00410 #endif
00411 #define ctime        mozce_ctime
00412 
00413 #ifdef localeconv
00414 #undef localeconv
00415 #endif
00416 #define localeconv  mozce_localeconv
00417 
00418 
00419 // From win32.cpp
00420 
00421 
00422 #ifdef _beginthreadex
00423 #undef _beginthreadex
00424 #endif
00425 
00426 #define SHGetPathFromIDListA SHGetPathFromIDList
00427 
00428 #define _beginthreadex(security, stack_size, start_proc, arg, flags, pid) \
00429         CreateThread(security, stack_size,(LPTHREAD_START_ROUTINE) start_proc, arg, flags, pid) 
00430 
00431 #define timeGetTime GetTickCount
00432 
00433 #ifdef Arc
00434 #undef Arc
00435 #endif
00436 #define Arc                       mozce_Arc
00437 
00438 #ifdef CallNextHookEx
00439 #undef CallNextHookEx
00440 #endif
00441 #define CallNextHookEx            mozce_CallNextHookEx
00442 
00443 #ifdef CreateDIBitmap
00444 #undef CreateDIBitmap
00445 #endif
00446 #define CreateDIBitmap            mozce_CreateDIBitmap
00447 
00448 #ifdef CreatePipe
00449 #undef CreatePipe
00450 #endif
00451 #define CreatePipe               mozce_CreatePipe
00452 
00453 #ifdef SetThreadAffinityMask
00454 #undef SetThreadAffinityMask
00455 #endif
00456 #define SetThreadAffinityMask    mozce_SetThreadAffinityMask
00457 
00458 #ifdef GetProcessAffinityMask
00459 #undef GetProcessAffinityMask
00460 #endif
00461 #define GetProcessAffinityMask    mozce_GetProcessAffinityMask
00462 
00463 #ifdef CommDlgExtendedError
00464 #undef CommDlgExtendedError
00465 #endif
00466 #define CommDlgExtendedError     mozce_CommDlgExtendedError
00467 
00468 #ifdef EnumChildWindows
00469 #undef EnumChildWindows
00470 #endif
00471 #define EnumChildWindows          mozce_EnumChildWindows
00472 
00473 #ifdef EnumFontFamiliesEx
00474 #undef EnumFontFamiliesEx
00475 #endif
00476 #define EnumFontFamiliesEx        mozce_EnumFontFamiliesEx
00477 
00478 #ifdef EnumThreadWindows
00479 #undef EnumThreadWindows
00480 #endif
00481 #define EnumThreadWindows         mozce_EnumThreadWindows
00482 
00483 #ifdef ExtSelectClipRgn
00484 #undef ExtSelectClipRgn
00485 #endif
00486 #define ExtSelectClipRgn          mozce_ExtSelectClipRgn
00487 
00488 #ifdef ExpandEnvironmentStrings
00489 #undef ExpandEnvironmentStrings
00490 #endif
00491 
00492 #ifdef ExpandEnvironmentStringsA
00493 #undef ExpandEnvironmentStringsA
00494 #endif
00495 
00496 #ifdef ExpandEnvironmentStringsW
00497 #undef ExpandEnvironmentStringsW
00498 #endif
00499 
00500 #define ExpandEnvironmentStrings   mozce_ExpandEnvironmentStrings
00501 #define ExpandEnvironmentStringsA  mozce_ExpandEnvironmentStrings
00502 #define ExpandEnvironmentStringsW  mozce_ExpandEnvironmentStringsW
00503 
00504 #ifdef FIXED
00505 #undef FIXED
00506 #endif
00507 #define FIXED                     mozce_FIXED
00508 
00509 #ifdef FlashWindow
00510 #undef FlashWindow
00511 #endif
00512 #define FlashWindow               mozce_FlashWindow
00513 
00514 #ifdef FrameRect
00515 #undef FrameRect
00516 #endif
00517 #define FrameRect                 mozce_FrameRect
00518 
00519 #ifdef GdiFlush
00520 #undef GdiFlush
00521 #endif
00522 #define GdiFlush                 mozce_GdiFlush
00523 
00524 #ifdef GLYPHMETRICS
00525 #undef GLYPHMETRICS
00526 #endif
00527 #define GLYPHMETRICS              mozce_GLYPHMETRICS
00528 
00529 #ifdef GetDIBits
00530 #undef GetDIBits
00531 #endif
00532 #define GetDIBits                 mozce_GetDIBits
00533 
00534 #ifdef GetEnvironmentVariable
00535 #undef GetEnvironmentVariable
00536 #endif
00537 #define GetEnvironmentVariable    mozce_GetEnvironmentVariable
00538 
00539 #ifdef GetEnvironmentVariableW
00540 #undef GetEnvironmentVariableW
00541 #endif
00542 #define GetEnvironmentVariableW    mozce_GetEnvironmentVariableW
00543 
00544 #ifdef GetFontData
00545 #undef GetFontData
00546 #endif
00547 #define GetFontData               mozce_GetFontData
00548 
00549 #ifdef GetFullPathName
00550 #undef GetFullPathName
00551 #endif
00552 #define GetFullPathName           mozce_GetFullPathName
00553 
00554 #ifdef GetIconInfo
00555 #undef GetIconInfo
00556 #endif
00557 #define GetIconInfo               mozce_GetIconInfo
00558 
00559 #ifdef GetMapMode
00560 #undef GetMapMode
00561 #endif
00562 #define GetMapMode                mozce_GetMapMode
00563 
00564 #ifdef GetMessageA
00565 #undef GetMessageA
00566 #endif
00567 #define GetMessageA               mozce_GetMessage
00568 
00569 #ifdef GetMessageTime
00570 #undef GetMessageTime
00571 #endif
00572 #define GetMessageTime            mozce_GetMessageTime
00573 
00574 #ifdef GetOutlineTextMetrics
00575 #undef GetOutlineTextMetrics
00576 #endif
00577 #define GetOutlineTextMetrics     mozce_GetOutlineTextMetrics
00578 
00579 #ifdef GetScrollPos
00580 #undef GetScrollPos
00581 #endif
00582 #define GetScrollPos              mozce_GetScrollPos
00583 
00584 #ifdef GetScrollRange
00585 #undef GetScrollRange
00586 #endif
00587 #define GetScrollRange            mozce_GetScrollRange
00588 
00589 #ifdef GetShortPathName
00590 #undef GetShortPathName
00591 #endif
00592 #define GetShortPathName          mozce_GetShortPathName
00593 
00594 #ifdef GetShortPathNameA
00595 #undef GetShortPathNameA
00596 #endif
00597 #define GetShortPathNameA          mozce_GetShortPathName
00598 
00599 
00600 #ifdef GetShortPathNameW
00601 #undef GetShortPathNameW
00602 #endif
00603 #define GetShortPathNameW          mozce_GetShortPathNameW
00604 
00605 #ifdef GetSystemTimeAsFileTime
00606 #undef GetSystemTimeAsFileTime
00607 #endif
00608 #define GetSystemTimeAsFileTime   mozce_GetSystemTimeAsFileTime
00609 
00610 #ifdef GetTextCharset
00611 #undef GetTextCharset
00612 #endif
00613 #define GetTextCharset            mozce_GetTextCharset
00614 
00615 #ifdef GetTextCharsetInfo
00616 #undef GetTextCharsetInfo
00617 #endif
00618 #define GetTextCharsetInfo        mozce_GetTextCharsetInfo
00619 
00620 #ifdef GetUserName
00621 #undef GetUserName
00622 #endif
00623 #define GetUserName               mozce_GetUserName
00624 
00625 #ifdef GetDriveType
00626 #undef GetDriveType
00627 #endif
00628 #define GetDriveType             mozce_GetDriveType
00629 
00630 #ifdef GetWindowPlacement
00631 #undef GetWindowPlacement
00632 #endif
00633 #define GetWindowPlacement       mozce_GetWindowPlacement
00634 
00635 #ifdef SetHandleInformation
00636 #undef SetHandleInformation
00637 #endif
00638 #define SetHandleInformation mozce_SetHandleInformation
00639 
00640 #ifdef GetHandleInformation
00641 #undef GetHandleInformation
00642 #endif
00643 #define GetHandleInformation mozce_GetHandleInformation
00644 
00645 #ifdef InvertRgn
00646 #undef InvertRgn
00647 #endif
00648 #define InvertRgn                 mozce_InvertRgn
00649 
00650 #ifdef IsIconic
00651 #undef IsIconic
00652 #endif
00653 #define IsIconic                  mozce_IsIconic
00654 
00655 #ifdef LPtoDP
00656 #undef LPtoDP
00657 #endif
00658 #define LPtoDP                    mozce_LPtoDP
00659 
00660 #ifdef LineDDA
00661 #undef LineDDA
00662 #endif
00663 #define LineDDA                   mozce_LineDDA
00664 
00665 #ifdef LineDDAProc
00666 #undef LineDDAProc
00667 #endif
00668 #define LineDDAProc               mozce_LineDDAProc
00669 
00670 #ifdef MAT2
00671 #undef MAT2
00672 #endif
00673 #define MAT2                      mozce_MAT2
00674 
00675 #ifdef MulDiv
00676 #undef MulDiv
00677 #endif
00678 #define MulDiv                    mozce_MulDiv
00679 
00680 #ifdef OUTLINETEXTMETRIC
00681 #undef OUTLINETEXTMETRIC
00682 #endif
00683 #define OUTLINETEXTMETRIC         mozce_OUTLINETEXTMETRIC
00684 
00685 #ifdef OpenIcon
00686 #undef OpenIcon
00687 #endif
00688 #define OpenIcon                  mozce_OpenIcon
00689 
00690 #ifdef OpenFileMapping
00691 #undef OpenFileMapping
00692 #endif
00693 #define OpenFileMapping           mozce_OpenFileMapping
00694 
00695 #ifdef Pie
00696 #undef Pie
00697 #endif
00698 #define Pie                       mozce_Pie
00699 
00700 #ifdef PeekMessageA
00701 #undef PeekMessageA
00702 #endif
00703 #define PeekMessageA              mozce_PeekMessage
00704 
00705 
00706 #ifdef RegCreateKey
00707 #undef RegCreateKey
00708 #endif
00709 #define RegCreateKey              mozce_RegCreateKey
00710 
00711 #ifdef SetArcDirection
00712 #undef SetArcDirection
00713 #endif
00714 #define SetArcDirection           mozce_SetArcDirection
00715 
00716 #ifdef SetClassLongA
00717 #undef SetClassLongA
00718 #endif
00719 #define SetClassLongA SetClassLongW
00720 
00721 #ifdef SetDIBits
00722 #undef SetDIBits
00723 #endif
00724 #define SetDIBits                 mozce_SetDIBits
00725 
00726 #ifdef SetMenu
00727 #undef SetMenu
00728 #endif
00729 #define SetMenu                   mozce_SetMenu
00730 
00731 #ifdef SetPolyFillMode
00732 #undef SetPolyFillMode
00733 #endif
00734 #define SetPolyFillMode           mozce_SetPolyFillMode
00735 
00736 #ifdef SetStretchBltMode
00737 #undef SetStretchBltMode
00738 #endif
00739 #define SetStretchBltMode         mozce_SetStretchBltMode
00740 
00741 #ifdef SetWindowsHookEx
00742 #undef SetWindowsHookEx
00743 #endif
00744 #define SetWindowsHookEx          mozce_SetWindowsHookEx
00745 
00746 #ifdef SetWindowTextA
00747 #undef SetWindowTextA
00748 #endif
00749 #define SetWindowTextA            mozce_SetWindowTextA
00750 
00751 #ifdef ShellExecute
00752 #undef ShellExecute
00753 #endif
00754 #define ShellExecute              mozce_ShellExecute
00755 
00756 #ifdef ShellExecuteA
00757 #undef ShellExecuteA
00758 #endif
00759 #define ShellExecuteA              mozce_ShellExecute
00760 
00761 #ifdef ShellExecuteW
00762 #undef ShellExecuteW
00763 #endif
00764 #define ShellExecuteW             mozce_ShellExecuteW
00765 
00766 #ifdef UnhookWindowsHookEx
00767 #undef UnhookWindowsHookEx
00768 #endif
00769 #define UnhookWindowsHookEx       mozce_UnhookWindowsHookEx
00770 
00771 #ifdef WaitMessage
00772 #undef WaitMessage
00773 #endif
00774 #define WaitMessage               mozce_WaitMessage
00775 
00776 #ifdef _CoLockObjectExternal
00777 #undef _CoLockObjectExternal
00778 #endif
00779 #define _CoLockObjectExternal     mozce_CoLockObjectExternal
00780 
00781 #ifdef IsClipboardFormatAvailable
00782 #undef IsClipboardFormatAvailable
00783 #endif
00784 #define IsClipboardFormatAvailable mozce_IsClipboardFormatAvailable
00785 
00786 #ifdef CoInitialize
00787 #undef CoInitialize
00788 #endif
00789 #define CoInitialize             mozce_CoInitialize
00790 
00791 #ifdef OleInitialize
00792 #undef OleInitialize
00793 #endif
00794 #define OleInitialize             mozce_OleInitialize
00795 
00796 #ifdef OleUninitialize
00797 #undef OleUninitialize
00798 #endif
00799 #define OleUninitialize          mozce_OleUninitialize
00800 
00801 #ifdef OleFlushClipboard
00802 #undef OleFlushClipboard
00803 #endif
00804 #define OleFlushClipboard        mozce_OleFlushClipboard
00805 
00806 #ifdef OleGetClipboard
00807 #undef OleGetClipboard
00808 #endif
00809 #define OleGetClipboard          mozce_OleGetClipboard
00810 
00811 #ifdef OleQueryLinkFromData
00812 #undef OleQueryLinkFromData
00813 #endif
00814 #define OleQueryLinkFromData     mozce_OleQueryLinkFromData
00815 
00816 #ifdef OleSetClipboard
00817 #undef OleSetClipboard
00818 #endif
00819 #define OleSetClipboard          mozce_OleSetClipboard
00820 
00821 #ifdef LockFile
00822 #undef LockFile
00823 #endif
00824 #define LockFile                 mozce_LockFile
00825 
00826 #ifdef UnlockFile
00827 #undef UnlockFile
00828 #endif
00829 #define UnlockFile               mozce_UnlockFile
00830 
00831 
00832 //#ifdef AlphaBlend
00833 //#undef AlphaBlend
00834 //#endif
00835 //#define AlphaBlend mozce_AlphaBlend
00836 
00837 // From win32a.cpp
00838 
00839 #ifdef CopyFileA
00840 #undef CopyFileA
00841 #endif
00842 #define CopyFileA                 mozce_CopyFileA
00843 
00844 #ifdef CreateDCA
00845 #undef CreateDCA
00846 #endif
00847 #define CreateDCA                 mozce_CreateDCA
00848 
00849 #ifdef CreateDCA2
00850 #undef CreateDCA2
00851 #endif
00852 #define CreateDCA2                mozce_CreateDCA2
00853 
00854 #ifdef CreateDirectoryA
00855 #undef CreateDirectoryA
00856 #endif
00857 #define CreateDirectoryA          mozce_CreateDirectoryA
00858 
00859 
00860 // We use a method named CreateEvent.  We do not want to map
00861 // CreateEvent to CreateEventA
00862 #ifdef CreateEvent
00863 #undef CreateEvent
00864 #endif
00865 #define CreateEvent               CreateEvent
00866 
00867 #ifdef CreateEventA
00868 #undef CreateEventA
00869 #endif
00870 #define CreateEventA              mozce_CreateEventA
00871 
00872 #ifdef CreateFileA
00873 #undef CreateFileA
00874 #endif
00875 #define CreateFileA               mozce_CreateFileA
00876 
00877 #ifdef CreateFileMappingA
00878 #undef CreateFileMappingA
00879 #endif
00880 #define CreateFileMappingA        mozce_CreateFileMappingA
00881 
00882 #ifdef CreateFontIndirectA
00883 #undef CreateFontIndirectA
00884 #endif
00885 #define CreateFontIndirectA       mozce_CreateFontIndirectA
00886 
00887 #ifdef CreateMutexA
00888 #undef CreateMutexA
00889 #endif
00890 #define CreateMutexA              mozce_CreateMutexA
00891 
00892 #ifdef CreateProcessA
00893 #undef CreateProcessA
00894 #endif
00895 #define CreateProcessA            mozce_CreateProcessA
00896 
00897 #ifdef CreateSemaphoreA
00898 #undef CreateSemaphoreA
00899 #endif
00900 #define CreateSemaphoreA          mozce_CreateSemaphoreA
00901 
00902 #ifdef CreateWindowExA
00903 #undef CreateWindowExA
00904 #endif
00905 #define CreateWindowExA           mozce_CreateWindowExA
00906 
00907 #ifdef DefWindowProcA
00908 #undef DefWindowProcA
00909 #endif
00910 #define DefWindowProcA            mozce_DefWindowProcA
00911 
00912 #ifdef DeleteFileA
00913 #undef DeleteFileA
00914 #endif
00915 #define DeleteFileA               mozce_DeleteFileA
00916 
00917 #ifdef DrawTextA
00918 #undef DrawTextA
00919 #endif
00920 #define DrawTextA                 mozce_DrawTextA
00921 
00922 #ifdef EnumFontFamiliesA
00923 #undef EnumFontFamiliesA
00924 #endif
00925 #define EnumFontFamiliesA         mozce_EnumFontFamiliesA
00926 
00927 #ifdef TextOut
00928 #undef TextOut
00929 #endif
00930 #define TextOut                   mozce_TextOutA
00931 
00932 #ifdef ExtTextOutA
00933 #undef ExtTextOutA
00934 #endif
00935 #define ExtTextOutA               mozce_ExtTextOutA
00936 
00937 #ifdef FindResourceA
00938 #undef FindResourceA
00939 #endif
00940 #define FindResourceA             mozce_FindResourceA
00941 
00942 #ifdef FindWindowA
00943 #undef FindWindowA
00944 #endif
00945 #define FindWindowA               mozce_FindWindowA
00946 
00947 #ifdef FormatMessageA
00948 #undef FormatMessageA
00949 #endif
00950 #define FormatMessageA            mozce_FormatMessageA
00951 
00952 #ifdef GetClassInfoA
00953 #undef GetClassInfoA
00954 #endif
00955 #define GetClassInfoA             mozce_GetClassInfoA
00956 
00957 #ifdef GetClassNameA
00958 #undef GetClassNameA
00959 #endif
00960 #define GetClassNameA             mozce_GetClassNameA
00961 
00962 #ifdef GetCurrentDirectoryA
00963 #undef GetCurrentDirectoryA
00964 #endif
00965 #define GetCurrentDirectoryA      mozce_GetCurrentDirectoryA
00966 
00967 #ifdef GetDiskFreeSpaceA
00968 #undef GetDiskFreeSpaceA
00969 #endif
00970 #define GetDiskFreeSpaceA         mozce_GetDiskFreeSpaceA
00971 
00972 #ifdef GetDlgItemTextA
00973 #undef GetDlgItemTextA
00974 #endif
00975 #define GetDlgItemTextA           mozce_GetDlgItemTextA
00976 
00977 #ifdef GetEnvironmentVariableA
00978 #undef GetEnvironmentVariableA
00979 #endif
00980 #define GetEnvironmentVariableA   mozce_GetEnvironmentVariableA
00981 
00982 #ifdef GetFileAttributesA
00983 #undef GetFileAttributesA
00984 #endif
00985 #define GetFileAttributesA        mozce_GetFileAttributesA
00986 
00987 #ifdef GetFileVersionInfoA
00988 #undef GetFileVersionInfoA
00989 #endif
00990 #define GetFileVersionInfoA       mozce_GetFileVersionInfoA
00991 
00992 #ifdef GetFileVersionInfoSizeA
00993 #undef GetFileVersionInfoSizeA
00994 #endif
00995 #define GetFileVersionInfoSizeA   mozce_GetFileVersionInfoSizeA
00996 
00997 #ifdef GetGlyphOutlineA
00998 #undef GetGlyphOutlineA
00999 #endif
01000 #define GetGlyphOutlineA          mozce_GetGlyphOutlineA
01001 
01002 #ifdef GetLocaleInfoA
01003 #undef GetLocaleInfoA
01004 #endif
01005 #define GetLocaleInfoA            mozce_GetLocaleInfoA
01006 
01007 #ifdef GetModuleFileNameA
01008 #undef GetModuleFileNameA
01009 #endif
01010 #define GetModuleFileNameA        mozce_GetModuleFileNameA
01011 
01012 #ifdef GetModuleHandleA
01013 #undef GetModuleHandleA
01014 #endif
01015 #define GetModuleHandleA          mozce_GetModuleHandleA
01016 
01017 #ifdef GetObjectA
01018 #undef GetObjectA
01019 #endif
01020 #define GetObjectA                mozce_GetObjectA
01021 
01022 #ifdef GetOpenFileNameA
01023 #undef GetOpenFileNameA
01024 #endif
01025 #define GetOpenFileNameA          mozce_GetOpenFileNameA
01026 
01027 #ifdef GetProcAddress
01028 #undef GetProcAddress
01029 #endif
01030 #define GetProcAddress            mozce_GetProcAddressA
01031 
01032 #ifdef GetProcAddressA
01033 #undef GetProcAddressA
01034 #endif
01035 #define GetProcAddressA           mozce_GetProcAddressA
01036 
01037 #ifdef GetPropA
01038 #undef GetPropA
01039 #endif
01040 #define GetPropA                  mozce_GetPropA
01041 
01042 #ifdef GetSaveFileNameA
01043 #undef GetSaveFileNameA
01044 #endif
01045 #define GetSaveFileNameA          mozce_GetSaveFileNameA
01046 
01047 #ifdef GetSystemDirectory
01048 #undef GetSystemDirectory
01049 #endif
01050 #define GetSystemDirectory        mozce_GetSystemDirectoryA
01051 
01052 #ifdef GetSystemDirectoryA
01053 #undef GetSystemDirectoryA
01054 #endif
01055 #define GetSystemDirectoryA       mozce_GetSystemDirectoryA
01056 
01057 #ifdef GetTextExtentExPointA
01058 #undef GetTextExtentExPointA
01059 #endif
01060 #define GetTextExtentExPointA     mozce_GetTextExtentExPointA
01061 
01062 #ifdef GetTextFaceA
01063 #undef GetTextFaceA
01064 #endif
01065 #define GetTextFaceA              mozce_GetTextFaceA
01066 
01067 #ifdef GetTextMetricsA
01068 #undef GetTextMetricsA
01069 #endif
01070 #define GetTextMetricsA           mozce_GetTextMetricsA
01071 
01072 #ifdef GetVersionExA
01073 #undef GetVersionExA
01074 #endif
01075 #define GetVersionExA             mozce_GetVersionExA
01076 
01077 #ifdef GetWindowsDirectory
01078 #undef GetWindowsDirectory
01079 #endif
01080 #define GetWindowsDirectory       mozce_GetWindowsDirectoryA
01081 
01082 #ifdef GetWindowsDirectoryA
01083 #undef GetWindowsDirectoryA
01084 #endif
01085 #define GetWindowsDirectoryA      mozce_GetWindowsDirectoryA
01086 
01087 #ifdef GlobalAddAtomA
01088 #undef GlobalAddAtomA
01089 #endif
01090 #define GlobalAddAtomA            mozce_GlobalAddAtomA
01091 
01092 #ifdef LoadBitmapA
01093 #undef LoadBitmapA
01094 #endif
01095 #define LoadBitmapA               mozce_LoadBitmapA
01096 
01097 #ifdef LoadCursorA
01098 #undef LoadCursorA
01099 #endif
01100 #define LoadCursorA               mozce_LoadCursorA
01101 
01102 #ifdef LoadIconA
01103 #undef LoadIconA
01104 #endif
01105 #define LoadIconA                 mozce_LoadIconA
01106 
01107 #ifdef LoadImageA
01108 #undef LoadImageA
01109 #endif
01110 #define LoadImageA                mozce_LoadImageA
01111 
01112 #ifdef LoadLibraryA
01113 #undef LoadLibraryA
01114 #endif
01115 #define LoadLibraryA              mozce_LoadLibraryA
01116 
01117 #ifdef LoadMenuA
01118 #undef LoadMenuA
01119 #endif
01120 #define LoadMenuA                 mozce_LoadMenuA
01121 
01122 #ifdef LoadStringA
01123 #undef LoadStringA
01124 #endif
01125 #define LoadStringA               mozce_LoadStringA
01126 
01127 #ifdef MessageBoxA
01128 #undef MessageBoxA
01129 #endif
01130 #define MessageBoxA               mozce_MessageBoxA
01131 
01132 #ifdef MoveFileA
01133 #undef MoveFileA
01134 #endif
01135 #define MoveFileA                 mozce_MoveFileA
01136 
01137 #ifdef OpenSemaphoreA
01138 #undef OpenSemaphoreA
01139 #endif
01140 #define OpenSemaphoreA            mozce_OpenSemaphoreA
01141 
01142 #ifdef OutputDebugStringA
01143 #undef OutputDebugStringA
01144 #endif
01145 #define OutputDebugStringA        mozce_OutputDebugStringA
01146 
01147 #ifdef PostMessageA
01148 #undef PostMessageA
01149 #endif
01150 #define PostMessageA              mozce_PostMessageA
01151 
01152 #ifdef RegEnumKeyExA
01153 #undef RegEnumKeyExA
01154 #endif
01155 #define RegEnumKeyExA             mozce_RegEnumKeyExA
01156 
01157 #ifdef RegOpenKeyExA
01158 #undef RegOpenKeyExA
01159 #endif
01160 #define RegOpenKeyExA             mozce_RegOpenKeyExA
01161 
01162 #ifdef RegQueryValueExA
01163 #undef RegQueryValueExA
01164 #endif
01165 #define RegQueryValueExA          mozce_RegQueryValueExA
01166 
01167 #ifdef RegSetValueExA
01168 #undef RegSetValueExA
01169 #endif
01170 #define RegSetValueExA            mozce_RegSetValueExA
01171 
01172 #ifdef RegCreateKeyExA
01173 #undef RegCreateKeyExA
01174 #endif
01175 #define RegCreateKeyExA           mozce_RegCreateKeyExA
01176 
01177 #ifdef RegDeleteValueA
01178 #undef RegDeleteValueA
01179 #endif
01180 #define RegDeleteValueA           mozce_RegDeleteValueA
01181 
01182 #ifdef RegisterClassA
01183 #undef RegisterClassA
01184 #endif
01185 #define RegisterClassA            mozce_RegisterClassA
01186 
01187 #ifdef RegisterClipboardFormatA
01188 #undef RegisterClipboardFormatA
01189 #endif
01190 #define RegisterClipboardFormatA  mozce_RegisterClipboardFormatA
01191 
01192 #ifdef RegisterWindowMessageA
01193 #undef RegisterWindowMessageA
01194 #endif
01195 #define RegisterWindowMessageA    mozce_RegisterWindowMessageA
01196 
01197 #ifdef RemoveDirectoryA
01198 #undef RemoveDirectoryA
01199 #endif
01200 #define RemoveDirectoryA          mozce_RemoveDirectoryA
01201 
01202 #ifdef RemovePropA
01203 #undef RemovePropA
01204 #endif
01205 #define RemovePropA               mozce_RemovePropA
01206 
01207 #ifdef SendMessageA
01208 #undef SendMessageA
01209 #endif
01210 #define SendMessageA              mozce_SendMessageA
01211 
01212 #ifdef SetCurrentDirectoryA
01213 #undef SetCurrentDirectoryA
01214 #endif
01215 #define SetCurrentDirectoryA      mozce_SetCurrentDirectoryA
01216 
01217 #ifdef SetCurrentDirectory
01218 #undef SetCurrentDirectory
01219 #endif
01220 #define SetCurrentDirectory      mozce_SetCurrentDirectoryA
01221 
01222 #ifdef SetDlgItemTextA
01223 #undef SetDlgItemTextA
01224 #endif
01225 #define SetDlgItemTextA           mozce_SetDlgItemTextA
01226 
01227 #ifdef SetEnvironmentVariable
01228 #undef SetEnvironmentVariable
01229 #endif
01230 #define SetEnvironmentVariable    mozce_SetEnvironmentVariableA
01231 
01232 #ifdef SetEnvironmentVariableA
01233 #undef SetEnvironmentVariableA
01234 #endif
01235 #define SetEnvironmentVariableA   mozce_SetEnvironmentVariableA
01236 
01237 #ifdef SetPropA
01238 #undef SetPropA
01239 #endif
01240 #define SetPropA                  mozce_SetPropA
01241 
01242 #ifdef StartDocA
01243 #undef StartDocA
01244 #endif
01245 #define StartDocA                 mozce_StartDocA
01246 
01247 #ifdef UnregisterClassA
01248 #undef UnregisterClassA
01249 #endif
01250 #define UnregisterClassA          mozce_UnregisterClassA
01251 
01252 #ifdef VerQueryValueA
01253 #undef VerQueryValueA
01254 #endif
01255 #define VerQueryValueA            mozce_VerQueryValueA
01256 
01257 
01258 #ifdef CreateDialogIndirectParamA
01259 #undef CreateDialogIndirectParamA
01260 #endif
01261 #define CreateDialogIndirectParamA CreateDialogIndirectParamW
01262 
01263 #ifdef SystemParametersInfoA
01264 #undef SystemParametersInfoA
01265 #endif
01266 #define SystemParametersInfoA      SystemParametersInfoW
01267 
01268 #ifdef DispatchMessageA
01269 #undef DispatchMessageA
01270 #endif
01271 #define DispatchMessageA           DispatchMessageW
01272 
01273 #ifdef CallWindowProcA
01274 #undef CallWindowProcA
01275 #endif
01276 #define CallWindowProcA            CallWindowProcW
01277 
01278 #ifdef GetWindowLongA
01279 #undef GetWindowLongA
01280 #endif
01281 #define GetWindowLongA             GetWindowLongW
01282 
01283 #ifdef SetWindowLongA
01284 #undef SetWindowLongA
01285 #endif
01286 #define SetWindowLongA             SetWindowLongW
01287 
01288 #ifdef MapVirtualKeyA
01289 #undef MapVirtualKeyA
01290 #endif
01291 #define MapVirtualKeyA             MapVirtualKeyW
01292 
01293 
01294 #undef FindFirstFile
01295 #undef FindNextFile
01296 
01297 #ifdef FindFirstFileA
01298 #undef FindFirstFileA
01299 #endif
01300 #define FindFirstFileA              mozce_FindFirstFileA
01301 
01302 #ifdef FindNextFileA
01303 #undef FindNextFileA
01304 #endif
01305 #define FindNextFileA               mozce_FindNextFileA
01306 
01307 #ifdef FindFirstFile
01308 #undef FindFirstFile
01309 #endif
01310 #define FindFirstFile              FindFirstFileW
01311 
01312 #ifdef FindNextFile
01313 #undef FindNextFile
01314 #endif
01315 #define FindNextFile               FindNextFileW
01316 
01317 
01318 #if 1
01319 
01320 #ifdef GetProp
01321 #undef GetProp
01322 #endif
01323 #define GetProp                   mozce_GetPropA
01324 
01325 #ifdef SetProp
01326 #undef SetProp
01327 #endif
01328 #define SetProp                   mozce_SetPropA
01329 
01330 #ifdef RemoveProp
01331 #undef RemoveProp
01332 #endif
01333 #define RemoveProp                mozce_RemovePropA
01334 
01335 #endif
01336 
01337 
01338 // From win32w.cpp
01339 #ifdef GetCurrentDirectory
01340 #undef GetCurrentDirectory
01341 #endif
01342 #define GetCurrentDirectory       mozce_GetCurrentDirectoryW
01343 
01344 #ifdef GetGlyphOutlineW
01345 #undef GetGlyphOutlineW
01346 #endif
01347 #define GetGlyphOutlineW          mozce_GetGlyphOutlineW
01348 
01349 #ifdef GetSystemDirectoryW
01350 #undef GetSystemDirectoryW
01351 #endif
01352 #define GetSystemDirectoryW       mozce_GetSystemDirectoryW
01353 
01354 #ifdef GetWindowsDirectoryW
01355 #undef GetWindowsDirectoryW
01356 #endif
01357 #define GetWindowsDirectoryW      mozce_GetWindowsDirectoryW
01358 
01359 #ifdef OpenSemaphore
01360 #undef OpenSemaphore
01361 #endif
01362 #define OpenSemaphore             mozce_OpenSemaphoreW
01363 
01364 #ifdef OpenSemaphoreW
01365 #undef OpenSemaphoreW
01366 #endif
01367 #define OpenSemaphoreW            mozce_OpenSemaphoreW
01368 
01369 #ifdef SetCurrentDirectoryW
01370 #undef SetCurrentDirectoryW
01371 #endif
01372 #define SetCurrentDirectoryW      mozce_SetCurrentDirectoryW
01373 
01374 #endif // MOZCE_SHUNT_EXPORTS
01375 
01377 // Function Declarations
01379 
01380 #ifdef __cplusplus
01381 extern "C" {
01382 #endif
01383 
01384   // From assert.cpp
01385   MOZCE_SHUNT_API void mozce_assert(int inExpression);
01386   
01387   // From direct.cpp
01388   MOZCE_SHUNT_API int mozce_mkdir(const char* inDirname);
01389   MOZCE_SHUNT_API int mozce_rmdir(const char* inDirname);
01390   
01391   // From errno.cpp
01392   extern MOZCE_SHUNT_API int mozce_errno;
01393   
01394   // From io.cpp
01395   MOZCE_SHUNT_API int mozce_chmod(const char* inFilename, int inMode);
01396   MOZCE_SHUNT_API int mozce_isatty(int inHandle);
01397   MOZCE_SHUNT_API int mozce_fileno(FILE* inHandle);
01398 
01399   MOZCE_SHUNT_API struct protoent* mozce_getprotobyname(const char* inName);
01400   MOZCE_SHUNT_API struct protoent* mozce_getprotobynumber(int inNumber);
01401   
01402   // From mbstring.cpp
01403   MOZCE_SHUNT_API unsigned char* mozce_mbsinc(const unsigned char* inCurrent);
01404   MOZCE_SHUNT_API unsigned char* mozce_mbspbrk(const unsigned char* inString, const unsigned char* inStrCharSet);
01405   MOZCE_SHUNT_API unsigned char* mozce_mbschr(const unsigned char* inString, unsigned int inC);
01406   MOZCE_SHUNT_API unsigned char* mozce_mbsrchr(const unsigned char* inString, unsigned int inC);
01407   MOZCE_SHUNT_API int            mozce_mbsicmp(const unsigned char *string1, const unsigned char *string2);
01408   MOZCE_SHUNT_API unsigned char* mozce_mbsdec(const unsigned char *string1, const unsigned char *string2);
01409   
01410   // From process.cpp
01411   MOZCE_SHUNT_API void mozce_abort(void);
01412   MOZCE_SHUNT_API char* mozce_getenv(const char* inName);
01413   MOZCE_SHUNT_API int mozce_putenv(const char *a);
01414   MOZCE_SHUNT_API int mozce_getpid(void);
01415 
01416   // From signal.cpp
01417   MOZCE_SHUNT_API int mozce_raise(int inSignal);
01418   MOZCE_SHUNT_API _sigsig mozce_signal(int inSignal, _sigsig inFunc);
01419   
01420   // From stat.cpp
01421   MOZCE_SHUNT_API int mozce_stat(const char *inPath, struct mozce_stat * outStat);
01422   
01423   // From stdio.cpp
01424   MOZCE_SHUNT_API int mozce_access(const char *path, int mode);
01425   MOZCE_SHUNT_API void mozce_rewind(FILE* inStream);
01426   MOZCE_SHUNT_API FILE* mozce_fdopen(int inFD, const char* inMode);
01427   MOZCE_SHUNT_API void mozce_perror(const char* inString);
01428   MOZCE_SHUNT_API int mozce_remove(const char* inPath);
01429 
01430   MOZCE_SHUNT_API char* mozce_getcwd(char* buff, size_t size);
01431   
01432   MOZCE_SHUNT_API int mozce_printf(const char *, ...);
01433 
01434   MOZCE_SHUNT_API int mozce_open(const char *pathname, int flags, int mode);
01435   MOZCE_SHUNT_API int mozce_close(int fp);
01436   MOZCE_SHUNT_API size_t mozce_read(int fp, void* buffer, size_t count);
01437   MOZCE_SHUNT_API size_t mozce_write(int fp, const void* buffer, size_t count);
01438   MOZCE_SHUNT_API int mozce_unlink(const char *pathname);
01439   MOZCE_SHUNT_API int mozce_lseek(int fildes, int offset, int whence);
01440 
01441 
01442   // From stdlib.cpp
01443   MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* outDir, char* outFname, char* outExt);
01444   MOZCE_SHUNT_API void mozce_makepath(char* outPath, const char* inDrive, const char* inDir, const char* inFname, const char* inExt);
01445   MOZCE_SHUNT_API char* mozce_fullpath(char *, const char *, size_t);
01446   
01447   // From string.cpp
01448   MOZCE_SHUNT_API char* mozce_strerror(int);
01449   MOZCE_SHUNT_API int mozce_wsprintfA(LPTSTR lpOut, LPCTSTR lpFmt, ... );
01450 
01451   // From time.cpp
01452   MOZCE_SHUNT_API struct tm* mozce_localtime_r(const time_t* inTimeT,struct tm* outRetval);
01453   MOZCE_SHUNT_API struct tm* mozce_gmtime_r(const time_t* inTimeT, struct tm* outRetval);
01454   MOZCE_SHUNT_API time_t mozce_time(time_t* inStorage);
01455   MOZCE_SHUNT_API char* mozce_ctime(const time_t* timer);
01456   MOZCE_SHUNT_API struct tm* mozce_localtime(const time_t* inTimeT);
01457   MOZCE_SHUNT_API struct tm* mozce_gmtime(const time_t* inTimeT);
01458   MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM);
01459   MOZCE_SHUNT_API size_t mozce_strftime(char *strDest, size_t maxsize, const char *format, const struct tm *timeptr);
01460 
01461 #if UNDER_CE<501  //already defined in 5.0 sdk
01462   // from win32.cpp
01463 
01464   MOZCE_SHUNT_API BOOL mozce_AlphaBlend(  HDC hdcDest,
01465                                                                         int nXOriginDest,
01466                                                                         int nYOriginDest,
01467                                                                         int nWidthDest,
01468                                                                         int nHeightDest,
01469                                                                         HDC hdcSrc,
01470                                                                         int nXOriginSrc,
01471                                                                         int nYOriginSrc,
01472                                                                         int nWidthSrc,
01473                                                                         int nHeightSrc,
01474                                           BLENDFUNCTION blendFunction);
01475 #endif
01476 
01477   MOZCE_SHUNT_API struct lconv * mozce_localeconv(void);
01478        
01479   MOZCE_SHUNT_API BOOL mozce_CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes, DWORD nSize);
01480 
01481   MOZCE_SHUNT_API DWORD_PTR mozce_SetThreadAffinityMask(HANDLE hThread, DWORD_PTR dwThreadAffinityMask);
01482   MOZCE_SHUNT_API BOOL mozce_GetProcessAffinityMask(HANDLE hProcess, PDWORD_PTR lpProcessAffinityMask, PDWORD_PTR lpSystemAffinityMask);
01483 
01484   VOID CALLBACK mozce_LineDDAProc(int X, int Y, LPARAM lpData);
01485   typedef void (*mozce_LINEDDAPROC) (int X, int Y, LPARAM lpData);
01486 
01487   MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator);
01488   MOZCE_SHUNT_API int mozce_GetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, LPVOID inBits, LPBITMAPINFO inInfo, UINT inUsage);
01489   MOZCE_SHUNT_API int mozce_SetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, CONST LPVOID inBits, CONST LPBITMAPINFO inInfo, UINT inUsage);
01490   MOZCE_SHUNT_API DWORD mozce_CommDlgExtendedError(void);
01491   MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap(HDC inDC, CONST BITMAPINFOHEADER *inBMIH, DWORD inInit, CONST VOID *inBInit, CONST BITMAPINFO *inBMI, UINT inUsage);
01492   MOZCE_SHUNT_API int mozce_SetPolyFillMode(HDC inDC, int inPolyFillMode);
01493   MOZCE_SHUNT_API int mozce_SetStretchBltMode(HDC inDC, int inStretchMode);
01494   MOZCE_SHUNT_API int mozce_ExtSelectClipRgn(HDC inDC, HRGN inRGN, int inMode);
01495   MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStrings(LPCTSTR lpSrc, LPTSTR lpDst, DWORD nSize);
01496   MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStringsW(const unsigned short * lpSrc, const unsigned short * lpDst, DWORD nSize);
01497 
01498   MOZCE_SHUNT_API BOOL mozce_LineDDA(int inXStart, int inYStart, int inXEnd, int inYEnd, mozce_LINEDDAPROC inLineFunc, LPARAM inData);
01499   MOZCE_SHUNT_API int mozce_FrameRect(HDC inDC, CONST RECT *inRect, HBRUSH inBrush);
01500   MOZCE_SHUNT_API BOOL mozce_GdiFlush(void);
01501   MOZCE_SHUNT_API int mozce_SetArcDirection(HDC inDC, int inArcDirection);
01502   MOZCE_SHUNT_API BOOL mozce_Arc(HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXStartArc, int inYStartArc, int inXEndArc, int inYEndArc);
01503   MOZCE_SHUNT_API BOOL mozce_Pie(HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXRadial1, int inYRadial1, int inXRadial2, int inYRadial2);
01504   MOZCE_SHUNT_API UINT mozce_GetDriveType(const char* lpRootPathName);
01505 
01506   MOZCE_SHUNT_API DWORD mozce_GetFontData(HDC inDC, DWORD inTable, DWORD inOffset, LPVOID outBuffer, DWORD inData);
01507   MOZCE_SHUNT_API UINT mozce_GetTextCharset(HDC inDC);
01508   MOZCE_SHUNT_API UINT mozce_GetTextCharsetInfo(HDC inDC, LPFONTSIGNATURE outSig, DWORD inFlags);
01509   MOZCE_SHUNT_API UINT mozce_GetOutlineTextMetrics(HDC inDC, UINT inData, void* outOTM);
01510   MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx(HDC inDC, const LOGFONTA* inLogfont, FONTENUMPROC inFunc, LPARAM inParam, DWORD inFlags);
01511   MOZCE_SHUNT_API int mozce_GetMapMode(HDC inDC);
01512   MOZCE_SHUNT_API BOOL mozce_GetIconInfo(HICON inIcon, PICONINFO outIconinfo);
01513   MOZCE_SHUNT_API BOOL mozce_LPtoDP(HDC inDC, LPPOINT inoutPoints, int inCount);
01514   MOZCE_SHUNT_API LONG mozce_RegCreateKey(HKEY inKey, LPCTSTR inSubKey, PHKEY outResult);
01515   MOZCE_SHUNT_API BOOL mozce_WaitMessage(VOID);
01516   MOZCE_SHUNT_API BOOL mozce_FlashWindow(HWND inWnd, BOOL inInvert);
01517   MOZCE_SHUNT_API BOOL mozce_EnumChildWindows(HWND inParent, WNDENUMPROC inFunc, LPARAM inParam);
01518   MOZCE_SHUNT_API BOOL mozce_EnumThreadWindows(DWORD inThreadID, WNDENUMPROC inFunc, LPARAM inParam);
01519   MOZCE_SHUNT_API BOOL mozce_IsIconic(HWND inWnd);
01520   MOZCE_SHUNT_API BOOL mozce_OpenIcon(HWND inWnd);
01521   MOZCE_SHUNT_API HANDLE mozce_OpenFileMapping(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCTSTR lpName);
01522   MOZCE_SHUNT_API HHOOK mozce_SetWindowsHookEx(int inType, void* inFunc, HINSTANCE inMod, DWORD inThreadId);
01523   MOZCE_SHUNT_API HINSTANCE mozce_ShellExecute(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd);
01524   MOZCE_SHUNT_API HINSTANCE mozce_ShellExecuteW(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd);
01525   MOZCE_SHUNT_API BOOL mozce_UnhookWindowsHookEx(HHOOK inHook);
01526   MOZCE_SHUNT_API LRESULT mozce_CallNextHookEx(HHOOK inHook, int inCode, WPARAM wParam, LPARAM lParam);
01527 
01528   MOZCE_SHUNT_API BOOL mozce_GetWindowPlacement(HWND window, WINDOWPLACEMENT *lpwndpl);
01529   MOZCE_SHUNT_API BOOL mozce_InvertRgn(HDC inDC, HRGN inRGN);
01530   MOZCE_SHUNT_API int mozce_GetScrollPos(HWND inWnd, int inBar);
01531   MOZCE_SHUNT_API BOOL mozce_GetScrollRange(HWND inWnd, int inBar, LPINT outMinPos, LPINT outMaxPos);
01532   MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock, BOOL inLastUnlockReleases);
01533   MOZCE_SHUNT_API HRESULT mozce_CoInitialize(LPVOID pvReserved);
01534   MOZCE_SHUNT_API LRESULT mozce_OleInitialize(LPVOID pvReserved);
01535   MOZCE_SHUNT_API void    mozce_OleUninitialize();;
01536   MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj);
01537   MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject** outDataObj);
01538   MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard(void);
01539   MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData(IDataObject* inSrcDataObject);
01540   MOZCE_SHUNT_API BOOL  mozce_IsClipboardFormatAvailable(UINT format);
01541 
01542   //MOZCE_SHUNT_API void* mozce_SHBrowseForFolder(void* /*LPBROWSEINFOS*/ inBI);
01543   MOZCE_SHUNT_API BOOL mozce_SetMenu(HWND inWnd, HMENU inMenu);
01544   MOZCE_SHUNT_API BOOL mozce_GetUserName(LPTSTR inBuffer, LPDWORD inoutSize);
01545   MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShortPath, DWORD inBufferSize);
01546   MOZCE_SHUNT_API DWORD mozce_GetShortPathNameW(LPCWSTR aLPATH, LPWSTR aSPATH, DWORD aLen);
01547 
01548   MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariable(LPCSTR lpName, LPCSTR lpBuffer, DWORD nSize);
01549   MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableW(LPCWSTR lpName, LPWSTR lpBuffer, DWORD nSize);
01550   MOZCE_SHUNT_API HMENU mozce_LoadMenuA(HINSTANCE hInstance, LPCSTR lpMenuName);
01551 
01552   MOZCE_SHUNT_API void mozce_GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime);
01553   MOZCE_SHUNT_API DWORD mozce_GetFullPathName(const char* lpFileName, DWORD nBufferLength, const char* lpBuffer, const char** lpFilePart);
01554 
01555   MOZCE_SHUNT_API UINT mozce_GetACP(void);
01556 
01557   MOZCE_SHUNT_API BOOL mozce_PeekMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg);
01558   MOZCE_SHUNT_API BOOL mozce_GetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax);
01559   MOZCE_SHUNT_API LONG mozce_GetMessageTime(void);
01560   
01561   MOZCE_SHUNT_API BOOL mozce_LockFile(HANDLE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHigh,
01562                                       DWORD nNumberOfBytesToLockLow, DWORD nNumberOfBytesToLockHigh);
01563   MOZCE_SHUNT_API BOOL mozce_UnlockFile(HANDLE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHigh,
01564                                         DWORD nNumberOfBytesToLockLow, DWORD nNumberOfBytesToLockHigh);
01565 
01566   // from win32a.cpp
01567   
01568   MOZCE_SHUNT_API BOOL mozce_SetHandleInformation(HANDLE hObject, DWORD dwMask, DWORD dwFlags);
01569   MOZCE_SHUNT_API BOOL mozce_GetHandleInformation(HANDLE hObject, LPDWORD lpdwFlags);
01570 
01571   MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineA(HDC inDC, CHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST mozce_MAT2* inMAT2);
01572 
01573   MOZCE_SHUNT_API ATOM mozce_GlobalAddAtomA(LPCSTR lpString);
01574   MOZCE_SHUNT_API ATOM mozce_RegisterClassA(CONST WNDCLASSA *lpwc);
01575   MOZCE_SHUNT_API BOOL mozce_CopyFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists);
01576   MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA(LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes);
01577   MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA(LPCSTR lpPathName);
01578   MOZCE_SHUNT_API HANDLE mozce_CreateMutexA(LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, LPCSTR lpName);
01579   MOZCE_SHUNT_API BOOL mozce_CreateProcessA(LPCSTR pszImageName, LPCSTR pszCmdLine, LPSECURITY_ATTRIBUTES psaProcess, LPSECURITY_ATTRIBUTES psaThread, BOOL fInheritHandles, DWORD fdwCreate, LPVOID pvEnvironment, LPSTR pszCurDir, LPSTARTUPINFO psiStartInfo, LPPROCESS_INFORMATION pProcInfo);
01580 
01581   MOZCE_SHUNT_API BOOL mozce_ExtTextOutA(HDC inDC, int inX, int inY, UINT inOptions, LPCRECT inRect, const char* inString, UINT inCount, const LPINT inDx);
01582   MOZCE_SHUNT_API BOOL mozce_TextOutA(HDC hdc, int  nXStart, int  nYStart, const char* lpString, int  cbString);
01583 
01584   MOZCE_SHUNT_API BOOL mozce_GetClassInfoA(HINSTANCE hInstance, LPCSTR lpClassName, LPWNDCLASS lpWndClass);
01585   MOZCE_SHUNT_API int mozce_GetClassNameA(HWND hWnd, LPTSTR lpClassName, int nMaxCount);
01586   MOZCE_SHUNT_API BOOL mozce_GetFileVersionInfoA(const char* inFilename, DWORD inHandle, DWORD inLen, LPVOID outData);
01587   MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA(HDC inDC, const char* inStr, int inLen, int inMaxExtent, LPINT outFit, LPINT outDx, LPSIZE inSize);
01588   MOZCE_SHUNT_API BOOL mozce_GetVersionExA(LPOSVERSIONINFOA lpv);
01589   MOZCE_SHUNT_API BOOL mozce_DeleteFileA(LPCSTR lpFileName);
01590   MOZCE_SHUNT_API BOOL mozce_MoveFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName);
01591   MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryA(LPCSTR inPathName);
01592   MOZCE_SHUNT_API BOOL mozce_VerQueryValueA(const LPVOID inBlock, LPSTR inSubBlock, LPVOID *outBuffer, PUINT outLen);
01593   MOZCE_SHUNT_API BOOL mozce_UnregisterClassA(LPCSTR lpClassName, HINSTANCE hInstance);
01594   MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryA(DWORD inBufferLength, LPSTR outBuffer);
01595   MOZCE_SHUNT_API BOOL mozce_GetDiskFreeSpaceA(LPCTSTR lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters);
01596   MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer, DWORD nSize);
01597   MOZCE_SHUNT_API DWORD mozce_GetFileAttributesA(LPCSTR lpFileName);
01598   MOZCE_SHUNT_API DWORD mozce_GetFileVersionInfoSizeA(const char* inFilename, LPDWORD outHandle);
01599   MOZCE_SHUNT_API DWORD mozce_GetModuleFileNameA(HMODULE hModule, LPSTR lpFilename, DWORD nSize);
01600   MOZCE_SHUNT_API DWORD mozce_SetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer);
01601   MOZCE_SHUNT_API HANDLE mozce_CreateFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
01602   MOZCE_SHUNT_API HANDLE mozce_LoadImageA(HINSTANCE inInst, LPCSTR inName, UINT inType, int inCX, int inCY, UINT inLoad);
01603   MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreA(DWORD inDesiredAccess, BOOL inInheritHandle, LPCSTR inName);
01604   MOZCE_SHUNT_API HDC mozce_CreateDCA(LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODEA* inInitData);
01605   MOZCE_SHUNT_API HDC mozce_CreateDCA2(LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODE* inInitData);
01606   MOZCE_SHUNT_API HWND mozce_CreateWindowExA(DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam );
01607   MOZCE_SHUNT_API HWND mozce_FindWindowA(LPCSTR inClass, LPCSTR inWindow);
01608   MOZCE_SHUNT_API LONG mozce_RegEnumKeyExA(HKEY inKey, DWORD inIndex, LPSTR outName, LPDWORD inoutName, LPDWORD inReserved, LPSTR outClass, LPDWORD inoutClass, PFILETIME inLastWriteTime);
01609   MOZCE_SHUNT_API LONG mozce_RegOpenKeyExA(HKEY inKey, LPCSTR inSubKey, DWORD inOptions, REGSAM inSAM, PHKEY outResult);
01610   MOZCE_SHUNT_API LONG mozce_RegQueryValueExA(HKEY inKey, LPCSTR inValueName, LPDWORD inReserved, LPDWORD outType, LPBYTE inoutBData, LPDWORD inoutDData);
01611 
01612   MOZCE_SHUNT_API LONG mozce_RegSetValueExA(HKEY hKey, const char *valname, DWORD dwReserved, DWORD dwType, const BYTE* lpData, DWORD dwSize);
01613   MOZCE_SHUNT_API LONG mozce_RegCreateKeyExA(HKEY hKey, const char *subkey, DWORD dwRes, LPSTR lpszClass, DWORD ulOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES sec_att, PHKEY phkResult, DWORD *lpdwDisp);
01614 
01615   MOZCE_SHUNT_API LONG mozce_RegDeleteValueA(HKEY hKey, const char* lpValueName);
01616 
01617   MOZCE_SHUNT_API LRESULT mozce_DefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
01618   MOZCE_SHUNT_API LRESULT mozce_PostMessageA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
01619   MOZCE_SHUNT_API LRESULT mozce_SendMessageA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
01620   MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryA(LPSTR inBuffer, UINT inSize);
01621   MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryA(LPSTR inBuffer, UINT inSize);
01622   MOZCE_SHUNT_API UINT mozce_RegisterClipboardFormatA(LPCSTR inFormat);
01623   MOZCE_SHUNT_API UINT mozce_RegisterWindowMessageA(LPCSTR s);
01624   MOZCE_SHUNT_API VOID mozce_OutputDebugStringA(LPCSTR inOutputString);
01625   MOZCE_SHUNT_API int mozce_DrawTextA(HDC inDC, LPCSTR inString, int inCount, LPRECT inRect, UINT inFormat);
01626   MOZCE_SHUNT_API int mozce_GetLocaleInfoA(LCID Locale, LCTYPE LCType, LPSTR lpLCData, int cchData);
01627   MOZCE_SHUNT_API int mozce_LoadStringA(HINSTANCE inInstance, UINT inID, LPSTR outBuffer, int inBufferMax);
01628   MOZCE_SHUNT_API int mozce_MessageBoxA(HWND inWnd, LPCSTR inText, LPCSTR inCaption, UINT uType);
01629 
01630   MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA(LPCSTR lpLibFileName);
01631   MOZCE_SHUNT_API int mozce_GetObjectA(HGDIOBJ hgdiobj, int cbBuffer, LPVOID lpvObject);
01632   MOZCE_SHUNT_API FARPROC mozce_GetProcAddressA(HMODULE hMod, const char *name);
01633   MOZCE_SHUNT_API HBITMAP mozce_LoadBitmapA(HINSTANCE hInstance, LPCSTR lpCursorName);
01634   MOZCE_SHUNT_API HCURSOR mozce_LoadCursorA(HINSTANCE hInstance, LPCSTR lpCursorName);
01635 
01636   MOZCE_SHUNT_API int mozce_StartDocA(HDC hdc, CONST DOCINFO* lpdi);
01637 
01638   MOZCE_SHUNT_API BOOL mozce_GetOpenFileNameA(LPOPENFILENAMEA lpofna);
01639   MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA(LPOPENFILENAMEA lpofna);
01640   MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA(const char *lpName, LPSECURITY_ATTRIBUTES lpSecurityAttributes);
01641 
01642   MOZCE_SHUNT_API HMODULE mozce_GetModuleHandleA(const char *lpName);
01643   MOZCE_SHUNT_API HICON mozce_LoadIconA(HINSTANCE hInstance, LPCSTR lpIconName);
01644 
01645   MOZCE_SHUNT_API HRSRC mozce_FindResourceA(HMODULE  hModule, LPCSTR  lpName, LPCSTR  lpType);
01646   MOZCE_SHUNT_API int mozce_MessageBoxA(HWND hwnd, const char *txt, const char *caption, UINT flags);
01647   
01648   MOZCE_SHUNT_API UINT mozce_GetDlgItemTextA(HWND hDlg, int nIDDlgItem, LPSTR lpString, int nMaxCount);
01649   MOZCE_SHUNT_API BOOL mozce_SetDlgItemTextA(HWND hwndDlg, int idControl, LPCSTR lpsz);
01650   MOZCE_SHUNT_API HANDLE mozce_CreateEventA(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const char *lpName);
01651 
01652   MOZCE_SHUNT_API HANDLE mozce_GetPropA(HWND hWnd, const char* lpString);
01653   MOZCE_SHUNT_API BOOL mozce_SetPropA(HWND hWnd, const char* lpString, HANDLE hData);
01654   MOZCE_SHUNT_API HANDLE mozce_RemovePropA(HWND hWnd, const char* lpString);
01655 
01656   MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA(const char* lpFileName, LPWIN32_FIND_DATAA lpFindFileData); 
01657   MOZCE_SHUNT_API BOOL mozce_FindNextFileA(HANDLE hFindFile, WIN32_FIND_DATAA* lpFindFileData);
01658  
01659   MOZCE_SHUNT_API HANDLE mozce_CreateFileMappingA(HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName);
01660 
01661   MOZCE_SHUNT_API DWORD mozce_FormatMessageA(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPSTR lpBuffer, DWORD nSize, va_list* Arguments);
01662 
01663   MOZCE_SHUNT_API HANDLE mozce_CreateSemaphoreA(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCSTR lpName);
01664   MOZCE_SHUNT_API HFONT mozce_CreateFontIndirectA(CONST LOGFONTA* lplf);
01665   MOZCE_SHUNT_API int mozce_EnumFontFamiliesA(HDC hdc, const char* lpszFamily, FONTENUMPROC lpEnumFontFamProc, LPARAM lParam);
01666   MOZCE_SHUNT_API int mozce_GetTextFaceA(HDC hdc, int nCount,  const char* lpFaceName);
01667   MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA(HDC hdc, TEXTMETRICA* lptm);
01668 
01669   MOZCE_SHUNT_API BOOL mozce_SetWindowTextA(HWND hWnd, LPCSTR lpString);
01670 
01671 
01672   // From win32w.cpp
01673   MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryW(LPCTSTR inPathName);
01674   MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR outBuffer);
01675   MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW(HDC inDC, WCHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST VOID* inMAT2);
01676   MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName);
01677   MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize);
01678   MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize);
01679 
01680 #ifdef __cplusplus
01681 };
01682 #endif
01683 
01684 #endif //MOZCE_SHUNT_H