Bootloader For Windows 10 ⏰ 💯

msg db 'Not a Windows 10 bootloader', 0 times 510 - ($-$$) db 0 dw 0xaa55

// Get device path of the file Status = gBS->HandleProtocol(LoadedImage->DeviceHandle, &gEfiDevicePathProtocolGuid, (VOID**)&FilePath); if (EFI_ERROR(Status)) return Status; bootloader for windows 10

// Open root directory Status = Volume->OpenVolume(Volume, &Root); if (EFI_ERROR(Status)) return Status; msg db 'Not a Windows 10 bootloader', 0

// Build full device path (file path appended) EFI_DEVICE_PATH_PROTOCOL *FullPath = FileDevicePath(LoadedImage->DeviceHandle, L"\\EFI\\Microsoft\\Boot\\bootmgfw.efi"); if (EFI_ERROR(Status)) return Status

// Open simple file system on the same device (ESP) Status = gBS->HandleProtocol(LoadedImage->DeviceHandle, &gEfiSimpleFileSystemProtocolGuid, (VOID**)&Volume); if (EFI_ERROR(Status)) return Status;

[org 0x7c00] start: mov si, msg call print hlt print: lodsb or al, al jz done mov ah, 0x0e int 0x10 jmp print done: ret