ReactOS 0.4.16-dev-178-g8ba6102
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 354 of file pxe.c.

355{
356 static BOOLEAN Initialized = FALSE;
357 static BOOLEAN Success = FALSE;
358
359 // Do initialization only once
360 if (Initialized)
361 return Success;
363
364 // Check if PXE is available
366 {
367 FsRegisterDevice("net(0)", &PxeDiskVtbl);
368 Success = TRUE;
369 }
370
371 return Success;
372}
unsigned char BOOLEAN
VOID FsRegisterDevice(_In_ PCSTR DeviceName, _In_ const DEVVTBL *FuncTable)
Definition: fs.c:596
#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:327
static BOOLEAN GetCachedInfo(VOID)
Definition: pxe.c:335
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:72

Referenced by PcInitializeBootDevices().

◆ PxeMount()

const DEVVTBL * PxeMount ( ULONG  DeviceId)

Definition at line 290 of file pxe.c.

291{
292 if (GetPxeStructure() == NULL)
293 return NULL;
294 return &PxeVtbl;
295}
#define NULL
Definition: types.h:112
static const DEVVTBL PxeVtbl
Definition: pxe.c:282