Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Functions | Variables
mozce_shunt.h File Reference
#include "mozce_defs.h"
#include "mozce_allocator.h"
#include <commdlg.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MOZCE_ALLOCATOR
#define _assert   mozce_assert
#define assert   mozce_assert
#define mkdir   mozce_mkdir
#define _mkdir   mozce_mkdir
#define _rmdir   mozce_rmdir
#define rmdir   mozce_rmdir
#define errno   mozce_errno
#define _chmod   mozce_chmod
#define chmod   mozce_chmod
#define _isatty   mozce_isatty
#define isatty   mozce_isatty
#define fileno   mozce_fileno
#define _fileno   mozce_fileno
#define getprotobyname   mozce_getprotobyname
#define getprotobynumber   mozce_getprotobynumber
#define _mbsinc   mozce_mbsinc
#define _mbspbrk   mozce_mbspbrk
#define _mbsrchr   mozce_mbsrchr
#define _mbschr   mozce_mbschr
#define _mbctolower   tolower
#define _mbsicmp   mozce_mbsicmp
#define _mbsdec   mozce_mbsdec
#define abort   mozce_abort
#define getenv   mozce_getenv
#define putenv   mozce_putenv
#define getpid   mozce_getpid
#define _getpid   mozce_getpid
#define raise   mozce_raise
#define signal   mozce_signal
#define stat   mozce_stat
#define _access   mozce_access
#define access   mozce_access
#define rewind   mozce_rewind
#define fdopen   mozce_fdopen
#define _fdopen   mozce_fdopen
#define perror   mozce_perror
#define remove   mozce_remove
#define _getcwd   mozce_getcwd
#define getcwd   mozce_getcwd
#define printf   mozce_printf
#define open   mozce_open
#define _open   mozce_open
#define close   mozce_close
#define read   mozce_read
#define write   mozce_write
#define unlink   mozce_unlink
#define lseek   mozce_lseek
#define _fullpath   mozce_fullpath
#define _splitpath   mozce_splitpath
#define _makepath   mozce_makepath
#define lstrlenA   strlen
#define lstrcpyA   strcpy
#define lstrcmpA   strcmp
#define lstrcmpiA   strcmpi
#define lstrcatA   strcat
#define strdup   _strdup
#define stricmp   _stricmp
#define strcmpi   _stricmp
#define strnicmp   _strnicmp
#define strerror   mozce_strerror
#define wsprintfA   mozce_wsprintfA
#define strftime   mozce_strftime
#define localtime_r   mozce_localtime_r
#define localtime   mozce_localtime
#define gmtime_r   mozce_gmtime_r
#define gmtime   mozce_gmtime
#define mktime   mozce_mktime
#define ctime   mozce_ctime
#define localeconv   mozce_localeconv
#define SHGetPathFromIDListA   SHGetPathFromIDList
#define _beginthreadex(security, stack_size, start_proc, arg, flags, pid)   CreateThread(security, stack_size,(LPTHREAD_START_ROUTINE) start_proc, arg, flags, pid)
#define timeGetTime   GetTickCount
#define Arc   mozce_Arc
#define CallNextHookEx   mozce_CallNextHookEx
#define CreateDIBitmap   mozce_CreateDIBitmap
#define CreatePipe   mozce_CreatePipe
#define SetThreadAffinityMask   mozce_SetThreadAffinityMask
#define GetProcessAffinityMask   mozce_GetProcessAffinityMask
#define CommDlgExtendedError   mozce_CommDlgExtendedError
#define EnumChildWindows   mozce_EnumChildWindows
#define EnumFontFamiliesEx   mozce_EnumFontFamiliesEx
#define EnumThreadWindows   mozce_EnumThreadWindows
#define ExtSelectClipRgn   mozce_ExtSelectClipRgn
#define ExpandEnvironmentStrings   mozce_ExpandEnvironmentStrings
#define ExpandEnvironmentStringsA   mozce_ExpandEnvironmentStrings
#define ExpandEnvironmentStringsW   mozce_ExpandEnvironmentStringsW
#define FIXED   mozce_FIXED
#define FlashWindow   mozce_FlashWindow
#define FrameRect   mozce_FrameRect
#define GdiFlush   mozce_GdiFlush
#define GLYPHMETRICS   mozce_GLYPHMETRICS
#define GetDIBits   mozce_GetDIBits
#define GetEnvironmentVariable   mozce_GetEnvironmentVariable
#define GetEnvironmentVariableW   mozce_GetEnvironmentVariableW
#define GetFontData   mozce_GetFontData
#define GetFullPathName   mozce_GetFullPathName
#define GetIconInfo   mozce_GetIconInfo
#define GetMapMode   mozce_GetMapMode
#define GetMessageA   mozce_GetMessage
#define GetMessageTime   mozce_GetMessageTime
#define GetOutlineTextMetrics   mozce_GetOutlineTextMetrics
#define GetScrollPos   mozce_GetScrollPos
#define GetScrollRange   mozce_GetScrollRange
#define GetShortPathName   mozce_GetShortPathName
#define GetShortPathNameA   mozce_GetShortPathName
#define GetShortPathNameW   mozce_GetShortPathNameW
#define GetSystemTimeAsFileTime   mozce_GetSystemTimeAsFileTime
#define GetTextCharset   mozce_GetTextCharset
#define GetTextCharsetInfo   mozce_GetTextCharsetInfo
#define GetUserName   mozce_GetUserName
#define GetDriveType   mozce_GetDriveType
#define GetWindowPlacement   mozce_GetWindowPlacement
#define SetHandleInformation   mozce_SetHandleInformation
#define GetHandleInformation   mozce_GetHandleInformation
#define InvertRgn   mozce_InvertRgn
#define IsIconic   mozce_IsIconic
#define LPtoDP   mozce_LPtoDP
#define LineDDA   mozce_LineDDA
#define LineDDAProc   mozce_LineDDAProc
#define MAT2   mozce_MAT2
#define MulDiv   mozce_MulDiv
#define OUTLINETEXTMETRIC   mozce_OUTLINETEXTMETRIC
#define OpenIcon   mozce_OpenIcon
#define OpenFileMapping   mozce_OpenFileMapping
#define Pie   mozce_Pie
#define PeekMessageA   mozce_PeekMessage
#define RegCreateKey   mozce_RegCreateKey
#define SetArcDirection   mozce_SetArcDirection
#define SetClassLongA   SetClassLongW
#define SetDIBits   mozce_SetDIBits
#define SetMenu   mozce_SetMenu
#define SetPolyFillMode   mozce_SetPolyFillMode
#define SetStretchBltMode   mozce_SetStretchBltMode
#define SetWindowsHookEx   mozce_SetWindowsHookEx
#define SetWindowTextA   mozce_SetWindowTextA
#define ShellExecute   mozce_ShellExecute
#define ShellExecuteA   mozce_ShellExecute
#define ShellExecuteW   mozce_ShellExecuteW
#define UnhookWindowsHookEx   mozce_UnhookWindowsHookEx
#define WaitMessage   mozce_WaitMessage
#define _CoLockObjectExternal   mozce_CoLockObjectExternal
#define IsClipboardFormatAvailable   mozce_IsClipboardFormatAvailable
#define CoInitialize   mozce_CoInitialize
#define OleInitialize   mozce_OleInitialize
#define OleUninitialize   mozce_OleUninitialize
#define OleFlushClipboard   mozce_OleFlushClipboard
#define OleGetClipboard   mozce_OleGetClipboard
#define OleQueryLinkFromData   mozce_OleQueryLinkFromData
#define OleSetClipboard   mozce_OleSetClipboard
#define LockFile   mozce_LockFile
#define UnlockFile   mozce_UnlockFile
#define CopyFileA   mozce_CopyFileA
#define CreateDCA   mozce_CreateDCA
#define CreateDCA2   mozce_CreateDCA2
#define CreateDirectoryA   mozce_CreateDirectoryA
#define CreateEvent   CreateEvent
#define CreateEventA   mozce_CreateEventA
#define CreateFileA   mozce_CreateFileA
#define CreateFileMappingA   mozce_CreateFileMappingA
#define CreateFontIndirectA   mozce_CreateFontIndirectA
#define CreateMutexA   mozce_CreateMutexA
#define CreateProcessA   mozce_CreateProcessA
#define CreateSemaphoreA   mozce_CreateSemaphoreA
#define CreateWindowExA   mozce_CreateWindowExA
#define DefWindowProcA   mozce_DefWindowProcA
#define DeleteFileA   mozce_DeleteFileA
#define DrawTextA   mozce_DrawTextA
#define EnumFontFamiliesA   mozce_EnumFontFamiliesA
#define TextOut   mozce_TextOutA
#define ExtTextOutA   mozce_ExtTextOutA
#define FindResourceA   mozce_FindResourceA
#define FindWindowA   mozce_FindWindowA
#define FormatMessageA   mozce_FormatMessageA
#define GetClassInfoA   mozce_GetClassInfoA
#define GetClassNameA   mozce_GetClassNameA
#define GetCurrentDirectoryA   mozce_GetCurrentDirectoryA
#define GetDiskFreeSpaceA   mozce_GetDiskFreeSpaceA
#define GetDlgItemTextA   mozce_GetDlgItemTextA
#define GetEnvironmentVariableA   mozce_GetEnvironmentVariableA
#define GetFileAttributesA   mozce_GetFileAttributesA
#define GetFileVersionInfoA   mozce_GetFileVersionInfoA
#define GetFileVersionInfoSizeA   mozce_GetFileVersionInfoSizeA
#define GetGlyphOutlineA   mozce_GetGlyphOutlineA
#define GetLocaleInfoA   mozce_GetLocaleInfoA
#define GetModuleFileNameA   mozce_GetModuleFileNameA
#define GetModuleHandleA   mozce_GetModuleHandleA
#define GetObjectA   mozce_GetObjectA
#define GetOpenFileNameA   mozce_GetOpenFileNameA
#define GetProcAddress   mozce_GetProcAddressA
#define GetProcAddressA   mozce_GetProcAddressA
#define GetPropA   mozce_GetPropA
#define GetSaveFileNameA   mozce_GetSaveFileNameA
#define GetSystemDirectory   mozce_GetSystemDirectoryA
#define GetSystemDirectoryA   mozce_GetSystemDirectoryA
#define GetTextExtentExPointA   mozce_GetTextExtentExPointA
#define GetTextFaceA   mozce_GetTextFaceA
#define GetTextMetricsA   mozce_GetTextMetricsA
#define GetVersionExA   mozce_GetVersionExA
#define GetWindowsDirectory   mozce_GetWindowsDirectoryA
#define GetWindowsDirectoryA   mozce_GetWindowsDirectoryA
#define GlobalAddAtomA   mozce_GlobalAddAtomA
#define LoadBitmapA   mozce_LoadBitmapA
#define LoadCursorA   mozce_LoadCursorA
#define LoadIconA   mozce_LoadIconA
#define LoadImageA   mozce_LoadImageA
#define LoadLibraryA   mozce_LoadLibraryA
#define LoadMenuA   mozce_LoadMenuA
#define LoadStringA   mozce_LoadStringA
#define MessageBoxA   mozce_MessageBoxA
#define MoveFileA   mozce_MoveFileA
#define OpenSemaphoreA   mozce_OpenSemaphoreA
#define OutputDebugStringA   mozce_OutputDebugStringA
#define PostMessageA   mozce_PostMessageA
#define RegEnumKeyExA   mozce_RegEnumKeyExA
#define RegOpenKeyExA   mozce_RegOpenKeyExA
#define RegQueryValueExA   mozce_RegQueryValueExA
#define RegSetValueExA   mozce_RegSetValueExA
#define RegCreateKeyExA   mozce_RegCreateKeyExA
#define RegDeleteValueA   mozce_RegDeleteValueA
#define RegisterClassA   mozce_RegisterClassA
#define RegisterClipboardFormatA   mozce_RegisterClipboardFormatA
#define RegisterWindowMessageA   mozce_RegisterWindowMessageA
#define RemoveDirectoryA   mozce_RemoveDirectoryA
#define RemovePropA   mozce_RemovePropA
#define SendMessageA   mozce_SendMessageA
#define SetCurrentDirectoryA   mozce_SetCurrentDirectoryA
#define SetCurrentDirectory   mozce_SetCurrentDirectoryA
#define SetDlgItemTextA   mozce_SetDlgItemTextA
#define SetEnvironmentVariable   mozce_SetEnvironmentVariableA
#define SetEnvironmentVariableA   mozce_SetEnvironmentVariableA
#define SetPropA   mozce_SetPropA
#define StartDocA   mozce_StartDocA
#define UnregisterClassA   mozce_UnregisterClassA
#define VerQueryValueA   mozce_VerQueryValueA
#define CreateDialogIndirectParamA   CreateDialogIndirectParamW
#define SystemParametersInfoA   SystemParametersInfoW
#define DispatchMessageA   DispatchMessageW
#define CallWindowProcA   CallWindowProcW
#define GetWindowLongA   GetWindowLongW
#define SetWindowLongA   SetWindowLongW
#define MapVirtualKeyA   MapVirtualKeyW
#define FindFirstFileA   mozce_FindFirstFileA
#define FindNextFileA   mozce_FindNextFileA
#define FindFirstFile   FindFirstFileW
#define FindNextFile   FindNextFileW
#define GetProp   mozce_GetPropA
#define SetProp   mozce_SetPropA
#define RemoveProp   mozce_RemovePropA
#define GetCurrentDirectory   mozce_GetCurrentDirectoryW
#define GetGlyphOutlineW   mozce_GetGlyphOutlineW
#define GetSystemDirectoryW   mozce_GetSystemDirectoryW
#define GetWindowsDirectoryW   mozce_GetWindowsDirectoryW
#define OpenSemaphore   mozce_OpenSemaphoreW
#define OpenSemaphoreW   mozce_OpenSemaphoreW
#define SetCurrentDirectoryW   mozce_SetCurrentDirectoryW

Typedefs

typedef void(* mozce_LINEDDAPROC )(int X, int Y, LPARAM lpData)

Functions

