sipxportlib  Version 3.3
Classes | Macros | Typedefs | Functions | Variables
WinCEFixups.h File Reference
#include <windows.h>
#include <string.h>
#include <stdio.h>
#include <winbase.h>
#include <assert.h>
#include <time.h>
Include dependency graph for WinCEFixups.h:

Go to the source code of this file.

Classes

struct  _timeb
 
struct  _finddata_t
 
struct  _xFILETIME
 
struct  stat
 
struct  tagWAVEINCAPS_W
 

Macros

#define ASSERT_PRINT(exp, file, line)   OutputDebugStringB(TEXT("\r\n*** ASSERTION FAILED in ") TEXT(file) TEXT("(") TEXT(#line) TEXT("):\r\n") TEXT(#exp) TEXT("\r\n"))
 
#define ASSERT_AT(exp, file, line)   (void)( (exp) || (ASSERT_PRINT(exp,file,line), DebugBreak(), 0 ) )
 
#define assert(exp)   ASSERT_AT(exp,__FILE__,__LINE__)
 
#define sprintf_s   _snprintf
 
#define stricmp(x, y)   _stricmp( (x), (y) )
 
#define strcasecmp   _stricmp
 
#define strncasecmp   _strnicmp
 
#define RegQueryValueEx(x, y, z, a, b, c)   RegQueryValueExB(x,y,z,a,b,c)
 
#define FormatMessage(x, y, z, a, b, c, d)   FormatMessageB(x,y,z,a,b,c,d)
 
#define CreateMutex(x, y, z)   CreateMutexB( x,y,z)
 
#define CreateSemaphore(x, y, z, a)   CreateSemaphoreB( x,y,z,a)
 
#define CreateProcess(x, y, z, a, b, c, d, e, f, g)   CreateProcessB(x,y,z,a,b,c,d,e,f,g)
 
#define CreateFile(x, y, z, a, b, c, d)   CreateFileB(x,y,z,a,b,c,d)
 
#define OutputDebugString(x)   OutputDebugStringB(x)
 
#define SEM_FAILCRITICALERRORS   0
 
#define chdir(x)   _chdir(x)
 
#define strdup(x)   _strdup(x)
 
#define itoa(x, y, z)   _itoa(x, y, z)
 
#define memicmp(x, y, z)   _memicmp(x, y, z)
 
#define putenv(x)   _putenv(x)
 
#define EACCES   13
 
#define EMFILE   24
 
#define ENOENT   2
 
#define GetProcAddressW(x, y)   GetProcAddressA(x, y)
 
#define BUFSIZ   2048
 
#define EINVAL   22
 
#define EINTR   4
 
#define ETIMEDOUT   100
 
#define ECONNRESET   101
 
#define EMSGSIZE   102
 
#define ECONNREFUSED   103
 
#define _A_NORMAL   0x00
 
#define _A_RDONLY   0x01
 
#define _A_HIDDEN   0x02
 
#define _A_SYSTEM   0x04
 
#define _A_SUBDIR   0x10
 
#define _A_ARCH   0x20
 
#define O_RDONLY   0x0000
 
#define O_WRONLY   0x0001
 
#define O_RDWR   0x0002
 
#define O_APPEND   0x0008
 
#define O_CREAT   0x0100
 
#define O_TRUNC   0x0200
 
#define O_EXCL   0x0400
 
#define O_TEXT   0x4000 /* file mode is text (translated) */
 
#define O_BINARY   0x8000 /* file mode is binary (untranslated) */
 
#define _S_IFMT   0x0001
 
#define _S_IFDIR   0x0002
 
#define _S_IFCHR   0x0004
 
#define _S_IFREG   0x0008
 
#define _S_IREAD   0x0010
 
#define _S_IWRITE   0x0020
 
#define _S_IEXEC   0x0040
 
#define S_IFMT   0x0001
 
#define S_IFDIR   0x0002
 
#define S_IFCHR   0x0004
 
#define S_IFREG   0x0008
 
#define S_IREAD   0x0010
 
#define S_IWRITE   0x0020
 
#define S_IEXEC   0x0040
 
#define STARTF_USESTDHANDLES   0x00000100
 
#define STD_INPUT_HANDLE   -10
 
