I think we need to clarify this point, the following are just my ideas, that, though proved by countless (failed) attempts to do otherwise, may also be completely wrong

:
Here everyone seem (ktp and Nuno) to miss this fundamental point:
a. NT based systems need a (miniport) driver to access the boot device.
b. this (miniport) driver needs to be invoked in the early stage of booting by the OSLOADER.EXE contained into NTLDR/SETUPLDR.BIN (cannot say - I really have NO idea - how Vista BOOTMGR works)
c. the OSLOADER.EXE can load this driver from either info gathered from BIOS (and opportune BOOT.INI or WINNT.SIF + Registry settings), this is the case of Dietmar's way to boot XP from USB on motherboards which BIOS support USB booting and (partially) euhenio's RAMDISK way, or from internal somewhat "hardcoded" structures, and this is the "other half" of euhenio's way and the "normal" RAMDISK PE boot.
If the above is true, there is NO sense in just making grub4dos (or another bootloader) be able to mount and access .wim images, we would be in the same EXACT situation in which we are now with grub4dos, Isoemu or Avlgomgr with .iso or RAW .img, the bootloader can access and boot allright these kind of images, AS LONG as they comtain a DOS based system (that uses "blindly" BIOS info to access the mounted image) or a Linux based one (for which the needed driver is "by default" loaded/started or whatever - knowing very little on how Linux actually works, my guess is that this is due to the Unix-like concept of "everything is a file").
The only ways to work around these problems are, as I see it:
1) "Nuno's" idea of rewriting from scratch not an actual bootloader (like grub4dos), but rather an "OSloader" (NTLDR and SETUPLDR.BIN are at the same time bootloaders AND OSloaders)
2) Find a way to somehow make existing NTLDR/SETUPLDR.BIN "hook" another driver instead of those "suggested" by BIOS, in either of two ways:
2.a by writing an extended BIOS stack to add to grub4dos (as an example) AND writing a (miniport) driver capable of accessing RAW image files.
2.b by writing a (miniport) driver, calling it RAMDISK.SY_/RAMDISK.SYS and make use of the already existing loading capabilities of NTLDR/SETUPLDR.BIN
3) "felix's" idea to "abandon" RAW images in favour of .wim images and use BOOTMGR, though (having no experience with Vista) I am afraid that something similar to steps 2.a or 2.b above will be nonetheless needed

jaclaz
P.S.: @Nuno: Read these as a start:
http://www.microsoft.com/technet/technetma...ult.aspx?loc=enhttp://board.iexbeta.com/index.php?showtopic=51516http://www.iexbeta.com/wiki/index.php/WIMhttp://technet.microsoft.com/it-it/windows...a/aa940981.aspx