MOZCE_SHUNT_API void mozce_assert (int inExpression)
MOZCE_SHUNT_API int mozce_mkdir (const char *inDirname)
MOZCE_SHUNT_API int mozce_rmdir (const char *inDirname)
MOZCE_SHUNT_API int mozce_chmod (const char *inFilename, int inMode)
MOZCE_SHUNT_API int mozce_isatty (int inHandle)
MOZCE_SHUNT_API int mozce_fileno (FILE *inHandle)
MOZCE_SHUNT_API struct protoentmozce_getprotobyname (const char *inName)
MOZCE_SHUNT_API struct protoentmozce_getprotobynumber (int inNumber)
MOZCE_SHUNT_API unsigned char * mozce_mbsinc (const unsigned char *inCurrent)
MOZCE_SHUNT_API unsigned char * mozce_mbspbrk (const unsigned char *inString, const unsigned char *inStrCharSet)
MOZCE_SHUNT_API unsigned char * mozce_mbschr (const unsigned char *inString, unsigned int inC)
MOZCE_SHUNT_API unsigned char * mozce_mbsrchr (const unsigned char *inString, unsigned int inC)
MOZCE_SHUNT_API int mozce_mbsicmp (const unsigned char *string1, const unsigned char *string2)
MOZCE_SHUNT_API unsigned char * mozce_mbsdec (const unsigned char *string1, const unsigned char *string2)
MOZCE_SHUNT_API void mozce_abort (void)
MOZCE_SHUNT_API char * mozce_getenv (const char *inName)
MOZCE_SHUNT_API int mozce_putenv (const char *a)
MOZCE_SHUNT_API int mozce_getpid (void)
MOZCE_SHUNT_API int mozce_raise (int inSignal)
MOZCE_SHUNT_API _sigsig mozce_signal (int inSignal, _sigsig inFunc)
MOZCE_SHUNT_API int mozce_stat (const char *inPath, struct mozce_stat *outStat)
MOZCE_SHUNT_API int mozce_access (const char *path, int mode)
MOZCE_SHUNT_API void mozce_rewind (FILE *inStream)
MOZCE_SHUNT_API FILEmozce_fdopen (int inFD, const char *inMode)
MOZCE_SHUNT_API void mozce_perror (const char *inString)
MOZCE_SHUNT_API int mozce_remove (const char *inPath)
MOZCE_SHUNT_API char * mozce_getcwd (char *buff, size_t size)
MOZCE_SHUNT_API int mozce_printf (const char *,...)
MOZCE_SHUNT_API int mozce_open (const char *pathname, int flags, int mode)
MOZCE_SHUNT_API int mozce_close (int fp)
MOZCE_SHUNT_API size_t mozce_read (int fp, void *buffer, size_t count)
MOZCE_SHUNT_API size_t mozce_write (int fp, const void *buffer, size_t count)
MOZCE_SHUNT_API int mozce_unlink (const char *pathname)
MOZCE_SHUNT_API int mozce_lseek (int fildes, int offset, int whence)
MOZCE_SHUNT_API void mozce_splitpath (const char *inPath, char *outDrive, char *outDir, char *outFname, char *outExt)
MOZCE_SHUNT_API void mozce_makepath (char *outPath, const char *inDrive, const char *inDir, const char *inFname, const char *inExt)
MOZCE_SHUNT_API char * mozce_fullpath (char *, const char *, size_t)
MOZCE_SHUNT_API char * mozce_strerror (int)
MOZCE_SHUNT_API int mozce_wsprintfA (LPTSTR lpOut, LPCTSTR lpFmt,...)
MOZCE_SHUNT_API struct tmmozce_localtime_r (const time_t *inTimeT, struct tm *outRetval)
MOZCE_SHUNT_API struct tmmozce_gmtime_r (const time_t *inTimeT, struct tm *outRetval)
MOZCE_SHUNT_API time_t mozce_time (time_t *inStorage)
MOZCE_SHUNT_API char * mozce_ctime (const time_t *timer)
MOZCE_SHUNT_API struct tmmozce_localtime (const time_t *inTimeT)
MOZCE_SHUNT_API struct tmmozce_gmtime (const time_t *inTimeT)
MOZCE_SHUNT_API time_t mozce_mktime (struct tm *inTM)
MOZCE_SHUNT_API size_t mozce_strftime (char *strDest, size_t maxsize, const char *format, const struct tm *timeptr)
MOZCE_SHUNT_API BOOL mozce_AlphaBlend (HDC hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, BLENDFUNCTION blendFunction)
MOZCE_SHUNT_API struct lconv * mozce_localeconv (void)
MOZCE_SHUNT_API BOOL mozce_CreatePipe (PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes, DWORD nSize)
MOZCE_SHUNT_API DWORD_PTR mozce_SetThreadAffinityMask (HANDLE hThread, DWORD_PTR dwThreadAffinityMask)
MOZCE_SHUNT_API BOOL mozce_GetProcessAffinityMask (HANDLE hProcess, PDWORD_PTR lpProcessAffinityMask, PDWORD_PTR lpSystemAffinityMask)
VOID CALLBACK mozce_LineDDAProc (int X, int Y, LPARAM lpData)
MOZCE_SHUNT_API int mozce_MulDiv (int inNumber, int inNumerator, int inDenominator)
MOZCE_SHUNT_API int mozce_GetDIBits (HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, LPVOID inBits, LPBITMAPINFO inInfo, UINT inUsage)
MOZCE_SHUNT_API int mozce_SetDIBits (HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, CONST LPVOID inBits, CONST LPBITMAPINFO inInfo, UINT inUsage)
MOZCE_SHUNT_API DWORD mozce_CommDlgExtendedError (void)
MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap (HDC inDC, CONST BITMAPINFOHEADER *inBMIH, DWORD inInit, CONST VOID *inBInit, CONST BITMAPINFO *inBMI, UINT inUsage)
MOZCE_SHUNT_API int mozce_SetPolyFillMode (HDC inDC, int inPolyFillMode)
MOZCE_SHUNT_API int mozce_SetStretchBltMode (HDC inDC, int inStretchMode)
MOZCE_SHUNT_API int mozce_ExtSelectClipRgn (HDC inDC, HRGN inRGN, int inMode)
MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStrings (LPCTSTR lpSrc, LPTSTR lpDst, DWORD nSize)
MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStringsW (const unsigned short *lpSrc, const unsigned short *lpDst, DWORD nSize)
MOZCE_SHUNT_API BOOL mozce_LineDDA (int inXStart, int inYStart, int inXEnd, int inYEnd, mozce_LINEDDAPROC inLineFunc, LPARAM inData)
MOZCE_SHUNT_API int mozce_FrameRect (HDC inDC, CONST RECT *inRect, HBRUSH inBrush)
MOZCE_SHUNT_API BOOL mozce_GdiFlush (void)
MOZCE_SHUNT_API int mozce_SetArcDirection (HDC inDC, int inArcDirection)
MOZCE_SHUNT_API BOOL mozce_Arc (HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXStartArc, int inYStartArc, int inXEndArc, int inYEndArc)
MOZCE_SHUNT_API BOOL mozce_Pie (HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXRadial1, int inYRadial1, int inXRadial2, int inYRadial2)
MOZCE_SHUNT_API UINT mozce_GetDriveType (const char *lpRootPathName)
MOZCE_SHUNT_API DWORD mozce_GetFontData (HDC inDC, DWORD inTable, DWORD inOffset, LPVOID outBuffer, DWORD inData)
MOZCE_SHUNT_API UINT mozce_GetTextCharset (HDC inDC)
MOZCE_SHUNT_API UINT mozce_GetTextCharsetInfo (HDC inDC, LPFONTSIGNATURE outSig, DWORD inFlags)
MOZCE_SHUNT_API UINT mozce_GetOutlineTextMetrics (HDC inDC, UINT inData, void *outOTM)
MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx (HDC inDC, const LOGFONTA *inLogfont, FONTENUMPROC inFunc, LPARAM inParam, DWORD inFlags)
MOZCE_SHUNT_API int mozce_GetMapMode (HDC inDC)
MOZCE_SHUNT_API BOOL mozce_GetIconInfo (HICON inIcon, PICONINFO outIconinfo)
MOZCE_SHUNT_API BOOL mozce_LPtoDP (HDC inDC, LPPOINT inoutPoints, int inCount)
MOZCE_SHUNT_API LONG mozce_RegCreateKey (HKEY inKey, LPCTSTR inSubKey, PHKEY outResult)
MOZCE_SHUNT_API BOOL mozce_WaitMessage (VOID)
MOZCE_SHUNT_API BOOL mozce_FlashWindow (HWND inWnd, BOOL inInvert)
MOZCE_SHUNT_API BOOL mozce_EnumChildWindows (HWND inParent, WNDENUMPROC inFunc, LPARAM inParam)
MOZCE_SHUNT_API BOOL mozce_EnumThreadWindows (DWORD inThreadID, WNDENUMPROC inFunc, LPARAM inParam)
MOZCE_SHUNT_API BOOL mozce_IsIconic (HWND inWnd)
MOZCE_SHUNT_API BOOL mozce_OpenIcon (HWND inWnd)
MOZCE_SHUNT_API HANDLE mozce_OpenFileMapping (DWORD dwDesiredAccess, BOOL bInheritHandle, LPCTSTR lpName)
MOZCE_SHUNT_API HHOOK mozce_SetWindowsHookEx (int inType, void *inFunc, HINSTANCE inMod, DWORD inThreadId)
MOZCE_SHUNT_API HINSTANCE mozce_ShellExecute (HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd)
MOZCE_SHUNT_API HINSTANCE mozce_ShellExecuteW (HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
MOZCE_SHUNT_API BOOL mozce_UnhookWindowsHookEx (HHOOK inHook)
MOZCE_SHUNT_API LRESULT mozce_CallNextHookEx (HHOOK inHook, int inCode, WPARAM wParam, LPARAM lParam)
MOZCE_SHUNT_API BOOL mozce_GetWindowPlacement (HWND window, WINDOWPLACEMENT *lpwndpl)
MOZCE_SHUNT_API BOOL mozce_InvertRgn (HDC inDC, HRGN inRGN)
MOZCE_SHUNT_API int mozce_GetScrollPos (HWND inWnd, int inBar)
MOZCE_SHUNT_API BOOL mozce_GetScrollRange (HWND inWnd, int inBar, LPINT outMinPos, LPINT outMaxPos)
MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal (IUnknown *inUnk, BOOL inLock, BOOL inLastUnlockReleases)
MOZCE_SHUNT_API HRESULT mozce_CoInitialize (LPVOID pvReserved)
MOZCE_SHUNT_API LRESULT mozce_OleInitialize (LPVOID pvReserved)
MOZCE_SHUNT_API void mozce_OleUninitialize ()
MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard (IDataObject *inDataObj)
MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard (IDataObject **outDataObj)
MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard (void)
MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData (IDataObject *inSrcDataObject)
MOZCE_SHUNT_API BOOL mozce_IsClipboardFormatAvailable (UINT format)
MOZCE_SHUNT_API BOOL mozce_SetMenu (HWND inWnd, HMENU inMenu)
MOZCE_SHUNT_API BOOL mozce_GetUserName (LPTSTR inBuffer, LPDWORD inoutSize)
MOZCE_SHUNT_API DWORD mozce_GetShortPathName (LPCTSTR inLongPath, LPTSTR outShortPath, DWORD inBufferSize)
MOZCE_SHUNT_API DWORD mozce_GetShortPathNameW (LPCWSTR aLPATH, LPWSTR aSPATH, DWORD aLen)
MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariable (LPCSTR lpName, LPCSTR lpBuffer, DWORD nSize)
MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableW (LPCWSTR lpName, LPWSTR lpBuffer, DWORD nSize)
MOZCE_SHUNT_API HMENU mozce_LoadMenuA (HINSTANCE hInstance, LPCSTR lpMenuName)
MOZCE_SHUNT_API void mozce_GetSystemTimeAsFileTime (LPFILETIME lpSystemTimeAsFileTime)
MOZCE_SHUNT_API DWORD mozce_GetFullPathName (const char *lpFileName, DWORD nBufferLength, const char *lpBuffer, const char **lpFilePart)
MOZCE_SHUNT_API UINT mozce_GetACP (void)
MOZCE_SHUNT_API BOOL mozce_PeekMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
MOZCE_SHUNT_API BOOL mozce_GetMessage (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
MOZCE_SHUNT_API LONG mozce_GetMessageTime (void)
MOZCE_SHUNT_API BOOL mozce_LockFile (HANDLE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHigh, DWORD nNumberOfBytesToLockLow, DWORD nNumberOfBytesToLockHigh)
MOZCE_SHUNT_API BOOL mozce_UnlockFile (HANDLE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHigh, DWORD nNumberOfBytesToLockLow, DWORD nNumberOfBytesToLockHigh)
MOZCE_SHUNT_API BOOL mozce_SetHandleInformation (HANDLE hObject, DWORD dwMask, DWORD dwFlags)
MOZCE_SHUNT_API BOOL mozce_GetHandleInformation (HANDLE hObject, LPDWORD lpdwFlags)
MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineA (HDC inDC, CHAR inChar, UINT inFormat, void *inGM, DWORD inBufferSize, LPVOID outBuffer, CONST mozce_MAT2 *inMAT2)
MOZCE_SHUNT_API ATOM mozce_GlobalAddAtomA (LPCSTR lpString)
MOZCE_SHUNT_API ATOM mozce_RegisterClassA (CONST WNDCLASSA *lpwc)
MOZCE_SHUNT_API BOOL mozce_CopyFileA (LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists)
MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA (LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA (LPCSTR lpPathName)
MOZCE_SHUNT_API HANDLE mozce_CreateMutexA (LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, LPCSTR lpName)
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)
MOZCE_SHUNT_API BOOL mozce_ExtTextOutA (HDC inDC, int inX, int inY, UINT inOptions, LPCRECT inRect, const char *inString, UINT inCount, const LPINT inDx)
MOZCE_SHUNT_API BOOL mozce_TextOutA (HDC hdc, int nXStart, int nYStart, const char *lpString, int cbString)
MOZCE_SHUNT_API BOOL mozce_GetClassInfoA (HINSTANCE hInstance, LPCSTR lpClassName, LPWNDCLASS lpWndClass)
MOZCE_SHUNT_API int mozce_GetClassNameA (HWND hWnd, LPTSTR lpClassName, int nMaxCount)
MOZCE_SHUNT_API BOOL mozce_GetFileVersionInfoA (const char *inFilename, DWORD inHandle, DWORD inLen, LPVOID outData)
MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA (HDC inDC, const char *inStr, int inLen, int inMaxExtent, LPINT outFit, LPINT outDx, LPSIZE inSize)
MOZCE_SHUNT_API BOOL mozce_GetVersionExA (LPOSVERSIONINFOA lpv)
MOZCE_SHUNT_API BOOL mozce_DeleteFileA (LPCSTR lpFileName)
MOZCE_SHUNT_API BOOL mozce_MoveFileA (LPCSTR lpExistingFileName, LPCSTR lpNewFileName)
MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryA (LPCSTR inPathName)
MOZCE_SHUNT_API BOOL mozce_VerQueryValueA (const LPVOID inBlock, LPSTR inSubBlock, LPVOID *outBuffer, PUINT outLen)
MOZCE_SHUNT_API BOOL mozce_UnregisterClassA (LPCSTR lpClassName, HINSTANCE hInstance)
MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryA (DWORD inBufferLength, LPSTR outBuffer)
MOZCE_SHUNT_API BOOL mozce_GetDiskFreeSpaceA (LPCTSTR lpRootPathName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpNumberOfFreeClusters, LPDWORD lpTotalNumberOfClusters)
MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableA (LPSTR lpName, LPSTR lpBuffer, DWORD nSize)
MOZCE_SHUNT_API DWORD mozce_GetFileAttributesA (LPCSTR lpFileName)
MOZCE_SHUNT_API DWORD mozce_GetFileVersionInfoSizeA (const char *inFilename, LPDWORD outHandle)
MOZCE_SHUNT_API DWORD mozce_GetModuleFileNameA (HMODULE hModule, LPSTR lpFilename, DWORD nSize)
MOZCE_SHUNT_API DWORD mozce_SetEnvironmentVariableA (LPSTR lpName, LPSTR lpBuffer)
MOZCE_SHUNT_API HANDLE mozce_CreateFileA (LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
MOZCE_SHUNT_API HANDLE mozce_LoadImageA (HINSTANCE inInst, LPCSTR inName, UINT inType, int inCX, int inCY, UINT inLoad)
MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreA (DWORD inDesiredAccess, BOOL inInheritHandle, LPCSTR inName)
MOZCE_SHUNT_API HDC mozce_CreateDCA (LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODEA *inInitData)
MOZCE_SHUNT_API HDC mozce_CreateDCA2 (LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODE *inInitData)
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)
MOZCE_SHUNT_API HWND mozce_FindWindowA (LPCSTR inClass, LPCSTR inWindow)
MOZCE_SHUNT_API LONG mozce_RegEnumKeyExA (HKEY inKey, DWORD inIndex, LPSTR outName, LPDWORD inoutName, LPDWORD inReserved, LPSTR outClass, LPDWORD inoutClass, PFILETIME inLastWriteTime)
MOZCE_SHUNT_API LONG mozce_RegOpenKeyExA (HKEY inKey, LPCSTR inSubKey, DWORD inOptions, REGSAM inSAM, PHKEY outResult)
MOZCE_SHUNT_API LONG mozce_RegQueryValueExA (HKEY inKey, LPCSTR inValueName, LPDWORD inReserved, LPDWORD outType, LPBYTE inoutBData, LPDWORD inoutDData)
MOZCE_SHUNT_API LONG mozce_RegSetValueExA (HKEY hKey, const char *valname, DWORD dwReserved, DWORD dwType, const BYTE *lpData, DWORD dwSize)
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)
MOZCE_SHUNT_API LONG mozce_RegDeleteValueA (HKEY hKey, const char *lpValueName)
MOZCE_SHUNT_API LRESULT mozce_DefWindowProcA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
MOZCE_SHUNT_API LRESULT mozce_PostMessageA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
MOZCE_SHUNT_API LRESULT mozce_SendMessageA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryA (LPSTR inBuffer, UINT inSize)
MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryA (LPSTR inBuffer, UINT inSize)
MOZCE_SHUNT_API UINT mozce_RegisterClipboardFormatA (LPCSTR inFormat)
MOZCE_SHUNT_API UINT mozce_RegisterWindowMessageA (LPCSTR s)
MOZCE_SHUNT_API VOID mozce_OutputDebugStringA (LPCSTR inOutputString)
MOZCE_SHUNT_API int mozce_DrawTextA (HDC inDC, LPCSTR inString, int inCount, LPRECT inRect, UINT inFormat)
MOZCE_SHUNT_API int mozce_GetLocaleInfoA (LCID Locale, LCTYPE LCType, LPSTR lpLCData, int cchData)
MOZCE_SHUNT_API int mozce_LoadStringA (HINSTANCE inInstance, UINT inID, LPSTR outBuffer, int inBufferMax)
MOZCE_SHUNT_API int mozce_MessageBoxA (HWND inWnd, LPCSTR inText, LPCSTR inCaption, UINT uType)
MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA (LPCSTR lpLibFileName)
MOZCE_SHUNT_API int mozce_GetObjectA (HGDIOBJ hgdiobj, int cbBuffer, LPVOID lpvObject)
MOZCE_SHUNT_API FARPROC mozce_GetProcAddressA (HMODULE hMod, const char *name)
MOZCE_SHUNT_API HBITMAP mozce_LoadBitmapA (HINSTANCE hInstance, LPCSTR lpCursorName)
MOZCE_SHUNT_API HCURSOR mozce_LoadCursorA (HINSTANCE hInstance, LPCSTR lpCursorName)
MOZCE_SHUNT_API int mozce_StartDocA (HDC hdc, CONST DOCINFO *lpdi)
MOZCE_SHUNT_API BOOL mozce_GetOpenFileNameA (LPOPENFILENAMEA lpofna)
MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA (LPOPENFILENAMEA lpofna)
MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA (const char *lpName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
MOZCE_SHUNT_API HMODULE mozce_GetModuleHandleA (const char *lpName)
MOZCE_SHUNT_API HICON mozce_LoadIconA (HINSTANCE hInstance, LPCSTR lpIconName)
MOZCE_SHUNT_API HRSRC mozce_FindResourceA (HMODULE hModule, LPCSTR lpName, LPCSTR lpType)
MOZCE_SHUNT_API int mozce_MessageBoxA (HWND hwnd, const char *txt, const char *caption, UINT flags)
MOZCE_SHUNT_API UINT mozce_GetDlgItemTextA (HWND hDlg, int nIDDlgItem, LPSTR lpString, int nMaxCount)
MOZCE_SHUNT_API BOOL mozce_SetDlgItemTextA (HWND hwndDlg, int idControl, LPCSTR lpsz)
MOZCE_SHUNT_API HANDLE mozce_CreateEventA (LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const char *lpName)
MOZCE_SHUNT_API HANDLE mozce_GetPropA (HWND hWnd, const char *lpString)
MOZCE_SHUNT_API BOOL mozce_SetPropA (HWND hWnd, const char *lpString, HANDLE hData)
MOZCE_SHUNT_API HANDLE mozce_RemovePropA (HWND hWnd, const char *lpString)
MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA (const char *lpFileName, LPWIN32_FIND_DATAA lpFindFileData)
MOZCE_SHUNT_API BOOL mozce_FindNextFileA (HANDLE hFindFile, WIN32_FIND_DATAA *lpFindFileData)
MOZCE_SHUNT_API HANDLE mozce_CreateFileMappingA (HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName)
MOZCE_SHUNT_API DWORD mozce_FormatMessageA (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPSTR lpBuffer, DWORD nSize, va_list *Arguments)
MOZCE_SHUNT_API HANDLE mozce_CreateSemaphoreA (LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCSTR lpName)
MOZCE_SHUNT_API HFONT mozce_CreateFontIndirectA (CONST LOGFONTA *lplf)
MOZCE_SHUNT_API int mozce_EnumFontFamiliesA (HDC hdc, const char *lpszFamily, FONTENUMPROC lpEnumFontFamProc, LPARAM lParam)
MOZCE_SHUNT_API int mozce_GetTextFaceA (HDC hdc, int nCount, const char *lpFaceName)
MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA (HDC hdc, TEXTMETRICA *lptm)
MOZCE_SHUNT_API BOOL mozce_SetWindowTextA (HWND hWnd, LPCSTR lpString)
MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryW (LPCTSTR inPathName)
MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW (DWORD inBufferLength, LPTSTR outBuffer)
MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW (HDC inDC, WCHAR inChar, UINT inFormat, void *inGM, DWORD inBufferSize, LPVOID outBuffer, CONST VOID *inMAT2)
MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW (DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName)
MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW (LPWSTR inBuffer, UINT inSize)
MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW (LPWSTR inBuffer, UINT inSize)

Variables

MOZCE_SHUNT_API int mozce_errno

Define Documentation

Definition at line 233 of file mozce_shunt.h.

Definition at line 69 of file mozce_shunt.h.

#define _beginthreadex (   security,
  stack_size,
  start_proc,
  arg,
  flags,
  pid 
)    CreateThread(security, stack_size,(LPTHREAD_START_ROUTINE) start_proc, arg, flags, pid)

Definition at line 428 of file mozce_shunt.h.

Definition at line 110 of file mozce_shunt.h.

Definition at line 779 of file mozce_shunt.h.

Definition at line 253 of file mozce_shunt.h.

Definition at line 136 of file mozce_shunt.h.

Definition at line 320 of file mozce_shunt.h.

Definition at line 269 of file mozce_shunt.h.

Definition at line 208 of file mozce_shunt.h.

Definition at line 120 of file mozce_shunt.h.

Definition at line 330 of file mozce_shunt.h.

Definition at line 172 of file mozce_shunt.h.

Definition at line 167 of file mozce_shunt.h.

Definition at line 182 of file mozce_shunt.h.

Definition at line 177 of file mozce_shunt.h.

Definition at line 152 of file mozce_shunt.h.

Definition at line 157 of file mozce_shunt.h.

Definition at line 162 of file mozce_shunt.h.

Definition at line 86 of file mozce_shunt.h.

Definition at line 289 of file mozce_shunt.h.

Definition at line 91 of file mozce_shunt.h.

Definition at line 325 of file mozce_shunt.h.

Definition at line 188 of file mozce_shunt.h.

Definition at line 238 of file mozce_shunt.h.

Definition at line 436 of file mozce_shunt.h.

Definition at line 74 of file mozce_shunt.h.

Definition at line 441 of file mozce_shunt.h.

#define CallWindowProcA   CallWindowProcW

Definition at line 1276 of file mozce_shunt.h.

Definition at line 115 of file mozce_shunt.h.

Definition at line 294 of file mozce_shunt.h.

Definition at line 789 of file mozce_shunt.h.

Definition at line 466 of file mozce_shunt.h.

Definition at line 842 of file mozce_shunt.h.

Definition at line 847 of file mozce_shunt.h.

Definition at line 852 of file mozce_shunt.h.

#define CreateDialogIndirectParamA   CreateDialogIndirectParamW

Definition at line 1261 of file mozce_shunt.h.

Definition at line 446 of file mozce_shunt.h.

Definition at line 857 of file mozce_shunt.h.

Definition at line 865 of file mozce_shunt.h.

Definition at line 870 of file mozce_shunt.h.

Definition at line 875 of file mozce_shunt.h.

Definition at line 880 of file mozce_shunt.h.

Definition at line 885 of file mozce_shunt.h.

Definition at line 890 of file mozce_shunt.h.

Definition at line 451 of file mozce_shunt.h.

Definition at line 895 of file mozce_shunt.h.

Definition at line 900 of file mozce_shunt.h.

Definition at line 905 of file mozce_shunt.h.

Definition at line 411 of file mozce_shunt.h.

Definition at line 910 of file mozce_shunt.h.

Definition at line 915 of file mozce_shunt.h.

#define DispatchMessageA   DispatchMessageW

Definition at line 1271 of file mozce_shunt.h.

Definition at line 920 of file mozce_shunt.h.

Definition at line 471 of file mozce_shunt.h.

Definition at line 925 of file mozce_shunt.h.

Definition at line 476 of file mozce_shunt.h.

Definition at line 481 of file mozce_shunt.h.

Definition at line 103 of file mozce_shunt.h.

Definition at line 500 of file mozce_shunt.h.

Definition at line 501 of file mozce_shunt.h.

Definition at line 502 of file mozce_shunt.h.

Definition at line 486 of file mozce_shunt.h.

Definition at line 935 of file mozce_shunt.h.

Definition at line 248 of file mozce_shunt.h.

Definition at line 131 of file mozce_shunt.h.

#define FindFirstFile   FindFirstFileW

Definition at line 1310 of file mozce_shunt.h.

Definition at line 1300 of file mozce_shunt.h.

#define FindNextFile   FindNextFileW

Definition at line 1315 of file mozce_shunt.h.

Definition at line 1305 of file mozce_shunt.h.

Definition at line 940 of file mozce_shunt.h.

Definition at line 945 of file mozce_shunt.h.

Definition at line 507 of file mozce_shunt.h.

Definition at line 512 of file mozce_shunt.h.

Definition at line 950 of file mozce_shunt.h.

Definition at line 517 of file mozce_shunt.h.

Definition at line 522 of file mozce_shunt.h.

Definition at line 955 of file mozce_shunt.h.

Definition at line 960 of file mozce_shunt.h.

Definition at line 1342 of file mozce_shunt.h.

Definition at line 965 of file mozce_shunt.h.

Definition at line 274 of file mozce_shunt.h.

Definition at line 532 of file mozce_shunt.h.

Definition at line 970 of file mozce_shunt.h.

Definition at line 975 of file mozce_shunt.h.

Definition at line 628 of file mozce_shunt.h.

Definition at line 193 of file mozce_shunt.h.

Definition at line 537 of file mozce_shunt.h.

Definition at line 980 of file mozce_shunt.h.

Definition at line 542 of file mozce_shunt.h.

Definition at line 985 of file mozce_shunt.h.

Definition at line 990 of file mozce_shunt.h.

Definition at line 995 of file mozce_shunt.h.

Definition at line 547 of file mozce_shunt.h.

Definition at line 552 of file mozce_shunt.h.

Definition at line 1000 of file mozce_shunt.h.

Definition at line 1347 of file mozce_shunt.h.

Definition at line 643 of file mozce_shunt.h.

Definition at line 557 of file mozce_shunt.h.

Definition at line 1005 of file mozce_shunt.h.

Definition at line 562 of file mozce_shunt.h.

Definition at line 567 of file mozce_shunt.h.

Definition at line 572 of file mozce_shunt.h.

Definition at line 1010 of file mozce_shunt.h.

Definition at line 1015 of file mozce_shunt.h.

Definition at line 1020 of file mozce_shunt.h.

Definition at line 1025 of file mozce_shunt.h.

Definition at line 577 of file mozce_shunt.h.

Definition at line 203 of file mozce_shunt.h.

Definition at line 1030 of file mozce_shunt.h.

Definition at line 1035 of file mozce_shunt.h.

Definition at line 461 of file mozce_shunt.h.

Definition at line 1323 of file mozce_shunt.h.

Definition at line 1040 of file mozce_shunt.h.

Definition at line 141 of file mozce_shunt.h.

Definition at line 146 of file mozce_shunt.h.

Definition at line 1045 of file mozce_shunt.h.

Definition at line 582 of file mozce_shunt.h.

Definition at line 587 of file mozce_shunt.h.

Definition at line 592 of file mozce_shunt.h.

Definition at line 597 of file mozce_shunt.h.

Definition at line 603 of file mozce_shunt.h.

Definition at line 1050 of file mozce_shunt.h.

Definition at line 1055 of file mozce_shunt.h.

Definition at line 1352 of file mozce_shunt.h.

Definition at line 608 of file mozce_shunt.h.

Definition at line 613 of file mozce_shunt.h.

Definition at line 618 of file mozce_shunt.h.

Definition at line 1060 of file mozce_shunt.h.

Definition at line 1065 of file mozce_shunt.h.

Definition at line 1070 of file mozce_shunt.h.

Definition at line 623 of file mozce_shunt.h.

Definition at line 1075 of file mozce_shunt.h.

#define GetWindowLongA   GetWindowLongW

Definition at line 1281 of file mozce_shunt.h.

Definition at line 633 of file mozce_shunt.h.

Definition at line 1080 of file mozce_shunt.h.

Definition at line 1085 of file mozce_shunt.h.

Definition at line 1357 of file mozce_shunt.h.

Definition at line 1090 of file mozce_shunt.h.

Definition at line 527 of file mozce_shunt.h.

Definition at line 396 of file mozce_shunt.h.

Definition at line 391 of file mozce_shunt.h.

Definition at line 648 of file mozce_shunt.h.

Definition at line 125 of file mozce_shunt.h.

Definition at line 784 of file mozce_shunt.h.

Definition at line 653 of file mozce_shunt.h.

Definition at line 663 of file mozce_shunt.h.

Definition at line 668 of file mozce_shunt.h.

Definition at line 1095 of file mozce_shunt.h.

Definition at line 1100 of file mozce_shunt.h.

Definition at line 1105 of file mozce_shunt.h.

Definition at line 1110 of file mozce_shunt.h.

Definition at line 1115 of file mozce_shunt.h.

Definition at line 1120 of file mozce_shunt.h.

Definition at line 1125 of file mozce_shunt.h.

Definition at line 416 of file mozce_shunt.h.

Definition at line 386 of file mozce_shunt.h.

Definition at line 381 of file mozce_shunt.h.

Definition at line 824 of file mozce_shunt.h.

Definition at line 658 of file mozce_shunt.h.

Definition at line 314 of file mozce_shunt.h.

#define lstrcatA   strcat

Definition at line 338 of file mozce_shunt.h.

#define lstrcmpA   strcmp

Definition at line 336 of file mozce_shunt.h.

Definition at line 337 of file mozce_shunt.h.

#define lstrcpyA   strcpy

Definition at line 335 of file mozce_shunt.h.

#define lstrlenA   strlen

Definition at line 334 of file mozce_shunt.h.

#define MapVirtualKeyA   MapVirtualKeyW

Definition at line 1291 of file mozce_shunt.h.

Definition at line 673 of file mozce_shunt.h.

Definition at line 1130 of file mozce_shunt.h.

Definition at line 81 of file mozce_shunt.h.

Definition at line 401 of file mozce_shunt.h.

Definition at line 1135 of file mozce_shunt.h.

Definition at line 50 of file mozce_shunt.h.

Definition at line 678 of file mozce_shunt.h.

Definition at line 804 of file mozce_shunt.h.

Definition at line 809 of file mozce_shunt.h.

Definition at line 794 of file mozce_shunt.h.

Definition at line 814 of file mozce_shunt.h.

Definition at line 819 of file mozce_shunt.h.

Definition at line 799 of file mozce_shunt.h.

Definition at line 284 of file mozce_shunt.h.

Definition at line 693 of file mozce_shunt.h.

Definition at line 688 of file mozce_shunt.h.

Definition at line 1362 of file mozce_shunt.h.

Definition at line 1140 of file mozce_shunt.h.

Definition at line 1367 of file mozce_shunt.h.

Definition at line 683 of file mozce_shunt.h.

Definition at line 1145 of file mozce_shunt.h.

Definition at line 703 of file mozce_shunt.h.

Definition at line 258 of file mozce_shunt.h.

Definition at line 698 of file mozce_shunt.h.

Definition at line 1150 of file mozce_shunt.h.

Definition at line 279 of file mozce_shunt.h.

Definition at line 198 of file mozce_shunt.h.

Definition at line 214 of file mozce_shunt.h.

Definition at line 299 of file mozce_shunt.h.

Definition at line 709 of file mozce_shunt.h.

Definition at line 1175 of file mozce_shunt.h.

Definition at line 1180 of file mozce_shunt.h.

Definition at line 1155 of file mozce_shunt.h.

Definition at line 1185 of file mozce_shunt.h.

Definition at line 1190 of file mozce_shunt.h.

Definition at line 1195 of file mozce_shunt.h.

Definition at line 1160 of file mozce_shunt.h.

Definition at line 1165 of file mozce_shunt.h.

Definition at line 1170 of file mozce_shunt.h.

Definition at line 263 of file mozce_shunt.h.

Definition at line 1200 of file mozce_shunt.h.

Definition at line 1333 of file mozce_shunt.h.

Definition at line 1205 of file mozce_shunt.h.

Definition at line 243 of file mozce_shunt.h.

Definition at line 96 of file mozce_shunt.h.

Definition at line 1210 of file mozce_shunt.h.

Definition at line 714 of file mozce_shunt.h.

#define SetClassLongA   SetClassLongW

Definition at line 719 of file mozce_shunt.h.

Definition at line 1220 of file mozce_shunt.h.

Definition at line 1215 of file mozce_shunt.h.

Definition at line 1372 of file mozce_shunt.h.

Definition at line 724 of file mozce_shunt.h.

Definition at line 1225 of file mozce_shunt.h.

Definition at line 1230 of file mozce_shunt.h.

Definition at line 1235 of file mozce_shunt.h.

Definition at line 638 of file mozce_shunt.h.

Definition at line 729 of file mozce_shunt.h.

Definition at line 734 of file mozce_shunt.h.

Definition at line 1328 of file mozce_shunt.h.

Definition at line 1240 of file mozce_shunt.h.

Definition at line 739 of file mozce_shunt.h.

Definition at line 456 of file mozce_shunt.h.

#define SetWindowLongA   SetWindowLongW

Definition at line 1286 of file mozce_shunt.h.

Definition at line 744 of file mozce_shunt.h.

Definition at line 749 of file mozce_shunt.h.

Definition at line 754 of file mozce_shunt.h.

Definition at line 759 of file mozce_shunt.h.

Definition at line 764 of file mozce_shunt.h.

#define SHGetPathFromIDListA   SHGetPathFromIDList

Definition at line 426 of file mozce_shunt.h.

Definition at line 219 of file mozce_shunt.h.

Definition at line 1245 of file mozce_shunt.h.

Definition at line 226 of file mozce_shunt.h.

#define strcmpi   _stricmp

Definition at line 353 of file mozce_shunt.h.

#define strdup   _strdup

Definition at line 343 of file mozce_shunt.h.

Definition at line 365 of file mozce_shunt.h.

Definition at line 376 of file mozce_shunt.h.

#define stricmp   _stricmp

Definition at line 348 of file mozce_shunt.h.

#define strnicmp   _strnicmp

Definition at line 358 of file mozce_shunt.h.

#define SystemParametersInfoA   SystemParametersInfoW

Definition at line 1266 of file mozce_shunt.h.

Definition at line 930 of file mozce_shunt.h.

#define timeGetTime   GetTickCount

Definition at line 431 of file mozce_shunt.h.

Definition at line 769 of file mozce_shunt.h.

Definition at line 309 of file mozce_shunt.h.

Definition at line 829 of file mozce_shunt.h.

Definition at line 1250 of file mozce_shunt.h.

Definition at line 1255 of file mozce_shunt.h.

Definition at line 774 of file mozce_shunt.h.

Definition at line 304 of file mozce_shunt.h.

Definition at line 370 of file mozce_shunt.h.


Typedef Documentation

typedef void(* mozce_LINEDDAPROC)(int X, int Y, LPARAM lpData)

Definition at line 1485 of file mozce_shunt.h.


Function Documentation

Definition at line 51 of file process.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_abort called\n");
#endif

#if defined(DEBUG)
    DebugBreak();
#endif
    TerminateProcess((HANDLE) GetCurrentProcessId(), 3);
}