#define STD_OUTPUT_HANDLE   -11
 
#define STD_ERROR_HANDLE   -12
 
#define CreateEventA   CE_CreateEventA
 
#define RegOpenKeyExA   CE_RegOpenKeyExA
 

Typedefs

typedef long intptr_t
 
typedef struct _xFILETIMExLPFILETIME
 
typedef struct tagWAVEINCAPS_W WAVEINCAPS_W
 

Functions

long RegQueryValueExB (HKEY hKey, const char *lpName, DWORD *lpReserved, DWORD *lpType, unsigned char *lpData, DWORD *lpcbData)
 
HANDLE CreateMutexB (LPSECURITY_ATTRIBUTES lpMutexAttr, BOOL bInitialOwner, char *pNme)
 
DWORD FormatMessageB (DWORD dwFlags, void *lpVoid, DWORD dwMessageID, DWORD dwLangID, char *pBuffer, DWORD dwSize, va_list *Args)
 
HANDLE CreateSemaphoreB (LPSECURITY_ATTRIBUTES lpSemaphoreAttr, LONG lInitialCount, LONG lMaxCount, char *pName)
 
HANDLE CreateFileB (const char *pFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecAttr, DWORD dwCreationDisp, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
 
BOOL CreateProcessB (char *pName, char *pCmdLine, LPSECURITY_ATTRIBUTES lpsaProcess, LPSECURITY_ATTRIBUTES lpsaThread, BOOL fInheritHandles, DWORD dwCreate, LPVOID lpvEnv, char *pCurDir, LPSTARTUPINFO lpStartUpInfo, LPPROCESS_INFORMATION lpProcInfo)
 
HINSTANCE LoadLibraryA (LPCSTR pIn)
 
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR pIn)
 
int rmdir (const char *dirname)
 
char * getcwd (char *buffer, int maxlen)
 
unsigned int GetSystemDirectory (char *cP, unsigned int uSize)
 
void _ftime (struct _timeb *)
 
void GetSystemTimeAsFileTime (LPFILETIME pFT)
 
void OutputDebugStringB (const char *pC)
 
void WINAPI perror (char *pC)
 
int SetErrorMode (int iUnused)
 
char *WINAPI strerror (int iErrNo)
 
int _chdir (const char *p1)
 
int _mkdir (const char *p1)
 
int rename (const char *p1, const char *p2)
 
int remove (const char *p1)
 
int _open (const char *filename, int oflag)
 
int _close (int fd)
 
void * _findclose (long hFile)
 
intptr_t _findnext (long hFile, struct _finddata_t *pFD)
 
intptr_t _findfirst (const char *pName, struct _finddata_t *pFD)
 
HANDLE GetStdHandle (int nStdHandle)
 
int _putenv (const char *pIn)
 
int write (int fd, const void *buffer, unsigned int count)
 
int open (const char *filename, int oflag)
 
int open (const char *filename, int oflag, int pmode)
 
int close (int fd)
 
long lseek (int fd, long offset, int origin)
 
int fstat (int fd, struct stat *buffer)
 
int read (int fd, void *buffer, unsigned int count)
 
int _getpid ()
 
BOOL PostThreadMessageA (DWORD idThread, UINT Msg, WPARAM wParam, LPARAM lParam)
 
int GetMessageA (LPMSG lpMsg, HWND hWnd, unsigned int wMsgFilterMin, unsigned int wMsgFilterMax)
 
HANDLE CE_CreateEventA (LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, LPTSTR lpName)
 
