ReactOS 0.4.16-dev-1946-g52006dd
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 376 of file pxe.c.

377{
378 static BOOLEAN Initialized = FALSE;
379 static BOOLEAN Success = FALSE;
380
381 // Do initialization only once
382 if (Initialized)
383 return Success;
385
386 // Check if PXE is available
388 {
389 FsRegisterDevice("net(0)", &PxeDiskVtbl);
390 Success = TRUE;
391 }
392
393 return Success;
394}
unsigned char BOOLEAN
VOID FsRegisterDevice(_In_ PCSTR DeviceName, _In_ const DEVVTBL *FuncTable)
Definition: fs.c:673
#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:349
static BOOLEAN GetCachedInfo(VOID)
Definition: pxe.c:357
static PPXE GetPxeStructure(VOID)
Definition: pxe.c:72

Referenced by PcInitializeBootDevices().

◆ PxeMount()

const DEVVTBL * PxeMount ( ULONG  DeviceId)

Definition at line 312 of file pxe.c.

313{
314 if (GetPxeStructure() == NULL)
315 return NULL;
316 return &PxeVtbl;
317}
#define NULL
Definition: types.h:112
static const DEVVTBL PxeVtbl
Definition: pxe.c:304