Here is the call graph for this function:

Here is the caller graph for this function:

MOZCE_SHUNT_API int mozce_access ( const char *  path,
int  mode 
)

Definition at line 98 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("-- mozce_access called\n");
#endif
    
    return 0;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_AlphaBlend ( HDC  hdcDest,
int  nXOriginDest,
int  nYOriginDest,
int  nWidthDest,
int  nHeightDest,
HDC  hdcSrc,
int  nXOriginSrc,
int  nYOriginSrc,
int  nWidthSrc,
int  nHeightSrc,
BLENDFUNCTION  blendFunction 
)

Definition at line 1240 of file win32.cpp.

                                       {
    DWORD SCA = blendFunction.SourceConstantAlpha;
    int w = MIN(nWidthSrc,nWidthDest);
    int h = MIN(nHeightSrc, nHeightDest);
    for ( int x = 0; x<= w; x++){
        for( int y = 0; y<=h; y++){
            COLORREF dc = GetPixel(hdcDest, nXOriginDest+x, nYOriginDest+y);
            COLORREF sc = GetPixel(hdcSrc,  nXOriginSrc+x,  nYOriginSrc+y);
            color Src,Dst;
            Src.Red = GetRValue(sc);
            Dst.Red = GetRValue(dc);
            Src.Green = GetGValue(sc);
            Dst.Green = GetGValue(dc);
            Src.Blue = GetBValue(sc);
            Dst.Blue = GetBValue(dc);
            
            Src.Alpha = 1.0 - (double)((sc >> 24)/255.0);
            Dst.Alpha = 1.0 - (double)((dc >> 24)/255.0);
            
            //Src.Alpha = 1.0;//(double)((sc >> 24)/255.0);
            //Dst.Alpha = 1.0;//(double)((dc >> 24)/255.0);
            
            
            if(blendFunction.AlphaFormat & AC_SRC_ALPHA){
                Dst.Red     = (unsigned char)(Src.Red * (SCA/255.0)   + Dst.Red * (1.0 - (SCA/255.0)));
                Dst.Green   = (unsigned char)(Src.Green * (SCA/255.0)        + Dst.Green * (1.0 - (SCA/255.0)));
                Dst.Blue    = (unsigned char)(Src.Blue * (SCA/255.0)  + Dst.Blue * (1.0 - (SCA/255.0)));
                Dst.Alpha   = MAX(0,MIN(1,Src.Alpha * (SCA/255.0)     + Dst.Alpha * (1.0 - (SCA/255.0))));
            }else if(SCA == 0xff){
                Dst.Red     = (unsigned char)(Src.Alpha*Src.Red       + (1 - Src.Alpha) * Dst.Red);
                Dst.Green   = (unsigned char)(Src.Alpha*Src.Green     + (1 - Src.Alpha) * Dst.Green);
                Dst.Blue    = (unsigned char)(Src.Alpha*Src.Blue      + (1 - Src.Alpha) * Dst.Blue);
                Dst.Alpha   = MAX(0,MIN(1,Src.Alpha     + (1 - Src.Alpha) * Dst.Alpha));
            }else{
                Src.Red     = (unsigned char)(Src.Red   * SCA / 255.0);
                Src.Green   = (unsigned char)(Src.Green        * SCA / 255.0);
                Src.Blue    = (unsigned char)(Src.Blue  * SCA / 255.0);
                Src.Alpha   = MAX(0,MIN(1,Src.Alpha     * SCA / 255.0));
                double t = (Src.Red       + (1 - Src.Alpha) * Dst.Red);
                Dst.Red     = (unsigned char)(t>255?255:t);
                t = (Src.Green     + (1 - Src.Alpha) * Dst.Green);
                Dst.Green   = (unsigned char)(t>255?255:t);
                t = (Src.Blue      + (1 - Src.Alpha) * Dst.Blue);
                Dst.Blue    = (unsigned char)(t>255?255:t);
                Dst.Alpha   = MAX(0,MIN(1,Src.Alpha     + (1 - Src.Alpha) * Dst.Alpha));
            }
            SetPixel(hdcDest,nXOriginDest+x, nYOriginDest+y, RGB(Dst.Red,Dst.Green,Dst.Blue));
            
            //(((unsigned char)(Dst.Alpha*255) & 0xff) << 24)|
        }
    }
    
    
    return true;
    
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_Arc ( HDC  inDC,
int  inLeftRect,
int  inTopRect,
int  inRightRect,
int  inBottomRect,
int  inXStartArc,
int  inYStartArc,
int  inXEndArc,
int  inYEndArc 
)

Definition at line 304 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_Arc called\n");
#endif

    BOOL retval = FALSE;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API void mozce_assert ( int  inExpression)

Definition at line 48 of file assert.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_assert called\n");
#endif

    if(0 == inExpression)
    {
        DebugBreak();
    }
}