long CE_RegOpenKeyExA (HKEY hKey, LPCSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
 
WINMMAPI MMRESULT WINAPI timeSetEvent (UINT uDelay, UINT uResolution, LPTIMECALLBACK fptc, DWORD dwUser, UINT fuEvent)
 
size_t strftime (char *const s, const size_t maxsize, const char *const format, const struct tm *const t)
 
time_t mktime (struct tm *t)
 
struct tm *__cdecl gmtime (const time_t *timer)
 
struct tm *__cdecl localtime (const time_t *timer)
 
time_t __cdecl time (time_t *ptt)
 

Variables

char * _tzname [2]
 
int errno
 

Macro Definition Documentation

#define ASSERT_PRINT (   exp,
  file,
  line 
)    OutputDebugStringB(TEXT("\r\n*** ASSERTION FAILED in ") TEXT(file) TEXT("(") TEXT(#line) TEXT("):\r\n") TEXT(#exp) TEXT("\r\n"))
#define ASSERT_AT (   exp,
  file,
  line 
)    (void)( (exp) || (ASSERT_PRINT(exp,file,line), DebugBreak(), 0 ) )
#define assert (   exp)    ASSERT_AT(exp,__FILE__,__LINE__)
#define sprintf_s   _snprintf
#define stricmp (   x,
 
)    _stricmp( (x), (y) )
#define strcasecmp   _stricmp
#define strncasecmp   _strnicmp
#define RegQueryValueEx (   x,
  y,
  z,
  a,
  b,
 
)    RegQueryValueExB(x,y,z,a,b,c)
#define FormatMessage (   x,
  y,
  z,
  a,
  b,
  c,
 
)    FormatMessageB(x,y,z,a,b,c,d)
#define CreateMutex (   x,
  y,
 
)    CreateMutexB( x,y,z)
#define CreateSemaphore (   x,
  y,
  z,
 
)    CreateSemaphoreB( x,y,z,a)
#define CreateProcess (   x,
  y,
  z,
  a,
  b,
  c,
  d,
  e,
  f,
 
)    CreateProcessB(x,y,z,a,b,c,d,e,f,g)
#define CreateFile (   x,
  y,
  z,
  a,
  b,
  c,
 
)    CreateFileB(x,y,z,a,b,c,d)
#define OutputDebugString (   x)    OutputDebugStringB(x)
#define SEM_FAILCRITICALERRORS   0
#define chdir (   x)    _chdir(x)
#define strdup (   x)    _strdup(x)
#define itoa (   x,
  y,
 
)    _itoa(x, y, z)
#define memicmp (   x,
  y,
 
)    _memicmp(x, y, z)
#define putenv (   x)    _putenv(x)
#define EACCES   13
#define EMFILE   24
#define ENOENT   2
#define GetProcAddressW (   x,
 
)    GetProcAddressA(x, y)
#define BUFSIZ   2048
#define EINVAL   22
#define EINTR   4
#define ETIMEDOUT   100
#define ECONNRESET   101
#define EMSGSIZE   102
#define ECONNREFUSED   103
#define _A_NORMAL   0x00
#define _A_RDONLY   0x01
#define _A_HIDDEN   0x02
#define _A_SYSTEM   0x04
#define _A_SUBDIR   0x10
#define _A_ARCH   0x20
#define O_RDONLY   0x0000
#define O_WRONLY   0x0001
#define O_RDWR   0x0002
#define O_APPEND   0x0008
#define O_CREAT   0x0100
#define O_TRUNC   0x0200
#define O_EXCL   0x0400
#define O_TEXT   0x4000 /* file mode is text (translated) */
#define O_BINARY   0x8000 /* file mode is binary (untranslated) */
#define _S_IFMT   0x0001
#define _S_IFDIR   0x0002
#define _S_IFCHR   0x0004
#define _S_IFREG   0x0008
#define _S_IREAD   0x0010
#define _S_IWRITE   0x0020
#define _S_IEXEC   0x0040
#define S_IFMT   0x0001
#define S_IFDIR   0x0002
#define S_IFCHR   0x0004
#define S_IFREG   0x0008
#define S_IREAD   0x0010
#define S_IWRITE   0x0020
#define S_IEXEC   0x0040
#define STARTF_USESTDHANDLES   0x00000100
#define STD_INPUT_HANDLE   -10
#define STD_OUTPUT_HANDLE   -11
#define STD_ERROR_HANDLE   -12
#define CreateEventA   CE_CreateEventA
#define RegOpenKeyExA   CE_RegOpenKeyExA

Typedef Documentation

typedef long intptr_t
typedef struct _xFILETIME * xLPFILETIME
typedef struct tagWAVEINCAPS_W WAVEINCAPS_W

Function Documentation

