IsNativeVhdBoot function kernel32

Win32Result<bool> IsNativeVhdBoot(
  1. Pointer<Int32> nativeVhdBoot
)

Indicates if the OS was booted from a VHD container.

To learn more, see learn.microsoft.com/windows/win32/api/winbase/nf-winbase-isnativevhdboot.

Implementation

Win32Result<bool> IsNativeVhdBoot(Pointer<Int32> nativeVhdBoot) {
  resolveGetLastError();
  final result_ = _IsNativeVhdBoot(nativeVhdBoot);
  return .new(value: result_ != FALSE, error: GetLastError());
}