Here is the call graph for this function:

MOZCE_SHUNT_API LRESULT mozce_CallNextHookEx ( HHOOK  inHook,
int  inCode,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 674 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_CallNextHookEx called\n");
#endif

    LRESULT retval = NULL;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_chmod ( const char *  inFilename,
int  inMode 
)

Definition at line 49 of file io.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_chmod called\n");
#endif
    
    int retval = -1;
    
    if(NULL != inFilename)
    {
        unsigned short buffer[MAX_PATH];
        
        int convRes = a2w_buffer(inFilename, -1, buffer, sizeof(buffer) / sizeof(unsigned short));
        if(0 != convRes)
        {
            DWORD attribs = 0;
            
            attribs = GetFileAttributesW(buffer);
            if(0 != attribs)
            {
                if(0 != (_S_IWRITE & inMode))
                {
                    attribs |= FILE_ATTRIBUTE_READONLY;
                }
                else
                {
                    attribs &= ~FILE_ATTRIBUTE_READONLY;
                }
                
                BOOL setRes = SetFileAttributesW(buffer, attribs);
                if(FALSE != setRes)
                {
                    retval = 0;
                }
            }
        }
    }
    
    return retval;
}

Here is the call graph for this function:

Definition at line 282 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("mozce_close called\n");
#endif
    
    
    
    
    if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1)
        return -1;
    
    
    fclose(_fdtab[fd].file);
    _fdtab[fd].fd = -1;
    
    return 0;
}

Here is the call graph for this function:

Definition at line 782 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_Conitialize called\n");
#endif

    CoInitializeEx(NULL, COINIT_MULTITHREADED);
    return S_OK;

}

Here is the call graph for this function:

MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal ( IUnknown inUnk,
BOOL  inLock,
BOOL  inLastUnlockReleases 
)

Definition at line 753 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CoLockObjectExternal called\n");
#endif

    HRESULT retval = S_OK;

    if(NULL != inUnk)
    {
        if(FALSE == inLock)
        {
            inUnk->Release();
        }
        else
        {
            inUnk->AddRef();
        }
    }
    else
    {
        retval = E_INVALIDARG;
    }

    return retval;
}

Here is the call graph for this function:

Definition at line 56 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CommDlgExtendedError called\n");
#endif

    return -1 /*CDERR_DIALOGFAILURE*/;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_CopyFileA ( LPCSTR  lpExistingFileName,
LPCSTR  lpNewFileName,
BOOL  bFailIfExists 
)

Definition at line 151 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CopyFileA called\n");
#endif

    BOOL retval = FALSE;
    TCHAR wideStr[2][MAX_PATH];

    if(a2w_buffer(lpExistingFileName, -1, wideStr[0], MAX_PATH) &&
       a2w_buffer(lpNewFileName, -1, wideStr[1], MAX_PATH))
    {
        retval = CopyFileW(wideStr[0], wideStr[1], bFailIfExists);
    }
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HDC mozce_CreateDCA ( LPCSTR  inDriver,
LPCSTR  inDevice,
LPCSTR  inOutput,
CONST DEVMODEA *  inInitData 
)

Definition at line 518 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateDCA called\n");
#endif

    HDC retval = NULL;

    LPTSTR wDriver = a2w_malloc(inDriver, -1, NULL);
    LPTSTR wDevice = a2w_malloc(inDevice, -1, NULL);
    LPTSTR wOutput = a2w_malloc(inOutput, -1, NULL);

    DEVMODE wInitData;
    if (inInitData)
    {
        memset(&wInitData, 0, sizeof(wInitData));
        
        wInitData.dmSpecVersion = inInitData->dmSpecVersion;
        wInitData.dmDriverVersion = inInitData->dmDriverVersion;
        wInitData.dmSize = inInitData->dmSize;
        wInitData.dmDriverExtra = inInitData->dmDriverExtra;
        wInitData.dmFields = inInitData->dmFields;
        wInitData.dmOrientation = inInitData->dmOrientation;
        wInitData.dmPaperSize = inInitData->dmPaperSize;
        wInitData.dmPaperLength = inInitData->dmPaperLength;
        wInitData.dmPaperWidth = inInitData->dmPaperWidth;
        wInitData.dmScale = inInitData->dmScale;
        wInitData.dmCopies = inInitData->dmCopies;
        wInitData.dmDefaultSource = inInitData->dmDefaultSource;
        wInitData.dmPrintQuality = inInitData->dmPrintQuality;
        wInitData.dmColor = inInitData->dmColor;
        wInitData.dmDuplex = inInitData->dmDuplex;
        wInitData.dmYResolution = inInitData->dmYResolution;
        wInitData.dmTTOption = inInitData->dmTTOption;
        wInitData.dmCollate = inInitData->dmCollate;
        wInitData.dmLogPixels = inInitData->dmLogPixels;
        wInitData.dmBitsPerPel = inInitData->dmBitsPerPel;
        wInitData.dmPelsWidth = inInitData->dmPelsWidth;
        wInitData.dmPelsHeight = inInitData->dmPelsHeight;
        wInitData.dmDisplayFlags = inInitData->dmDisplayFlags;
        wInitData.dmDisplayFrequency = inInitData->dmDisplayFrequency;
        a2w_buffer((LPCSTR)inInitData->dmDeviceName, -1, wInitData.dmDeviceName, charcount(wInitData.dmDeviceName));
        a2w_buffer((LPCSTR)inInitData->dmFormName, -1, wInitData.dmFormName, charcount(wInitData.dmFormName));
    }
    retval = CreateDC(wDriver, wDevice, wOutput, inInitData ? &wInitData : NULL);
    if(NULL != wDriver)
    {
        free(wDriver);
        wDriver = NULL;
    }
    if(NULL != wDevice)
    {
        free(wDevice);
        wDevice = NULL;
    }
    if(NULL != wOutput)
    {
        free(wOutput);
        wOutput = NULL;
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HDC mozce_CreateDCA2 ( LPCSTR  inDriver,
LPCSTR  inDevice,
LPCSTR  inOutput,
CONST DEVMODE *  inInitData 
)

Definition at line 585 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateDCA2 called\n");
#endif

    HDC retval = NULL;

    LPTSTR wDriver = a2w_malloc(inDriver, -1, NULL);
    LPTSTR wDevice = a2w_malloc(inDevice, -1, NULL);
    LPTSTR wOutput = a2w_malloc(inOutput, -1, NULL);

    retval = CreateDC(wDriver, wDevice, wOutput, inInitData);

    if(NULL != wDriver)
    {
        free(wDriver);
        wDriver = NULL;
    }
    if(NULL != wDevice)
    {
        free(wDevice);
        wDevice = NULL;
    }
    if(NULL != wOutput)
    {
        free(wOutput);
        wOutput = NULL;
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap ( HDC  inDC,
CONST BITMAPINFOHEADER *  inBMIH,
DWORD  inInit,
CONST VOID inBInit,
CONST BITMAPINFO *  inBMI,
UINT  inUsage 
)

Definition at line 115 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_CreateDIBitmap called\n");
#endif

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return NULL;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA ( LPCSTR  lpPathName,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes 
)

Definition at line 76 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateDirectoryA called (%s)\n", lpPathName);
#endif
    
    BOOL retval = FALSE;
    TCHAR wideStr[MAX_PATH];

    if(a2w_buffer(lpPathName, -1, wideStr, MAX_PATH))
    {
        retval = CreateDirectoryW(wideStr, lpSecurityAttributes);
    }
    
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA ( const char *  lpName,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes 
)
MOZCE_SHUNT_API HANDLE mozce_CreateEventA ( LPSECURITY_ATTRIBUTES  lpEventAttributes,
BOOL  bManualReset,
BOOL  bInitialState,
const char *  lpName 
)

Definition at line 1548 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateEventA called\n");
#endif
    
    HANDLE hEvent;
    unsigned short *lpNameNew = NULL;
    int len;
    
    if(lpName)
    {
        len = strlen(lpName) + 1;
        lpNameNew = (unsigned short*)malloc(len * 2);
        
        MultiByteToWideChar(CP_ACP, 0, lpName, -1, lpNameNew, len);
    }
    
    hEvent = CreateEventW(lpEventAttributes, bManualReset, bInitialState, lpNameNew);
    
    free(lpNameNew);
    
    return hEvent;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_CreateFileA ( LPCSTR  lpFileName,
DWORD  dwDesiredAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes,
DWORD  dwCreationDisposition,
DWORD  dwFlagsAndAttributes,
HANDLE  hTemplateFile 
)

Definition at line 171 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateFileA called (%s)\n", lpFileName);
#endif

    HANDLE retval = INVALID_HANDLE_VALUE;
    TCHAR wideStr[MAX_PATH];

    if(a2w_buffer(lpFileName, -1, wideStr, MAX_PATH))
    {
        retval = CreateFileW(wideStr, 
                             dwDesiredAccess, 
                             dwShareMode, 
                             lpSecurityAttributes, 
                             dwCreationDisposition, 
                             dwFlagsAndAttributes, 
                             hTemplateFile);
    }
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_CreateFileMappingA ( HANDLE  hFile,
LPSECURITY_ATTRIBUTES  lpFileMappingAttributes,
DWORD  flProtect,
DWORD  dwMaximumSizeHigh,
DWORD  dwMaximumSizeLow,
LPCSTR  lpName 
)

Definition at line 1754 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateFileMappingA called\n");
#endif
    
    HANDLE h = NULL;
    
    LPTSTR wString = a2w_malloc(lpName, -1, NULL);
    if (wString) {
        h = CreateFileMappingW(hFile, lpFileMappingAttributes, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow, wString);
        free(wString);
    }
    return h;
}

Here is the call graph for this function:

Definition at line 1825 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateFontIndirectA called\n");
#endif
    
    LOGFONTW lfw;
    HFONT hFont;
    
    lfw.lfHeight         = lplf->lfHeight;
    lfw.lfWidth          = lplf->lfWidth;
    lfw.lfEscapement     = lplf->lfEscapement;
    lfw.lfOrientation    = lplf->lfOrientation;
    lfw.lfWeight         = lplf->lfWeight;
    lfw.lfItalic         = lplf->lfItalic;
    lfw.lfUnderline      = lplf->lfUnderline;
    lfw.lfStrikeOut      = lplf->lfStrikeOut;
    lfw.lfCharSet        = lplf->lfCharSet;
    lfw.lfOutPrecision   = lplf->lfOutPrecision;
    lfw.lfClipPrecision  = lplf->lfClipPrecision;
    lfw.lfQuality        = lplf->lfQuality;
    lfw.lfPitchAndFamily = lplf->lfPitchAndFamily;
    
    a2w_buffer(lplf->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE);
    hFont = CreateFontIndirectW(&lfw);
    
#ifdef DEBUG
    mozce_printf("CreateFontIndirectW %x\n", hFont);
#endif
    return hFont;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_CreateMutexA ( LPSECURITY_ATTRIBUTES  lpMutexAttributes,
BOOL  bInitialOwner,
LPCSTR  lpName 
)

Definition at line 215 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateMutexA called\n");
#endif
    
    if (!lpName)
        return CreateMutexW(lpMutexAttributes, bInitialOwner, NULL);
    
    LPTSTR widestr = a2w_malloc(lpName, -1, NULL);
    HANDLE h = CreateMutexW(lpMutexAttributes, bInitialOwner, widestr);
    free(widestr);
    return h;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_CreatePipe ( PHANDLE  hReadPipe,
PHANDLE  hWritePipe,
LPSECURITY_ATTRIBUTES  lpPipeAttributes,
DWORD  nSize 
)

Definition at line 1186 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_CreatePipe called\n");
#endif
    return FALSE;
}