long RegQueryValueExB ( HKEY  hKey,
const char *  lpName,
DWORD *  lpReserved,
DWORD *  lpType,
unsigned char *  lpData,
DWORD *  lpcbData 
)
HANDLE CreateMutexB ( LPSECURITY_ATTRIBUTES  lpMutexAttr,
BOOL  bInitialOwner,
char *  pNme 
)
DWORD FormatMessageB ( DWORD  dwFlags,
void *  lpVoid,
DWORD  dwMessageID,
DWORD  dwLangID,
char *  pBuffer,
DWORD  dwSize,
va_list *  Args 
)
HANDLE CreateSemaphoreB ( LPSECURITY_ATTRIBUTES  lpSemaphoreAttr,
LONG  lInitialCount,
LONG  lMaxCount,
char *  pName 
)
HANDLE CreateFileB ( const char *  pFileName,
DWORD  dwDesiredAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecAttr,
DWORD  dwCreationDisp,
DWORD  dwFlagsAndAttributes,
HANDLE  hTemplateFile 
)
BOOL CreateProcessB ( char *  pName,
char *  pCmdLine,
LPSECURITY_ATTRIBUTES  lpsaProcess,
LPSECURITY_ATTRIBUTES  lpsaThread,
BOOL  fInheritHandles,
DWORD  dwCreate,
LPVOID  lpvEnv,
char *  pCurDir,
LPSTARTUPINFO  lpStartUpInfo,
LPPROCESS_INFORMATION  lpProcInfo 
)
HINSTANCE LoadLibraryA ( LPCSTR  pIn)
WINBASEAPI HMODULE WINAPI GetModuleHandleA ( LPCSTR  pIn)
int rmdir ( const char *  dirname)
char* getcwd ( char *  buffer,
int  maxlen 
)
unsigned int GetSystemDirectory ( char *  cP,
unsigned int  uSize 
)
void _ftime ( struct _timeb )
void GetSystemTimeAsFileTime ( LPFILETIME  pFT)
void OutputDebugStringB ( const char *  pC)
void WINAPI perror ( char *  pC)
int SetErrorMode ( int  iUnused)
char* WINAPI strerror ( int  iErrNo)
int _chdir ( const char *  p1)
int _mkdir ( const char *  p1)
int rename ( const char *  p1,
const char *  p2 
)
int remove ( const char *  p1)
int _open ( const char *  filename,
int  oflag 
)
int _close ( int  fd)
void* _findclose ( long  hFile)
intptr_t _findnext ( long  hFile,
struct _finddata_t pFD 
)
intptr_t _findfirst ( const char *  pName,
struct _finddata_t pFD 
)
HANDLE GetStdHandle ( int  nStdHandle)
int _putenv ( const char *  pIn)
int write ( int  fd,
const void *  buffer,
unsigned int  count 
)
int open ( const char *  filename,
int  oflag 
)
int open ( const char *  filename,
int  oflag,
int  pmode 
)
int close ( int  fd)
long lseek ( int  fd,
long  offset,
int  origin 
)
int fstat ( int  fd,
struct stat buffer 
)
int read ( int  fd,
void *  buffer,
unsigned int  count 
)
int _getpid ( )
BOOL PostThreadMessageA ( DWORD  idThread,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
int GetMessageA ( LPMSG  lpMsg,
HWND  hWnd,
unsigned int  wMsgFilterMin,
unsigned int  wMsgFilterMax 
)
HANDLE CE_CreateEventA ( LPSECURITY_ATTRIBUTES  lpEventAttributes,
BOOL  bManualReset,
BOOL  bInitialState,
LPTSTR  lpName 
)
long CE_RegOpenKeyExA ( HKEY  hKey,
LPCSTR  lpSubKey,
DWORD  ulOptions,
REGSAM  samDesired,
PHKEY  phkResult 
)
WINMMAPI MMRESULT WINAPI timeSetEvent ( UINT  uDelay,
UINT  uResolution,
LPTIMECALLBACK  fptc,
DWORD  dwUser,
UINT  fuEvent 
)
size_t strftime ( char *const  s,
const size_t  maxsize,
const char *const  format,
const struct tm *const  t 
)
time_t mktime ( struct tm *  t)
struct tm* __cdecl gmtime ( const time_t *  timer)
struct tm* __cdecl localtime ( const time_t *  timer)
time_t __cdecl time ( time_t *  ptt)

Variable Documentation

char* _tzname[2]
int errno