ReactOS 0.4.16-dev-136-g52192f1
pxe.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const DEVVTBLPxeMount (ULONG DeviceId)
 
BOOLEAN PxeInit (VOID)
 

Function Documentation

◆ PxeInit()

BOOLEAN PxeInit ( VOID  )

Definition at line 346 of file pxe.c.

347{
348 static BOOLEAN Initialized = FALSE;
349 static BOOLEAN Success = FALSE;
350
351 // Do initialization only once
352 if (Initialized)
353 return Success;
355
356 // Check if PXE is available
358 {
359 FsRegisterDevice("net(0)", &PxeDiskVtbl);
360 Success = TRUE;
361 }
362
363 return Success;
364}
unsigned char BOOLEAN
VOID FsRegisterDevice(_In_ PCSTR DeviceName, _In_ const DEVVTBL *FuncTable)
Definition: fs.c:442
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
@ Success
Definition: eventcreate.c:712
@ Initialized
Definition: ketypes.h:388
static const DEVVTBL PxeDiskVtbl
Definition: pxe.c:319
static BOOLEAN GetCachedInfo(VOID)
Definition: pxe.c:327
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:72

Referenced by PcInitializeBootDevices().

◆ PxeMount()

const DEVVTBL * PxeMount ( ULONG  DeviceId)

Definition at line 282 of file pxe.c.

283{
284 if (GetPxeStructure() == NULL)
285 return NULL;
286 return &PxeVtbl;
287}
#define NULL
Definition: types.h:112
static const DEVVTBL PxeVtbl
Definition: pxe.c:274