Here is the call graph for this function:

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 
)

Definition at line 232 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateProcessA called\n");
#endif

       LPTSTR image   = a2w_malloc(pszImageName, -1, NULL);
       LPTSTR cmdline = a2w_malloc(pszCmdLine, -1, NULL);

       BOOL retval = CreateProcessW(image, cmdline, NULL, NULL, FALSE, fdwCreate, NULL, NULL, NULL, pProcInfo);

       if (image)
              free(image);
       
       if (cmdline)
              free(cmdline);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_CreateSemaphoreA ( LPSECURITY_ATTRIBUTES  lpSemaphoreAttributes,
LONG  lInitialCount,
LONG  lMaximumCount,
LPCSTR  lpName 
)

Definition at line 1789 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_CreateSemaphoreA called\n");
#endif
    
    HANDLE h = NULL;
    
    if (!lpName)
        return CreateSemaphoreW(lpSemaphoreAttributes, lInitialCount, lMaximumCount, NULL);

    LPTSTR wString = a2w_malloc(lpName, -1, NULL);
    if (wString) {
        h = CreateSemaphoreW(lpSemaphoreAttributes, lInitialCount, lMaximumCount, wString);
        free(wString);
    }
    return h;
}

Here is the call graph for this function:

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 
)

Definition at line 1162 of file win32A.cpp.

{
    TCHAR classNameW[MAX_PATH];
    TCHAR windowNameW[MAX_PATH];
    TCHAR *pWindowNameW;
    TCHAR *pClassNameW;
    
    HWND hwnd;
    
    if(IsBadReadPtr(lpClassName, 1))
    {
        pClassNameW = (WCHAR *) lpClassName;
    }
    else
    {
        a2w_buffer(lpClassName, -1, classNameW, MAX_PATH);
        pClassNameW = classNameW;
    }
    
    if(lpWindowName)
    {
        a2w_buffer(lpWindowName, -1, windowNameW, MAX_PATH);
        pWindowNameW = windowNameW;
    }
    else
    {
        pWindowNameW = NULL;
    }
    
    hwnd = CreateWindowExW(dwExStyle, 
                           pClassNameW, 
                           pWindowNameW, 
                           dwStyle,
                           x, y, 
                           nWidth, nHeight, 
                           hWndParent, 
                           hMenu,
                           hInstance, 
                           lpParam);
    
    return hwnd;
}

Here is the call graph for this function:

MOZCE_SHUNT_API char* mozce_ctime ( const time_t *  timer)

Definition at line 257 of file time.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_ctime called\n");
#endif

    char* retval = NULL;

    if(NULL != timer)
    {
        struct tm tmLocal;
        struct tm* localRes = NULL;

        localRes = mozce_localtime_r(timer, &tmLocal);
        if(NULL != localRes)
        {
            static char ctimeBuf[32];
            size_t strftimeRes = 0;

            // Sat Dec 20 01:05:05 1969\n\0
            strftimeRes = mozce_strftime(ctimeBuf, sizeof(ctimeBuf), "%a %b %d %H %Y\n", &tmLocal);
            if(0 != strftimeRes)
            {
                retval = ctimeBuf;
            }
        }
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API LRESULT mozce_DefWindowProcA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 1150 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_DefWindowProcA called\n");
#endif

    return DefWindowProcW(hWnd, Msg, wParam, lParam);
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_DeleteFileA ( LPCSTR  lpFileName)

Definition at line 113 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_DeleteFile called\n");
#endif

    BOOL retval = FALSE;
    TCHAR wideStr[MAX_PATH];

    if(a2w_buffer(lpFileName, -1, wideStr, MAX_PATH))
    {
        retval = DeleteFileW(wideStr);
    }
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_DrawTextA ( HDC  inDC,
LPCSTR  inString,
int  inCount,
LPRECT  inRect,
UINT  inFormat 
)

Definition at line 884 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_DrawTextA called\n");
#endif

    int retval = 0;
    int wStringLen = 0;
    LPTSTR wString = a2w_malloc(inString, inCount, &wStringLen);
    if(NULL != wString)
    {
        retval = DrawText(inDC, wString, wStringLen, inRect, inFormat);
        free(wString);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_EnumChildWindows ( HWND  inParent,
WNDENUMPROC  inFunc,
LPARAM  inParam 
)

Definition at line 590 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_EnumChildWindows called\n");
#endif

    ECWWindows myParams;
    myParams.params = inParam;
    myParams.func   = inFunc;
    myParams.parent = inParent;

    return EnumWindows(MyEnumWindowsProc, (LPARAM) &myParams);
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_EnumFontFamiliesA ( HDC  hdc,
const char *  lpszFamily,
FONTENUMPROC  lpEnumFontFamProc,
LPARAM  lParam 
)

Definition at line 1884 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_EnumFontFamilies called\n");
#endif
    
    MYENUMFONTFAMARG arg;
    unsigned short *lpszFamilyW = NULL;
    
    if(lpszFamily != NULL)
        lpszFamilyW = a2w_malloc(lpszFamily, -1, NULL);
    
    arg.fn = lpEnumFontFamProc;
    arg.lParam = lParam;
    
    int result = EnumFontFamiliesW(hdc, lpszFamilyW, (FONTENUMPROC) MyEnumFontFamProc, (LPARAM) &arg);

    free(lpszFamilyW);
    
    return result;

}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx ( HDC  inDC,
const LOGFONTA *  inLogfont,
FONTENUMPROC  inFunc,
LPARAM  inParam,
DWORD  inFlags 
)

Definition at line 429 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_EnumFontFamiliesEx called\n");
#endif

    int retval = 0;

    //  We support only one case.
    //  Callback should be oldstyle EnumFonts.
    if(DEFAULT_CHARSET != inLogfont->lfCharSet)
    {
#ifdef DEBUG
        mozce_printf("mozce_EnumFontFamiliesEx failed\n");
#endif
        SetLastError(ERROR_NOT_SUPPORTED);
        return retval;
    }
     
    CollectFaces collection;
    collection.mCount = 0;
    
    EnumFonts(inDC, NULL, collectProc, (LPARAM)&collection);
    
    UINT loop;
    for(loop = 0; loop < collection.mCount; loop++)
    {
        retval = EnumFonts(inDC, collection.mNames[loop], inFunc, inParam);
    }
    
    for(loop = 0; loop < collection.mCount; loop++)
    {
        free(collection.mNames[loop]);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_EnumThreadWindows ( DWORD  inThreadID,
WNDENUMPROC  inFunc,
LPARAM  inParam 
)

Definition at line 607 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_EnumThreadWindows called\n");
#endif
    return FALSE; // Stop Enumerating
}

Here is the call graph for this function:

Definition at line 1046 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_ExpandEnvironmentStrings called\n");
#endif

    return 0;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStringsW ( const unsigned short *  lpSrc,
const unsigned short *  lpDst,
DWORD  nSize 
)

Definition at line 1057 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_ExpandEnvironmentStrings called\n");
#endif

    return 0;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_ExtSelectClipRgn ( HDC  inDC,
HRGN  inRGN,
int  inMode 
)

Definition at line 161 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_ExtSelectClipRgn called\n");
#endif
    
    // inModes are defined as:
    // RGN_AND = 1
    // RGN_OR = 2
    // RGN_XOR = 3
    // RGN_DIFF = 4
    // RGN_COPY = 5
    

    if (inMode == RGN_COPY)
    {
        return SelectClipRgn(inDC, inRGN);
    }

    HRGN cRGN = NULL;
    int result = GetClipRgn(inDC, cRGN);
    
    // if there is no current clipping region, set it to the
    // tightest bounding rectangle that can be drawn around
    // the current visible area on the device

    if (result != 1)
    {
        RECT cRect;
        GetClipBox(inDC,&cRect);
        cRGN = CreateRectRgn(cRect.left,cRect.top,cRect.right,cRect.bottom);
    }

    // now select the proper region as the current clipping region
    result = SelectClipRgn(inDC,cRGN);           
    
    if (result == NULLREGION) 
    {
        if (inMode == RGN_DIFF || inMode == RGN_AND)
            result = SelectClipRgn(inDC,NULL);
        else
            result = SelectClipRgn(inDC,inRGN);
        
        DeleteObject(cRGN);
        return result;
    } 
    
    if (result == SIMPLEREGION || result == COMPLEXREGION)
    {
        if (inMode == RGN_DIFF)
            CombineRgn(cRGN, cRGN, inRGN, inMode);
        else
            CombineRgn(cRGN, inRGN, cRGN, inMode);
        result = SelectClipRgn(inDC,cRGN);
        DeleteObject(cRGN);
        return result;
    }
    
    HRGN rgn = CreateRectRgn(0, 0, 32000, 32000);
    result = SelectClipRgn(inDC, rgn);
    DeleteObject(rgn);

    return result;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_ExtTextOutA ( HDC  inDC,
int  inX,
int  inY,
UINT  inOptions,
LPCRECT  inRect,
const char *  inString,
UINT  inCount,
const LPINT  inDx 
)

Definition at line 642 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
        mozce_printf("mozce_ExtTextOutA (%s) called\n", inString);
#endif
    
    BOOL retval = false;
    
    if (inCount == -1)
        inCount = strlen(inString);
    
    int wLen = 0;
    LPTSTR wStr = a2w_malloc(inString, inCount, &wLen);
    
    if(NULL != wStr)
    {  
        retval = ExtTextOutW(inDC, inX, inY, inOptions, inRect, wStr, wLen, inDx);
        
        free(wStr);
        wStr = NULL;
    }
    
    return retval;
}

Here is the call graph for this function:

Here is the caller graph for this function:

MOZCE_SHUNT_API FILE* mozce_fdopen ( int  inFD,
const char *  inMode 
)

Definition at line 121 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("-- mozce_fdopen called (mode is ignored!) \n");
#endif
    
    
    if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1)
        return 0;
    
    return _fdtab[fd].file;
}

Here is the call graph for this function:

Definition at line 375 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("mozce_fileno called\n");
#endif
    
    // Windows SDK is broken.  _fileno should return an int, but for whatever god forsaken reason, CE returns void*.
    int fd;
    
    for(fd = 0; fd < MAXFDS; fd++)
    {
        if(_fdtab[fd].file == f)
        {
            return _fdtab[fd].fd;
        }
    }
    return (int) fileno(f);
    
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA ( const char *  lpFileName,
LPWIN32_FIND_DATAA  lpFindFileData 
)

Definition at line 1679 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_FindFirstFileA called\n");
#endif
    
    HANDLE h = NULL;
    if (!lpFindFileData || !lpFileName)
        return h;

    LPTSTR wString = a2w_malloc(lpFileName, -1, NULL);
    if (!wString) 
        return INVALID_HANDLE_VALUE;

    WIN32_FIND_DATAW findData;
    h = FindFirstFileW(wString, &findData);
    free(wString);
        
    if (!h || h == INVALID_HANDLE_VALUE)
        return INVALID_HANDLE_VALUE;

    lpFindFileData->dwFileAttributes   = findData.dwFileAttributes;
    lpFindFileData->dwReserved0        = findData.dwOID;
    lpFindFileData->ftCreationTime     = findData.ftCreationTime;
    lpFindFileData->ftLastAccessTime   = findData.ftLastAccessTime;
    lpFindFileData->ftLastWriteTime    = findData.ftLastWriteTime;
    lpFindFileData->nFileSizeHigh      = findData.nFileSizeHigh;
    lpFindFileData->nFileSizeLow       = findData.nFileSizeLow;    
    lpFindFileData->cAlternateFileName[0] = NULL;    
    
    if (!w2a_buffer(findData.cFileName, -1, lpFindFileData->cFileName, charcount(lpFindFileData->cFileName)))
        return INVALID_HANDLE_VALUE;
    
    return h;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_FindNextFileA ( HANDLE  hFindFile,
WIN32_FIND_DATAA *  lpFindFileData 
)

Definition at line 1717 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_FindNextFileA called\n");
#endif
    
    WIN32_FIND_DATAW findData;
    
    findData.dwFileAttributes  = lpFindFileData->dwFileAttributes;
    findData.dwOID             = lpFindFileData->dwReserved0;
    findData.ftCreationTime    = lpFindFileData->ftCreationTime;
    findData.ftLastAccessTime  = lpFindFileData->ftLastAccessTime;
    findData.ftLastWriteTime   = lpFindFileData->ftLastWriteTime;
    findData.nFileSizeHigh     = lpFindFileData->nFileSizeHigh;
    findData.nFileSizeLow      = lpFindFileData->nFileSizeLow;    

    
    if (FindNextFileW(hFindFile, &findData))
    {
        lpFindFileData->dwFileAttributes      = findData.dwFileAttributes;
        lpFindFileData->ftCreationTime        = findData.ftCreationTime;
        lpFindFileData->ftLastAccessTime      = findData.ftLastAccessTime;
        lpFindFileData->ftLastWriteTime       = findData.ftLastWriteTime;
        lpFindFileData->nFileSizeHigh         = findData.nFileSizeHigh;
        lpFindFileData->nFileSizeLow          = findData.nFileSizeLow;    
        lpFindFileData->dwReserved0           = findData.dwOID;
        lpFindFileData->cAlternateFileName[0] = NULL;

        w2a_buffer(findData.cFileName, -1, lpFindFileData->cFileName, MAX_PATH);

        return TRUE;
    }
    return FALSE;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HRSRC mozce_FindResourceA ( HMODULE  hModule,
LPCSTR  lpName,
LPCSTR  lpType 
)

Definition at line 1501 of file win32A.cpp.

