Share via


BP_Init (Compact 2013)

3/26/2014

This function initializes the Bootpart library.

Syntax

BOOL BP_Init(
  LPBYTE pMemory, 
  DWORD dwSize,
  LPCTSTR lpActiveReg,
  PPCI_REG_INFO pRegIn,
  PPCI_REG_INFO pRegOut
);

Parameters

  • pMemory
    [in] Pointer to memory location for storing objects.
  • dwSize
    [in] Size of the memory. This value should be at least the size of one flash block plus one sector plus sectors divided by blocks multiplied by 8.
  • lpActiveReg
    [in] Pointer to an active registry string. This value is used by the FMD_Init function to obtain device information from the registry. Set to NULL if not needed.
  • pRegIn
    [in] Pointer to a PCI_REG_INFO structure. This value is used by FMD_Init to find flash hardware on PCI hardware. Set to NULL if not needed.
  • pRegOut
    [out] Pointer to a PCI_REG_INFO structure. This value is used by FMD_Init to return flash information. Set to NULL if not needed.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

This function calls FMD_Init to initialize the Flash hardware.

Requirements

Header

bootpart.h

Library

Bootpart.lib

See Also

Reference

Bootpart Functions