Compartilhar via


OEMCertifyModuleInit (Windows Embedded CE 6.0)

1/5/2010

This function enables the OS loader to notify the OEM that a new module is being loaded. This notification allows the OEM to decide if the module should be verified for safety using the OEMCertifyModule function.

Syntax

BOOL OEMCertifyModuleInit( 
  LPTSTR lpModuleName 
);

Parameters

  • lpModuleName
    [out] Pointer to a buffer allocated by the OS that contains the module name, not including the path.

    If lpModuleName is NULL, no module name is available for the new module being loaded.

    The module name is the name passed into either the CreateProcess or LoadLibrary function. For example, calling LoadLibrary(MYDLL) causes MYDLL to be passed to the OEM. Likewise, calling CreateProcess(\Windows\Myexe.exe**)** causes \Windows\Myexe.exe to be passed to the OEM.

    For more information about other methods of passing the module name to the LoadLibrary or CreateProcess function, see LoadLibrary and CreateProcess.

Return Value

TRUE indicates that the module should be loaded, and then validated using the OEMCertifyModule function.

FALSE indicates that the module should not be loaded.

Remarks

To implement this function, assign the address of this function to the pOEMLoadInit global variable in the OEMInit function of the OAL.

Only modules that are not in ROM are passed to the OEM. All ROM modules are assumed to be trusted by the OEM.

Requirements

Header Developer Implemented
Library Nk.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

Optional OAL Functions
OEMCertifyModule
OEMInit

Other Resources

CreateProcess