{
    MOZCE_PRECHECK

    HRSRC hr;
    if (! IS_INTRESOURCE(lpName) && IS_INTRESOURCE(lpType))
    {
        LPTSTR wName = a2w_malloc(lpName, -1, NULL);
        LPTSTR wType = a2w_malloc(lpType, -1, NULL);
        
        hr = FindResourceW(hModule, wName, wType);
        free(wName);
        free(wType);
    }
    else
    {
        hr = FindResourceW(hModule, (const unsigned short*)lpName, (const unsigned short*)lpType);
    }

#ifdef DEBUG
    if (hr == NULL)
        mozce_printf("hr == %d\n", GetLastError());
#endif
    return hr;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HWND mozce_FindWindowA ( LPCSTR  inClass,
LPCSTR  inWindow 
)

Definition at line 946 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_FindWindowA called\n");
#endif

    HWND retval = NULL;

    LPTSTR wClass = a2w_malloc(inClass, -1, NULL);
    LPTSTR wWindow = a2w_malloc(inWindow, -1, NULL); 
   
    retval = FindWindow(wClass, NULL);
    
    if (wWindow)
        free(wWindow);

    if (wClass)
        free(wClass);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_FlashWindow ( HWND  inWnd,
BOOL  inInvert 
)

Definition at line 555 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_FlashWindow called\n");
#endif

    BOOL retval = FALSE;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_FormatMessageA ( DWORD  dwFlags,
LPCVOID  lpSource,
DWORD  dwMessageId,
DWORD  dwLanguageId,
LPSTR  lpBuffer,
DWORD  nSize,
va_list *  Arguments 
)

Definition at line 1772 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_FormatMessageA called\n");
#endif
    
    DWORD d = -1;
    LPTSTR wString = a2w_malloc(lpBuffer, nSize, NULL);
    if (wString) {
        d = FormatMessageW(dwFlags, lpSource, dwMessageId, dwLanguageId, wString, nSize*2, Arguments); 
        free(wString);
    }
    return d;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_FrameRect ( HDC  inDC,
CONST RECT *  inRect,
HBRUSH  inBrush 
)

Definition at line 250 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_FrameRect called\n");
#endif

    HBRUSH oldBrush = (HBRUSH)SelectObject(inDC, inBrush);
    RECT myRect = *inRect;
    InflateRect(&myRect, 1, 1); // The width and height of
                                // the border are always one
                                // logical unit.
    
    // 1  ---->   2
    //            
    //            |
    //            v
    //
    // 4  ---->   3 

    MoveToEx(inDC, myRect.left, myRect.top, (LPPOINT) NULL); 

    // 1 -> 2
    LineTo(inDC, myRect.right, myRect.top); 
    
    // 2 -> 3
    LineTo(inDC, myRect.right, myRect.bottom); 

    // 3 -> 4
    LineTo(inDC, myRect.left, myRect.bottom); 

    SelectObject(inDC, oldBrush);

    return 1;
}

Here is the call graph for this function:

MOZCE_SHUNT_API char* mozce_fullpath ( char *  ,
const char *  ,
size_t   
)

Definition at line 60 of file stdlib.cpp.

{
    MOZCE_PRECHECK
        
#ifdef LOG_CALLS
#ifdef DEBUG
        mozce_printf("mozce_fullpath called\n");
#endif
#endif
    
    if (relPath[0] != '\\') 
    {
        int i;
        unsigned short dir[MAX_PATH];
        GetModuleFileName(GetModuleHandle (NULL), dir, MAX_PATH);
        for (i = _tcslen(dir); i && dir[i] != TEXT('\\'); i--) {}
        
        dir[i + 1] = TCHAR('\0');
        
        w2a_buffer(dir, -1, absPath, maxLength);
    }
    strcat(absPath, relPath);
    
    return absPath;
}

Here is the call graph for this function:

Definition at line 1068 of file win32.cpp.

{
    MOZCE_PRECHECK

    return TRUE;
}

Definition at line 1033 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetACP called\n");
#endif

    return GetACP();
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetClassInfoA ( HINSTANCE  hInstance,
LPCSTR  lpClassName,
LPWNDCLASS  lpWndClass 
)

Definition at line 1262 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetClassInfoA called\n");
#endif

    LPTSTR wClassName = a2w_malloc(lpClassName, -1, NULL);
    BOOL result = GetClassInfoW(hInstance, wClassName, lpWndClass);
    free(wClassName);
    return result;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_GetClassNameA ( HWND  hWnd,
LPTSTR  lpClassName,
int  nMaxCount 
)

Definition at line 1413 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetClassNameA called\n");
#endif

    WCHAR classNameW[126];
    int res;
    
    if((res = GetClassNameW(hWnd, classNameW, sizeof(classNameW))) == 0)
        return res;
    
    w2a_buffer(classNameW, -1, (char*)lpClassName, nMaxCount);
    return res;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryA ( DWORD  inBufferLength,
LPSTR  outBuffer 
)

Definition at line 696 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetCurrentDirectoryA called\n");
#endif

    DWORD retval = 0;

    if(NULL != outBuffer && 0 < inBufferLength)
    {
        outBuffer[0] = '\0';
    }

    SetLastError(ERROR_NOT_SUPPORTED);
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW ( DWORD  inBufferLength,
LPTSTR  outBuffer 
)

Definition at line 148 of file win32W.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetCurrentDirectoryW called\n");
#endif

    DWORD retval = 0;

    if(NULL != outBuffer && 0 < inBufferLength)
    {
        outBuffer[0] = _T('\0');
    }

    SetLastError(ERROR_NOT_SUPPORTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API char* mozce_getcwd ( char *  buff,
size_t  size 
)

Definition at line 176 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("mozce_getcwd called.\n");
#endif
    int i;
    unsigned short dir[MAX_PATH];
    GetModuleFileName(GetModuleHandle (NULL), dir, MAX_PATH);
    for (i = _tcslen(dir); i && dir[i] != TEXT('\\'); i--) {}
    dir[i + 1] = TCHAR('\0');
    
    w2a_buffer(dir, -1, buff, size);
    
    return buff;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_GetDIBits ( HDC  inDC,
HBITMAP  inBMP,
UINT  inStartScan,
UINT  inScanLines,
LPVOID  inBits,
LPBITMAPINFO  inInfo,
UINT  inUsage 
)

Definition at line 83 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetDIBits called\n");
#endif

    int retval = 0;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetDiskFreeSpaceA ( LPCTSTR  lpRootPathName,
LPDWORD  lpSectorsPerCluster,
LPDWORD  lpBytesPerSector,
LPDWORD  lpNumberOfFreeClusters,
LPDWORD  lpTotalNumberOfClusters 
)

Definition at line 1373 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetDiskFreeSpace called\n");
#endif

    int retval = 0;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API UINT mozce_GetDlgItemTextA ( HWND  hDlg,
int  nIDDlgItem,
LPSTR  lpString,
int  nMaxCount 
)

Definition at line 1527 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetDlgItemTextA called\n");
#endif
    
    UINT res;
    
    LPWSTR stringW = (unsigned short*) malloc ((nMaxCount + 1) * 2);
    
    res = GetDlgItemTextW(hDlg, nIDDlgItem, stringW, nMaxCount);
    
    if(res >= 0)
        w2a_buffer(stringW, -1, lpString, nMaxCount);

    free(stringW);
    return res;
}

Here is the call graph for this function:

MOZCE_SHUNT_API UINT mozce_GetDriveType ( const char *  lpRootPathName)

Definition at line 1227 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetDriveType called\n");
#endif

    return 0;
}

Here is the call graph for this function:

MOZCE_SHUNT_API char* mozce_getenv ( const char *  inName)

Definition at line 66 of file process.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_getenv called (%s)\n", inName);
#endif

    char* retval = NULL;

#ifdef DEBUG_NSPR_ALL
    if (!strcmp(inName, "NSPR_LOG_MODULES"))
        return "all:5";

    if (!strcmp(inName, "NSPR_LOG_FILE"))
        return "nspr.log";
#endif  

#ifdef TIMELINE
    if (!strcmp(inName, "NS_TIMELINE_LOG_FILE"))
        return "\\bin\\timeline.log";
    
    if (!strcmp(inName, "NS_TIMELINE_ENABLE"))
        return "1";
#endif

       if (!_stricmp(inName, "tmp"))
        return "/Temp";
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariable ( LPCSTR  lpName,
LPCSTR  lpBuffer,
DWORD  nSize 
)

Definition at line 899 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetEnvironmentVariable called\n");
#endif

    DWORD retval = 0;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableA ( LPSTR  lpName,
LPSTR  lpBuffer,
DWORD  nSize 
)

Definition at line 992 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetEnvironmentVariableA called\n");
#endif

    DWORD retval = -1;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval; 
}

Here is the call graph for this function:

Definition at line 914 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetEnvironmentVariableW called\n");
#endif

    DWORD retval = 0;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

Definition at line 196 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetFileAttributesA called\n");
#endif

    DWORD retval = (DWORD)-1;
    TCHAR wideStr[MAX_PATH];

    if(a2w_buffer(lpFileName, -1, wideStr, MAX_PATH))
    {
        retval = GetFileAttributesW(wideStr);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetFileVersionInfoA ( const char *  inFilename,
DWORD  inHandle,
DWORD  inLen,
LPVOID  outData 
)
MOZCE_SHUNT_API DWORD mozce_GetFileVersionInfoSizeA ( const char *  inFilename,
LPDWORD  outHandle 
)
MOZCE_SHUNT_API DWORD mozce_GetFontData ( HDC  inDC,
DWORD  inTable,
DWORD  inOffset,
LPVOID  outBuffer,
DWORD  inData 
)

Definition at line 336 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetFontData called\n");
#endif

    DWORD retval = GDI_ERROR;
    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetFullPathName ( const char *  lpFileName,
DWORD  nBufferLength,
const char *  lpBuffer,
const char **  lpFilePart 
)

Definition at line 951 of file win32.cpp.

{
#ifdef DEBUG
    mozce_printf("mozce_GetFullPathName called\n");
#endif

    DWORD len = strlen(lpFileName);
    if (len > nBufferLength)
        return len;
    
    strncpy((char*)lpBuffer, lpFileName, len);
    ((char*)lpBuffer)[len] = '\0';
    
    if(lpFilePart)
    {
        char* sep = strrchr(lpBuffer, '\\');
        if (sep) {
            sep++; // pass the seperator
            *lpFilePart = sep;
        }
        else
            *lpFilePart = lpBuffer;
    }
    
#ifdef DEBUG
    mozce_printf("mozce_GetFullPathName called %s (%s)\n", lpBuffer, *lpFilePart);
#endif
    return len;      
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineA ( HDC  inDC,
CHAR  inChar,
UINT  inFormat,
void inGM,
DWORD  inBufferSize,
LPVOID  outBuffer,
CONST mozce_MAT2 inMAT2 
)

Definition at line 681 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetGlyphOutlineA called\n");
#endif

    DWORD retval = GDI_ERROR;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW ( HDC  inDC,
WCHAR  inChar,
UINT  inFormat,
void inGM,
DWORD  inBufferSize,
LPVOID  outBuffer,
CONST VOID inMAT2 
)

Definition at line 132 of file win32W.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetGlyphOutlineW called\n");
#endif

    DWORD retval = GDI_ERROR;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

Definition at line 1325 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetHandleInformation called\n");
#endif

    int retval = 0;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetIconInfo ( HICON  inIcon,
PICONINFO  outIconinfo 
)

Definition at line 482 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetIconInfo called\n");
#endif

    BOOL retval = FALSE;

    if(NULL != outIconinfo)
    {
        memset(outIconinfo, 0, sizeof(ICONINFO));
    }

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_GetLocaleInfoA ( LCID  Locale,
LCTYPE  LCType,
LPSTR  lpLCData,
int  cchData 
)

Definition at line 255 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetLocaleInfoA called\n");
#endif

    int retval = 0;
    int neededChars = 0;

    neededChars = GetLocaleInfoW(Locale, LCType, NULL, 0);
    if(0 != neededChars)
    {
        LPTSTR buffer = NULL;

        buffer = (LPTSTR)malloc(neededChars * sizeof(TCHAR));
        if(NULL != buffer)
        {
            int gotChars = 0;

            gotChars = GetLocaleInfoW(Locale, LCType, buffer, neededChars);
            if(0 != gotChars)
            {
                if(0 == cchData)
                {
                    retval = WideCharToMultiByte(CP_ACP,
                                                 0,
                                                 buffer,
                                                 neededChars,
                                                 NULL,
                                                 0,
                                                 NULL,
                                                 NULL
                                                 );
                    
                }
                else
                {
                    retval = w2a_buffer(buffer, neededChars, lpLCData, cchData);
                }
            }

            free(buffer);
        }
    }

    return retval;
}

Here is the call graph for this function:

Definition at line 469 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetMapMode called\n");
#endif

    int retval = MM_TEXT;
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetMessage ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax 
)

Definition at line 986 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetMessage called\n");
#endif

    BOOL b = GetMessage(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMin);

    if (b)
        gGetMessageTime = lpMsg->time;

    return b;
}

Here is the call graph for this function:

Definition at line 1022 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetMessageTime called\n");
#endif

  return gGetMessageTime;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetModuleFileNameA ( HMODULE  hModule,
LPSTR  lpFilename,
DWORD  nSize 
)

Definition at line 56 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetModuleFileNameA called\n");
#endif
    
    TCHAR wideStr[MAX_PATH];
    
    DWORD result = w2a_buffer(wideStr, 
                              GetModuleFileNameW(hModule, 
                                                 wideStr, 
                                                 charcount(wideStr)), 
                              lpFilename, nSize);
    lpFilename[result] = '\0';

    return result;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HMODULE mozce_GetModuleHandleA ( const char *  lpName)

Definition at line 1458 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetModuleHandleA called (%s)\n", lpName);
#endif

    if (lpName == NULL)
        return GetModuleHandleW(NULL);

    TCHAR wideStr[MAX_PATH];
    if(a2w_buffer(lpName, -1, wideStr, MAX_PATH))
        return GetModuleHandleW(wideStr);

    return NULL;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_GetObjectA ( HGDIOBJ  hgdiobj,
int  cbBuffer,
LPVOID  lpvObject 
)

Definition at line 1309 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetObjectA called\n");
#endif

    if(cbBuffer == sizeof(LOGFONTA))
    {
        LOGFONTW lfw;
        LOGFONTA *plfa = (LOGFONTA *) lpvObject;
        int res;
        
        res = GetObjectW(hgdiobj, sizeof(LOGFONTW), &lfw);
        
        memcpy(plfa, &lfw, sizeof(LOGFONTA));
        
        w2a_buffer(lfw.lfFaceName, -1, plfa->lfFaceName, charcount(plfa->lfFaceName));
        return res;
    }
    return GetObjectW(hgdiobj, cbBuffer, lpvObject);
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetOpenFileNameA ( LPOPENFILENAMEA  lpofna)

Definition at line 1433 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetOpenFileNameA called\n");
#endif

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    return FALSE;
}

Here is the call graph for this function:

MOZCE_SHUNT_API UINT mozce_GetOutlineTextMetrics ( HDC  inDC,
UINT  inData,
void outOTM 
)

Definition at line 389 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetOutlineTextMetrics called.\n");
#endif

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    return 0;
}

Here is the call graph for this function:

Definition at line 108 of file process.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_getpid called\n");
#endif

    int retval = 0;

    retval = (int)GetCurrentProcessId();

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API FARPROC mozce_GetProcAddressA ( HMODULE  hMod,
const char *  name 
)

Definition at line 1333 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetProcAddressA called (%s)\n", name);
#endif

    LPTSTR wName = a2w_malloc(name, -1, NULL);

    FARPROC p = GetProcAddressW(hMod, wName);

#ifdef DEBUG
    if (!p)
        mozce_printf("NOT FOUND!!!!!!\n");
#endif
    free(wName);

    return p;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetProcessAffinityMask ( HANDLE  hProcess,
PDWORD_PTR  lpProcessAffinityMask,
PDWORD_PTR  lpSystemAffinityMask 
)

Definition at line 1206 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetProcessAffinityMask called\n");
#endif
    return FALSE;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_GetPropA ( HWND  hWnd,
const char *  lpString 
)

Definition at line 1604 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetPropA called\n");
#endif
    
    HANDLE h = NULL;

    if (IS_INTRESOURCE(lpString))
        return GetProp(hWnd, (const unsigned short *)lpString);

    LPTSTR wString = a2w_malloc(lpString, -1, NULL);
    if (wString) {
        h = GetProp(hWnd, wString);
        free(wString);
    }
    return h;
}

Here is the call graph for this function:

MOZCE_SHUNT_API struct protoent* mozce_getprotobyname ( const char *  inName) [read]

Definition at line 130 of file io.cpp.

{
    struct protoent* retval = NULL;

    if(NULL != inName)
    {
        unsigned uLoop;

        for(uLoop = 0; uLoop < MAX_PROTOS; uLoop++)
        {
            if(0 == _stricmp(inName, sProtos[uLoop].p_name))
            {
                retval = &sProtos[uLoop];
                break;
            }
        }
    }

    return retval;
}
MOZCE_SHUNT_API struct protoent* mozce_getprotobynumber ( int  inNumber) [read]

