ReactOS  0.4.14-dev-583-g2a1ba2c
udf_lib_common.h
Go to the documentation of this file.
1 // Copyright (C) Alexander Telyatnikov, Ivan Keliukh, Yegor Anchishkin, SKIF Software, 1999-2013. Kiev, Ukraine
3 // All rights reserved
4 // This file was released under the GPLv2 on June 2015.
6 
7 #ifndef __UDF_LIB_COMMON__H__
8 #define __UDF_LIB_COMMON__H__
9 
10 #ifndef WITHOUT_FORMATTER
11 #include "udferr_usr.h"
12 #endif
13 
14 typedef LONG UDF_STATUS;
15 
16 #define UDF_SUCCESS(x) ( (UDF_STATUS)(x)>=0 )
17 
21  ULONG nLength,
22  LONGLONG liOffset,
23  PULONG lpNumberOfBytesRead
24 );
25 
29  ULONG nLength,
30  LONGLONG liOffset,
31  PULONG lpNumberOfBytesRead
32 );
33 
37  LPVOID lpInBuffer,
38  DWORD nInBufferSize,
39  LPVOID lpOutBuffer,
40  DWORD nOutBufferSize,
42 );
43 
44 // For formatter
45 
48 );
49 
52  __int64* size,
54 );
55 
58 );
59 
60 #endif //__UDF_LIB_COMMON__H__
_In_ DWORD nLength
Definition: wincon.h:461
static DWORD block_size(DWORD block)
Definition: jsutils.c:66
long LONG
Definition: pedump.c:60
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:173
int64_t LONGLONG
Definition: typedefs.h:66
UDF_STATUS(* PFLUSH_FUNCTION)(PVOID lpParameter)
GLsizeiptr size
Definition: glext.h:5919
UDF_STATUS(* PREAD_FUNCTION)(PVOID lpParameter, PVOID lpBuffer, ULONG nLength, LONGLONG liOffset, PULONG lpNumberOfBytesRead)
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG UDF_STATUS
LPVOID lpParameter
Definition: kernel32.h:241
UDF_STATUS(* PWRITE_FUNCTION)(PVOID lpParameter, PVOID lpBuffer, ULONG nLength, LONGLONG liOffset, PULONG lpNumberOfBytesRead)
UDF_STATUS(* PIOCTL_FUNCTION)(PVOID lpParameter, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned)
unsigned int * PULONG
Definition: retypes.h:1
_In_ DWORD _In_ DWORD _In_ DWORD _Out_ LPDWORD lpBytesReturned
Definition: winddi.h:1704
uint32_t * LPDWORD
Definition: typedefs.h:57
unsigned int ULONG
Definition: retypes.h:1
UDF_STATUS(* PGETSIZE_FUNCTION)(PVOID lpParameter, __int64 *size, ULONG *block_size)
UDF_STATUS(* PREOPEN_FUNCTION)(PVOID *lpParameter)
#define __int64
Definition: basetyps.h:16
_In_ DWORD dwIoControlCode
Definition: winddi.h:1700