Synesis Software

unixem/internal/util.h File Reference


Detailed Description

Internal utility header for the UNIXem API.

#include <unixem/unixem.h>

Go to the source code of this file.

Defines

#define NUM_ELEMENTS(x)   (sizeof(x) / sizeof(0[x]))
#define UNIXEM_STGCLS_IMP

Functions

void * unixem_Windows_HANDLE_from_file_handle (int fd)
 Converts a standard file handle to a Windows HANDLE.
int errno_from_Win32 (unsigned long)
 Converts a Windows error code to an errno.
char get_current_drive (void)
 Gets the drive letter of the current working directory.
long FILETIMEToUNIXTime (void const *ft, long *microseconds)
 Converts a Windows FILETIME value to a UNIX time value.


Function Documentation

int errno_from_Win32 ( unsigned  long  ) 

Converts a Windows error code to an errno.

long FILETIMEToUNIXTime ( void const *  ft,
long *  microseconds 
)

Converts a Windows FILETIME value to a UNIX time value.

char get_current_drive ( void   ) 

Gets the drive letter of the current working directory.

Return values:
Either an uppercase letter, or '' on failure;

void* unixem_Windows_HANDLE_from_file_handle ( int  fd  ) 

Converts a standard file handle to a Windows HANDLE.


UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2002-2007