Definition at line 156 of file io.cpp.

{
    struct protoent* retval = NULL;
    unsigned uLoop;
    
    for(uLoop = 0; uLoop < MAX_PROTOS; uLoop++)
    {
        if(inNumber == sProtos[uLoop].p_proto)
        {
            retval = &sProtos[uLoop];
            break;
        }
    }

    return retval;

}
MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA ( LPOPENFILENAMEA  lpofna)

Definition at line 1445 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetSaveFileNameA called\n");
#endif

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    return FALSE;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_GetScrollPos ( HWND  inWnd,
int  inBar 
)

Definition at line 706 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetScrollPos called\n");
#endif

    int retval = 0;
    SCROLLINFO info;

    if(GetScrollInfo(inWnd, inBar, &info))
    {
        return info.nPos;
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetScrollRange ( HWND  inWnd,
int  inBar,
LPINT  outMinPos,
LPINT  outMaxPos 
)

Definition at line 726 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetScrollRange called\n");
#endif

    BOOL retval = FALSE;
    SCROLLINFO info;

    if((retval = GetScrollInfo(inWnd, inBar, &info)))
    {
        if(NULL != outMinPos)
        {
            *outMinPos = info.nMin;
        }
        if(NULL != outMaxPos)
        {
            *outMaxPos = info.nMax;
        }
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API DWORD mozce_GetShortPathName ( LPCTSTR  inLongPath,
LPTSTR  outShortPath,
DWORD  inBufferSize 
)

Definition at line 886 of file win32.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
   mozce_printf("mozce_GetShortPathNameW called\n");
#endif
    
    DWORD retval = wcslen(inLongPath);
    wcsncpy(outShortPath, inLongPath, inBufferSize);
    return ((retval > inBufferSize) ? inBufferSize : retval);
}

Here is the call graph for this function:

Definition at line 329 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetSystemDirectoryA called\n");
#endif

    UINT retval = 0;

    if(inSize < 9)
    {
        retval = 9;
    }
    else
    {
        strcpy(inBuffer, "\\WINDOWS");
        retval = 8;
    }
    return retval;
}

Here is the call graph for this function:

Definition at line 78 of file win32W.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetSystemDirectoryW called\n");
#endif

    UINT retval = 0;

    if(inSize < 9)
    {
        retval = 9;
    }
    else
    {
        wcscpy(inBuffer, L"\\WINDOWS");
        retval = 8;
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API void mozce_GetSystemTimeAsFileTime ( LPFILETIME  lpSystemTimeAsFileTime)

Definition at line 929 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetSystemTimeAsFileTime called\n");
#endif

    SYSTEMTIME st;
    GetSystemTime(&st);
    SystemTimeToFileTime(&st,lpSystemTimeAsFileTime);
}

Here is the call graph for this function:

Definition at line 351 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetTextCharset called\n");
#endif

    UINT retval = DEFAULT_CHARSET;

    TEXTMETRIC tm;
    if(GetTextMetrics(inDC, &tm))
    {
        retval = tm.tmCharSet;
    }

    return retval;
}

Here is the call graph for this function:

Here is the caller graph for this function:

MOZCE_SHUNT_API UINT mozce_GetTextCharsetInfo ( HDC  inDC,
LPFONTSIGNATURE  outSig,
DWORD  inFlags 
)

Definition at line 371 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetTextCharsetInfo called\n");
#endif

    // Zero out the FONTSIGNATURE as we do not know how to fill it out properly.
    if(NULL != outSig)
    {
        memset(outSig, 0, sizeof(FONTSIGNATURE));
    }

    return mozce_GetTextCharset(inDC);
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA ( HDC  inDC,
const char *  inStr,
int  inLen,
int  inMaxExtent,
LPINT  outFit,
LPINT  outDx,
LPSIZE  inSize 
)

Definition at line 620 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
  mozce_printf("mozce_GetTextExtentExPointA called (%d)\n", inLen);
#endif

    BOOL retval = FALSE;

    // BUG:  if inString has any embedded nulls, this function will not produce the desired effect!
       LPTSTR wStr = a2w_malloc(inStr, inLen, NULL);
       
    if(NULL != wStr)
    {
        retval = GetTextExtentExPointW(inDC, wStr, inLen, inMaxExtent, outFit, outDx, inSize);
        free(wStr);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_GetTextFaceA ( HDC  hdc,
int  nCount,
const char *  lpFaceName 
)

Definition at line 1910 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetTextFaceA called\n");
#endif
    
    if (!lpFaceName)
        return GetTextFaceW(hdc, 0, NULL);

    TCHAR* wBuffer = (TCHAR*) malloc(sizeof(TCHAR) * (nCount+1));

    if (!wBuffer)
        return GDI_ERROR;

    int res = GetTextFaceW(hdc, nCount, wBuffer);
    if(res != GDI_ERROR && res != 0 && lpFaceName) 
    {
        int result = w2a_buffer(wBuffer, -1, (char*)lpFaceName, nCount);
        if (result == 0)
            res = result;

#ifdef DEBUG
        mozce_printf("textface: %s\n", lpFaceName);
#endif
    }
    
    free(wBuffer);
    return res;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA ( HDC  hdc,
TEXTMETRICA *  lptm 
)

Definition at line 1942 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetTextMetricsA called\n");
#endif

    if (!lptma)
        return 0;

    TEXTMETRICW tmw;
    BOOL res;
    
    res = GetTextMetricsW(hdc, &tmw);
    
    if (res==0)
        return res;
    
    lptma->tmHeight = tmw.tmHeight;
    lptma->tmAscent = tmw.tmAscent;
    lptma->tmDescent = tmw.tmDescent;
    lptma->tmInternalLeading = tmw.tmInternalLeading;
    lptma->tmExternalLeading = tmw.tmExternalLeading;
    lptma->tmAveCharWidth = tmw.tmAveCharWidth;
    lptma->tmMaxCharWidth = tmw.tmMaxCharWidth;
    lptma->tmWeight = tmw.tmWeight;
    lptma->tmOverhang = tmw.tmOverhang;
    lptma->tmDigitizedAspectX = tmw.tmDigitizedAspectX;
    lptma->tmDigitizedAspectY = tmw.tmDigitizedAspectY;
    lptma->tmItalic = tmw.tmItalic;
    lptma->tmUnderlined = tmw.tmUnderlined;
    lptma->tmStruckOut = tmw.tmStruckOut;
    lptma->tmPitchAndFamily = tmw.tmPitchAndFamily;
    lptma->tmCharSet = tmw.tmCharSet;

    w2a_buffer(&tmw.tmFirstChar, 1, &lptma->tmFirstChar, 1);
    w2a_buffer(&tmw.tmDefaultChar, 1, &lptma->tmDefaultChar, 1);
    w2a_buffer(&tmw.tmBreakChar, 1, &lptma->tmBreakChar, 1);

    return res;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetUserName ( LPTSTR  inBuffer,
LPDWORD  inoutSize 
)

Definition at line 856 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_GetUserName called\n");
#endif

    BOOL retval = FALSE;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    *inoutSize = 0;

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_GetVersionExA ( LPOSVERSIONINFOA  lpv)

Definition at line 1130 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetVersionExA called\n");
#endif

    OSVERSIONINFOW vw;
    vw.dwOSVersionInfoSize = sizeof(vw);

    GetVersionExW(&vw);

    memcpy(lpv, &vw, 5 * sizeof(DWORD));

    w2a_buffer(vw.szCSDVersion, -1, lpv->szCSDVersion, sizeof(lpv->szCSDVersion));    
    return TRUE;
}

Here is the call graph for this function:

Definition at line 1075 of file win32.cpp.

{
   MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetWindowPlacement called\n");
#endif

   memset(lpwndpl, 0, sizeof(WINDOWPLACEMENT));
   
   // This is wrong when the window is minimized.
   lpwndpl->showCmd = SW_SHOWNORMAL;
   GetWindowRect(hWnd, &lpwndpl->rcNormalPosition);
   
   return TRUE;
}

Here is the call graph for this function:

Definition at line 305 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetWindowsDirectoryA called\n");
#endif

    UINT retval = 0;

    if(inSize < 9)
    {
        retval = 9;
    }
    else
    {
        strcpy(inBuffer, "\\WINDOWS");
        retval = 8;
    }

    return retval;
}

Here is the call graph for this function:

Definition at line 54 of file win32W.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GetWindowsDirectoryW called\n");
#endif

    UINT retval = 0;

    if(inSize < 9)
    {
        retval = 9;
    }
    else
    {
        wcscpy(inBuffer, L"\\WINDOWS");
        retval = 8;
    }

    return retval;
}

Here is the call graph for this function:

Definition at line 1101 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_GlobalAddAtomA called (%s)\n", lpString);
#endif

    LPTSTR watom = a2w_malloc(lpString, -1, NULL);
    if (!watom)
        return NULL;

    ATOM a = GlobalAddAtomW(watom);

    free(watom);
    return a; 
}

Here is the call graph for this function:

MOZCE_SHUNT_API struct tm* mozce_gmtime ( const time_t *  inTimeT) [read]

Definition at line 181 of file time.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("tm* mozce_gmtime called\n");
#endif

    return mozce_gmtime_r(inTimeT, &tmStorage);
}

Here is the call graph for this function:

MOZCE_SHUNT_API struct tm* mozce_gmtime_r ( const time_t *  inTimeT,
struct tm outRetval 
) [read]

Definition at line 130 of file time.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("tm* mozce_gmtime_r called\n");
#endif

    struct tm* retval = NULL;

    if(NULL != inTimeT)
    {
        SYSTEMTIME winGMTime;
        
        time_t_2_SYSTEMTIME(winGMTime, *inTimeT);
        
        outRetval->tm_sec = (int)winGMTime.wSecond;
        outRetval->tm_min = (int)winGMTime.wMinute;
        outRetval->tm_hour = (int)winGMTime.wHour;
        outRetval->tm_mday = (int)winGMTime.wDay;
        outRetval->tm_mon = (int)(winGMTime.wMonth - 1);
        outRetval->tm_year = (int)(winGMTime.wYear - 1900);
        outRetval->tm_wday = (int)winGMTime.wDayOfWeek;
        outRetval->tm_isdst = -1;

        outRetval->tm_yday = (int)winGMTime.wDay + sDaysOfYear[outRetval->tm_mon];
        if(0 == (winGMTime.wYear & 3))
        {
            if(2 < winGMTime.wMonth)
            {
                if(0 == winGMTime.wYear % 100)
                {
                    if(0 == winGMTime.wYear % 400)
                    {
                        outRetval->tm_yday++;
                    }
                }
                else
                {
                    outRetval->tm_yday++;
                }
            }
        }

        retval = outRetval;
    }

    return retval;
}

Here is the call graph for this function:

Here is the caller graph for this function:

MOZCE_SHUNT_API BOOL mozce_InvertRgn ( HDC  inDC,
HRGN  inRGN 
)

Definition at line 690 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_InvertRgn called\n");
#endif

    BOOL retval = FALSE;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

Definition at line 93 of file io.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_isatty called\n");
#endif
    
    int retval = 0;
    
    return retval;
}

Here is the call graph for this function:

Definition at line 276 of file clipboard.cpp.

{
  if (gClipboardWND)
  {
    BOOL b = OpenClipboard(gClipboardWND);
    if (!b)
      return E_FAIL;
    
    IEnumFORMATETC* enumerator = NULL;
    gDataObject->EnumFormatEtc(DATADIR_GET, &enumerator);
    if (!enumerator)
      return S_OK;
    
    FORMATETC etc;
    
    while (S_OK == enumerator->Next(1, &etc, NULL))
    {
      if ( etc.cfFormat == format)
      {
        enumerator->Release();
        CloseClipboard();
        return true;
      }
    }
    enumerator->Release();
    CloseClipboard();
  }
  
  return IsClipboardFormatAvailable(format);
}

Definition at line 618 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_IsIconic called\n");
#endif

    BOOL retval = FALSE;
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_LineDDA ( int  inXStart,
int  inYStart,
int  inXEnd,
int  inYEnd,
mozce_LINEDDAPROC  inLineFunc,
LPARAM  inData 
)
VOID CALLBACK mozce_LineDDAProc ( int  X,
int  Y,
LPARAM  lpData 
)
MOZCE_SHUNT_API HBITMAP mozce_LoadBitmapA ( HINSTANCE  hInstance,
LPCSTR  lpCursorName 
)

Definition at line 1354 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_LoadBitmapA called\n");
#endif

    unsigned short *bitmapNameW;
    HBITMAP hc;
    
    if(lpCursorName > (LPCSTR) 0xFFFF)
    {
        int len = strlen(lpCursorName);
        
        bitmapNameW = (unsigned short*)_alloca((len + 1) * 2);
        MultiByteToWideChar(CP_ACP, 0, lpCursorName, -1, bitmapNameW, len + 1);
    }
    else
    {
        bitmapNameW = (LPWSTR) (LPSTR) lpCursorName;
    }
    
    hc = LoadBitmapW(hInstance, bitmapNameW);
    
    return hc;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HCURSOR mozce_LoadCursorA ( HINSTANCE  hInstance,
LPCSTR  lpCursorName 
)

Definition at line 1382 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_LoadCursorA called\n");
#endif

       return NULL;

    unsigned short *lpCursorNameW;
    HCURSOR hc;
    
    if(lpCursorName > (LPCSTR) 0xFFFF)
    {
        int len = strlen(lpCursorName);
        
        lpCursorNameW = (unsigned short*)_alloca((len + 1) * 2);
        MultiByteToWideChar(CP_ACP, 0, lpCursorName, -1, lpCursorNameW, len + 1);
    }
    else
    {
        lpCursorNameW = (LPWSTR) (LPSTR) lpCursorName;
    }
    
    hc = LoadCursorW(hInstance, lpCursorNameW);
    
    return hc;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HICON mozce_LoadIconA ( HINSTANCE  hInstance,
LPCSTR  lpIconName 
)

Definition at line 1476 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_LoadIconA called\n");
#endif

    HICON hi = NULL;

    if (! IS_INTRESOURCE(lpIconName))
    {

        TCHAR wideStr[MAX_PATH];
        if(a2w_buffer(lpIconName, -1, wideStr, MAX_PATH))
        {
            hi = LoadIconW(hInstance, wideStr);
        }
    }
    else
        hi = LoadIconW(hInstance, (const unsigned short*) lpIconName);

    return hi;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_LoadImageA ( HINSTANCE  inInst,
LPCSTR  inName,
UINT  inType,
int  inCX,
int  inCY,
UINT  inLoad 
)

Definition at line 925 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_LoadImageA called\n");
#endif

    HANDLE retval = NULL;

    LPTSTR wName = a2w_malloc(inName, -1, NULL);
    if(NULL != wName)
    {
        retval = LoadImage(inInst, wName, inType, inCX, inCY, inLoad);
        free(wName);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA ( LPCSTR  lpLibFileName)

Definition at line 1277 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_LoadLibraryA called (%s)\n", lpLibFileName);
#endif

    HINSTANCE retval = NULL;

    LPTSTR wPath = a2w_malloc(lpLibFileName, -1, NULL);

    if(wPath) {
        retval = LoadLibraryW(wPath);
    }
    
#ifdef DEBUG
    if (!retval) {
        DWORD error = GetLastError();
        mozce_printf("LoadLibraryA failure (14==OOM)! %d\n", error);
        
        if (error == 14)
            MessageBoxW(NULL, L"Failed to Load Library. Out Of Memory.", wPath, 0);
    }
#endif

       if (wPath)
              free(wPath);
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HMENU mozce_LoadMenuA ( HINSTANCE  hInstance,
LPCSTR  lpMenuName 
)

Definition at line 1575 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_LoadMenuA called\n");
#endif
    
    HMENU hr;
    if (! IS_INTRESOURCE(lpMenuName))
    {
        LPTSTR wName = a2w_malloc(lpMenuName, -1, NULL);
        hr = LoadMenuW(hInstance, wName);
        free(wName);
    }
    else
    {
        hr = LoadMenuW(hInstance, (const unsigned short*)lpMenuName);
    }
    
    return NULL;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_LoadStringA ( HINSTANCE  inInstance,
UINT  inID,
LPSTR  outBuffer,
int  inBufferMax 
)

Definition at line 837 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_LoadStringA called\n");
#endif

    int retval = 0;

    if(NULL != outBuffer && 0 < inBufferMax)
    {
        LPTSTR wBuffer = (LPTSTR)malloc(sizeof(TCHAR) * inBufferMax);
        if(NULL != wBuffer)
        {
            retval = LoadString(inInstance, inID, wBuffer, inBufferMax);
            if(0 < retval)
            {
                retval = w2a_buffer(wBuffer, retval + 1, outBuffer, inBufferMax);
            }
            free(wBuffer);
        }
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API struct lconv* mozce_localeconv ( void  ) [read]

Definition at line 1176 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_localeconv called\n");
#endif
    return &s_locale_conv;
}

Here is the call graph for this function:

MOZCE_SHUNT_API struct tm* mozce_localtime ( const time_t *  inTimeT) [read]

Definition at line 118 of file time.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("tm* mozce_localtime called\n");
#endif

    return mozce_localtime_r(inTimeT, &tmStorage);
}

