uLib  User mode C/C++ extended API library for Win32 programmers.

Module Description

Binary charcode types.

Macros

#define MK_TWOCC(S2)   (*(PTWOCC)(S2))
 
#define MK_FOURCC(S4)   (*(PFOURCC)(S4))
 
#define MK_EIGHTCC(S8)   (*(PEIGHTCC)(S8))
 

Typedefs

typedef WORDPTWOCC
 
typedef WORD TWOCC
 
typedef DWORDPFOURCC
 
typedef DWORD FOURCC
 
typedef QWORDPEIGHTCC
 
typedef QWORD EIGHTCC
 

Macro Definition Documentation

◆ MK_TWOCC

#define MK_TWOCC (   S2)    (*(PTWOCC)(S2))

MK_TWOCC is used to define a TWOCC two-char code.

Parameters
S2Two char string. E.g. MK_TWOCC("MZ"), MK_TWOCC("PE").
Note: It's crucial that S2 is precisely two characters!

The return value is little endian.

Definition at line 457 of file Common.h.

◆ MK_FOURCC

#define MK_FOURCC (   S4)    (*(PFOURCC)(S4))

MK_FOURCC is used to define a FOURCC four-char code.

Parameters
S4Four char string. E.g. MK_FOURCC("MThd"), MK_FOURCC("RIFF").
Note: It's crucial that S4 is precisely four characters!

The return value is little endian.

Definition at line 466 of file Common.h.

◆ MK_EIGHTCC

#define MK_EIGHTCC (   S8)    (*(PEIGHTCC)(S8))

MK_EIGHTCC is used to define an EIGHTCC eight-char code.

Parameters
S8Eight char string. E.g. MK_EIGHTCC("SysIdent").
Note: It's crucial that S8 is precisely eight characters!

The return value is little endian.

Definition at line 475 of file Common.h.

Typedef Documentation

◆ PTWOCC

typedef WORD* PTWOCC

Binary two character code.

Definition at line 452 of file Common.h.

◆ TWOCC

typedef WORD TWOCC

Definition at line 452 of file Common.h.

◆ PFOURCC

typedef DWORD* PFOURCC

Binary four character code.

Definition at line 461 of file Common.h.

◆ FOURCC

typedef DWORD FOURCC

Definition at line 461 of file Common.h.

◆ PEIGHTCC

typedef QWORD* PEIGHTCC

Binary eight character code.

Definition at line 470 of file Common.h.

◆ EIGHTCC

typedef QWORD EIGHTCC

Definition at line 470 of file Common.h.