25#define TAG_PXE_FILE 'FexP'
26#define NO_FILE ((ULONG)-1)
55 if (
Ptr->StructLength !=
sizeof(
PXE))
60 for (
i = 0;
i <
Ptr->StructLength;
i++)
65 TRACE(
"!PXE structure found at %p\n",
Ptr);
104 ERR(
"PxeCall(0x%x, %p) failed with exit=%d status=0x%x\n",
110 ERR(
"PxeCall(0x%x, %p) succeeded, but returned error status 0x%x\n",
141 TRACE(
"PxeGetFileInformation(%lu) -> FileSize = %lu, FilePointer = 0x%lx\n",
162 for (
i = 0;
i < PathLen;
i++)
178 ERR(
"Failed to get '%s' size\n",
Path);
339 if (
Data.BufferSize < 36)
PRTL_UNICODE_STRING_BUFFER Path
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
#define PXENV_EXIT_SUCCESS
#define PXENV_TFTP_GET_FSIZE
#define PXENV_PACKET_TYPE_CACHED_REPLY
#define PXENV_STATUS_SUCCESS
#define PXENV_GET_CACHED_INFO
#define DBG_DEFAULT_CHANNEL(ch)
VOID FsRegisterDevice(CHAR *Prefix, const DEVVTBL *FuncTable)
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define KeStallExecutionProcessor(MicroSeconds)
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
_In_ ULONG _In_ ULONG Offset
static ULONG _CachedLength
static const DEVVTBL PxeVtbl
const DEVVTBL * PxeMount(ULONG DeviceId)
static ARC_STATUS PxeDiskOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId)
static const DEVVTBL PxeDiskVtbl
static BOOLEAN GetCachedInfo(VOID)
static ARC_STATUS PxeOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId)
static ARC_STATUS PxeDiskRead(ULONG FileId, VOID *Buffer, ULONG N, ULONG *Count)
static ARC_STATUS PxeRead(ULONG FileId, VOID *Buffer, ULONG N, ULONG *Count)
static ARC_STATUS PxeDiskSeek(ULONG FileId, LARGE_INTEGER *Position, SEEKMODE SeekMode)
BOOLEAN CallPxe(UINT16 Service, PVOID Parameter)
static PPXE FindPxeStructure(VOID)
static ARC_STATUS PxeDiskClose(ULONG FileId)
PXENV_EXIT __cdecl PxeCallApi(UINT16 Segment, UINT16 Offset, UINT16 Service, VOID *Parameter)
static ULONG _PacketPosition
static ARC_STATUS PxeGetFileInformation(ULONG FileId, FILEINFORMATION *Information)
static ULONG _FilePosition
static CHAR _OpenFileName[128]
static ARC_STATUS PxeSeek(ULONG FileId, LARGE_INTEGER *Position, SEEKMODE SeekMode)
static ARC_STATUS PxeClose(ULONG FileId)
static UCHAR _Packet[1024]
static ARC_STATUS PxeDiskGetFileInformation(ULONG FileId, FILEINFORMATION *Information)
static PPXE GetPxeStructure(VOID)
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
_In_ WDFREQUEST _In_ NTSTATUS _In_ ULONG_PTR Information
_Inout_opt_ PVOID Parameter