Here is the call graph for this function:

MOZCE_SHUNT_API struct tm* mozce_localtime_r ( const time_t *  inTimeT,
struct tm outRetval 
) [read]

Definition at line 67 of file time.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("tm* mozce_localtime_r called\n");
#endif

    struct tm* retval = NULL;

    if(NULL != inTimeT && NULL != outRetval)
    {
        SYSTEMTIME winLocalTime;
        
        time_t_2_LOCALSYSTEMTIME(winLocalTime, *inTimeT);
        
        outRetval->tm_sec = (int)winLocalTime.wSecond;
        outRetval->tm_min = (int)winLocalTime.wMinute;
        outRetval->tm_hour = (int)winLocalTime.wHour;
        outRetval->tm_mday = (int)winLocalTime.wDay;
        outRetval->tm_mon = (int)(winLocalTime.wMonth - 1);
        outRetval->tm_year = (int)(winLocalTime.wYear - 1900);
        outRetval->tm_wday = (int)winLocalTime.wDayOfWeek;
        outRetval->tm_isdst = -1;

        outRetval->tm_yday = (int)winLocalTime.wDay + sDaysOfYear[outRetval->tm_mon];
        if(0 == (winLocalTime.wYear & 3))
        {
            if(2 < winLocalTime.wMonth)
            {
                if(0 == winLocalTime.wYear % 100)
                {
                    if(0 == winLocalTime.wYear % 400)
                    {
                        outRetval->tm_yday++;
                    }
                }
                else
                {
                    outRetval->tm_yday++;
                }
            }
        }

        retval = outRetval;
    }

    return retval;
}

Here is the call graph for this function:

Here is the caller graph for this function:

MOZCE_SHUNT_API BOOL mozce_LockFile ( HANDLE  hFile,
DWORD  dwFileOffsetLow,
DWORD  dwFileOffsetHigh,
DWORD  nNumberOfBytesToLockLow,
DWORD  nNumberOfBytesToLockHigh 
)

Definition at line 1341 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_LockFile called\n");
#endif

    int retval = 0;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_LPtoDP ( HDC  inDC,
LPPOINT  inoutPoints,
int  inCount 
)

Definition at line 503 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_LPtoDP called\n");
#endif

    BOOL retval = TRUE;

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_lseek ( int  fildes,
int  offset,
int  whence 
)

Definition at line 353 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("mozce_lseek called\n");
#endif
    
    
    if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1)
        return -1;
    
    int newpos = -1;
    int error = fseek(_fdtab[fd].file, offset, whence);
    
    if (!error)
        newpos = ftell(_fdtab[fd].file);
    return newpos;
}

Here is the call graph for this function:

MOZCE_SHUNT_API void mozce_makepath ( char *  outPath,
const char *  inDrive,
const char *  inDir,
const char *  inFname,
const char *  inExt 
)

Definition at line 197 of file stdlib.cpp.

{
    MOZCE_PRECHECK
        
#ifdef LOG_CALLS
#ifdef DEBUG
        mozce_printf("mozce_makepath called\n");
#endif
#endif
    if(NULL != outPath)
    {
        int dirLen = 0;
        if(NULL != inDir)
        {
            dirLen = strlen(inDir);
            if(dirLen)
            {
                dirLen--;
            }
        }
        _snprintf(outPath, _MAX_PATH, "%s%s%s%s%s",
                  (NULL != inDir) ? inDir : "",
                  (NULL != inDir && '\\' != inDir[dirLen] && '/' != inDir[dirLen]) ? "\\" : "",
                  (NULL != inFname) ? inFname : "",
                  (NULL != inExt && '.' != inExt[0]) ? "." : "",
                  (NULL != inExt) ? inExt : ""
                  );
    }
}

Here is the call graph for this function:

MOZCE_SHUNT_API unsigned char* mozce_mbschr ( const unsigned char *  inString,
unsigned int  inC 
)

Definition at line 103 of file mbstring.cpp.

{
    MOZCE_PRECHECK

#ifdef LOG_CALLS
#ifdef DEBUG
    mozce_printf("mozce_mbschr called\n");
#endif
#endif
    return (unsigned char*)strchr((const char*)inString, (int)inC);
}

Here is the call graph for this function:

MOZCE_SHUNT_API unsigned char* mozce_mbsdec ( const unsigned char *  string1,
const unsigned char *  string2 
)

Definition at line 128 of file mbstring.cpp.

{
    MOZCE_PRECHECK

#ifdef LOG_CALLS
#ifdef DEBUG
    mozce_printf("mozce_mbsdec called\n");
#endif
#endif
    
    if (string1 == string2)
        return 0;
    
    return (unsigned char *)string2 - 1;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_mbsicmp ( const unsigned char *  string1,
const unsigned char *  string2 
)

Definition at line 116 of file mbstring.cpp.

{
    MOZCE_PRECHECK

#ifdef LOG_CALLS
#ifdef DEBUG
    mozce_printf("mozce_mbsicmp called\n");
#endif
#endif
    return _stricmp((const char*)string1, (const char*)string2);
}

Here is the call graph for this function:

MOZCE_SHUNT_API unsigned char* mozce_mbsinc ( const unsigned char *  inCurrent)

Definition at line 56 of file mbstring.cpp.

{
    MOZCE_PRECHECK

#ifdef LOG_CALLS
#ifdef DEBUG
    mozce_printf("mozce_mbsinc called\n");
#endif
#endif
    //IsDBCSLeadByte(path[len-1])
    return (unsigned char*)(inCurrent + 1);
}

Here is the call graph for this function:

MOZCE_SHUNT_API unsigned char* mozce_mbspbrk ( const unsigned char *  inString,
const unsigned char *  inStrCharSet 
)

Definition at line 70 of file mbstring.cpp.

{
    MOZCE_PRECHECK

#ifdef LOG_CALLS
#ifdef DEBUG
    mozce_printf("mozce_mbspbrk called\n");
#endif
#endif

    LPWSTR wstring = a2w_malloc((const char *)inString, -1, NULL);
    LPWSTR wset    = a2w_malloc((const char *)inStrCharSet, -1, NULL);
    LPWSTR result  = wcspbrk(wstring, wset);
    free(wstring);
    free(wset);
    return (unsigned char *)result;
}

Here is the call graph for this function:

MOZCE_SHUNT_API unsigned char* mozce_mbsrchr ( const unsigned char *  inString,
unsigned int  inC 
)

Definition at line 89 of file mbstring.cpp.

{
    MOZCE_PRECHECK

#ifdef LOG_CALLS
#ifdef DEBUG
    mozce_printf("mozce_mbsrchr called\n");
#endif
#endif

    return (unsigned char*) strrchr((char*)inString, inC);
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_MessageBoxA ( HWND  inWnd,
LPCSTR  inText,
LPCSTR  inCaption,
UINT  uType 
)

Definition at line 469 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_MessageBoxA called\n");
#endif

    int retval = 0;
    LPTSTR wCaption = a2w_malloc(inCaption, -1, NULL);

    if(NULL != wCaption)
    {
        LPTSTR wText = a2w_malloc(inText, -1, NULL);

        if(NULL != wText)
        {
            retval = MessageBox(inWnd, wText, wCaption, uType);
            free(wText);
        }
        free(wCaption);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_MessageBoxA ( HWND  hwnd,
const char *  txt,
const char *  caption,
UINT  flags 
)
MOZCE_SHUNT_API int mozce_mkdir ( const char *  inDirname)

Definition at line 50 of file direct.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_mkdir called\n");
#endif
    
    int retval = -1;
    
    if(NULL != inDirname)
    {
        unsigned short wDirname[MAX_PATH];
        
        if(0 != a2w_buffer(inDirname, -1, wDirname, sizeof(wDirname) / sizeof(unsigned short)))
        {
            if(FALSE != CreateDirectoryW(wDirname, NULL))
            {
                retval = 0;
            }
        }
    }
    
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API time_t mozce_mktime ( struct tm inTM)

Definition at line 193 of file time.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_mktime called\n");
#endif

    time_t retval = (time_t)-1;

    if(NULL != inTM)
    {
        SYSTEMTIME winTime;
        struct tm* gmTime = NULL;

        memset(&winTime, 0, sizeof(winTime));

        /*
         * Ignore tm_wday and tm_yday.
         * We likely have some problems with dst.
         */
        winTime.wSecond = inTM->tm_sec;
        winTime.wMinute = inTM->tm_min;
        winTime.wHour = inTM->tm_hour;
        winTime.wDay = inTM->tm_mday;
        winTime.wMonth = inTM->tm_mon + 1;
        winTime.wYear = inTM->tm_year + 1900;

        /*
         * First get our time_t.
         */
        SYSTEMTIME_2_time_t(retval, winTime);

        /*
         * Now overwrite the struct passed in with what we believe it should be.
         */
        gmTime = mozce_gmtime_r(&retval, inTM);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_MoveFileA ( LPCSTR  lpExistingFileName,
LPCSTR  lpNewFileName 
)

Definition at line 131 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_MoveFileA called (%s)\n", lpExistingFileName);
#endif

    BOOL retval = FALSE;
    TCHAR wideStr[2][MAX_PATH];

    if(a2w_buffer(lpExistingFileName, -1, wideStr[0], MAX_PATH) &&
       a2w_buffer(lpNewFileName, -1, wideStr[1], MAX_PATH))
    {
        retval = MoveFileW(wideStr[0], wideStr[1]);
    }
    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_MulDiv ( int  inNumber,
int  inNumerator,
int  inDenominator 
)

Definition at line 68 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_MulDiv called\n");
#endif
    
    if (inDenominator == 0)
        return 0;

    return (int)(((INT64)inNumber * (INT64)inNumerator) / (INT64)inDenominator);
}

Here is the call graph for this function:

Definition at line 266 of file clipboard.cpp.

Here is the call graph for this function:

MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard ( IDataObject **  outDataObj)

Definition at line 245 of file clipboard.cpp.

{
  MOZCE_PRECHECK
    oleSetup();
  
  if (pDataObj)
    *pDataObj = gDataObject;
  
  if (!*pDataObj)
  {
    *pDataObj = new ClipDataObj();
    if (!*pDataObj)
      return E_FAIL;

    gDataObject = *pDataObj;
  }
  
  (*pDataObj)->AddRef();
  return S_OK;
}

Here is the call graph for this function:

Definition at line 795 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_OleInitialize called\n");
#endif

    return S_OK;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData ( IDataObject *  inSrcDataObject)

Definition at line 815 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_OleQueryLinkFromData called\n");
#endif

    HRESULT retval = E_NOTIMPL;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard ( IDataObject *  inDataObj)

Definition at line 197 of file clipboard.cpp.

{
  MOZCE_PRECHECK
    
       oleSetup();
  
  if (gDataObject)
    gDataObject->Release();
  
  gDataObject = pDataObj;
  
  if (pDataObj) 
  {
    BOOL b = OpenClipboard(gClipboardWND);
    
    if (!b)
      return E_FAIL;
    
    EmptyClipboard();
    
    pDataObj->AddRef();
    
    IEnumFORMATETC* enumerator = NULL;
    pDataObj->EnumFormatEtc(DATADIR_GET, &enumerator);
    if (!enumerator)
      return S_OK;
    
    FORMATETC etc;
    
    while (S_OK == enumerator->Next(1, &etc, NULL))
    {
      if ( etc.tymed == TYMED_HGLOBAL )
      {

              STGMEDIUM medium;
              pDataObj->GetData(&etc, &medium);
        SetClipboardData( etc.cfFormat, medium.hGlobal);
      }
    }
    
    enumerator->Release();
    
    CloseClipboard();
    
  }
  return S_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 806 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_OleUninitialize called\n");
#endif
}

Here is the call graph for this function:

MOZCE_SHUNT_API int mozce_open ( const char *  pathname,
int  flags,
int  mode 
)

Definition at line 244 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("mozce_open called\n");
#endif
    
    _initfds();
    
    
    char modestr[10];
    *modestr = '\0';
    
    mode2binstr(mode, modestr);
    if (*modestr == '\0')
        return -1;
    
    
    FILE* file = fopen(pathname, modestr);
    
    int fd = -1;
    
    if (file)
    {
        fd = _getnewfd();
        
        _fdtab[fd].fd = fd;
        _fdtab[fd].file = file;
        
        fflush(file);
        fread(NULL, 0, 0, file);
    }
    
    return fd;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_OpenFileMapping ( DWORD  dwDesiredAccess,
BOOL  bInheritHandle,
LPCTSTR  lpName 
)

Definition at line 1217 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_OpenFileMapping called\n");
#endif
    return 0;
}

Here is the call graph for this function:

Definition at line 631 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_OpenIcon called\n");
#endif
    return SetActiveWindow(inWnd) ? 1:0;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreA ( DWORD  inDesiredAccess,
BOOL  inInheritHandle,
LPCSTR  inName 
)

Definition at line 496 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_OpenSemaphoreA called\n");
#endif

    HANDLE retval = NULL;
    LPTSTR wName = a2w_malloc(inName, -1, NULL);

    if(NULL != wName)
    {
        extern HANDLE mozce_OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName);
        retval = mozce_OpenSemaphoreW(inDesiredAccess, inDesiredAccess, wName);
        free(wName);
    }

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW ( DWORD  inDesiredAccess,
BOOL  inInheritHandle,
LPCWSTR  inName 
)

Definition at line 102 of file win32W.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_OpenSemaphoreW called\n");
#endif

    HANDLE retval = NULL;
    HANDLE semaphore = NULL;

    semaphore = CreateSemaphoreW(NULL, 0, 0x7fffffff, inName);
    if(NULL != semaphore)
    {
        DWORD lastErr = GetLastError();
        
        if(ERROR_ALREADY_EXISTS != lastErr)
        {
            CloseHandle(semaphore);
        }
        else
        {
            retval = semaphore;
        }
    }

    return retval;
}

Here is the call graph for this function:

Here is the caller graph for this function:

MOZCE_SHUNT_API VOID mozce_OutputDebugStringA ( LPCSTR  inOutputString)

Definition at line 865 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_OutputDebugStringA called\n");
#endif

    LPTSTR wideStr = NULL;

    wideStr = a2w_malloc(inOutputString, -1, NULL);
    if(NULL != wideStr)
    {
        OutputDebugString(wideStr);
        free(wideStr);
    }
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_PeekMessage ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax,
UINT  wRemoveMsg 
)

Definition at line 1003 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef LOUD_PEEKMESSAGE
#ifdef DEBUG
    mozce_printf("mozce_PeekMessageA called\n");
#endif
#endif

    BOOL b = PeekMessageW(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
    
    if (b && wRemoveMsg == PM_REMOVE)
        gGetMessageTime = lpMsg->time; 
    
    return b;
}

Here is the call graph for this function:

MOZCE_SHUNT_API void mozce_perror ( const char *  inString)

Definition at line 137 of file stdio.cpp.

{
    MOZCE_PRECHECK
        
#ifdef DEBUG
        mozce_printf("mozce_perror called\n");
#endif
    
    fprintf(stderr, "%s", inString);
}

Here is the call graph for this function:

MOZCE_SHUNT_API BOOL mozce_Pie ( HDC  inDC,
int  inLeftRect,
int  inTopRect,
int  inRightRect,
int  inBottomRect,
int  inXRadial1,
int  inYRadial1,
int  inXRadial2,
int  inYRadial2 
)

Definition at line 320 of file win32.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("-- mozce_Pie called\n");
#endif

    BOOL retval = FALSE;

    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);

    return retval;
}

Here is the call graph for this function:

MOZCE_SHUNT_API LRESULT mozce_PostMessageA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 1119 of file win32A.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_PostMessageA called (%d %d %d)\n", msg, wParam, lParam);
#endif

    return PostMessageW(hWnd, msg, wParam, lParam);
}

Here is the call graph for this function: