Share via


LoadKernelLibrary

This function is called to load a DLL into the kernel's address space.

HANDLE LoadKernelLibrary(
  LPCWSTR lpszFileName
);

Parameters

  • lpszFileName
    [in] The name of the DLL to load.

Return Values

If the operation succeeds then a valid handle is returned, otherwise NULL is returned.

Remarks

The LoadKernelLibrary function loads a DLL that can only be unloaded by restarting the device. This function is only used to load a DLL for event tracking and to load the kernel debugger DLLs. In addition, the library loaded by LoadKernelLibrary cannot have any dependent DLLs. Every function must be statically linked.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

Trusted APIs | Event Tracking Implementation

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.