Partager via


IOCTL_KLIB_MAKESNAP (Compact 2013)

10/16/2014

This I/O control message saves a snapshot of memory to persistent storage. Send this message with KernelLibIoControl.

Syntax

BOOL KernelLibIoControl(
    HANDLE hDevice,           // handle to the DLL
    DWORD dwIoControlCode,    // use IOCTL_KLIB_MAKESNAP
    LPVOID lpInBuffer,        // pointer to input buffer
    DWORD nInBufferSize,      // input buffer size
    LPVOID lpOutBuffer,       // pointer to output buffer
    DWORD nOutBufferSize,     // output buffer size
    LPDWORD lpBytesReturned   // number of bytes returned
);

Parameters

  • hDevice
    [in] Handle to the DLL. Must be set to KMOD_CORE.
  • dwIoControlCode
    [in] Control code for the operation. Use IOCTL_KLIB_MAKESNAP for this operation.
  • lpInBuffer
    [in] Set to NULL.
  • nInBufferSize
    [in] Set to 0 (zero).
  • lpOutBuffer
    [out] Set to NULL.
  • nOutBufferSize
    [out] Set to 0 (zero).
  • lpBytesReturned
    [out] Set to NULL.

Return Value

Returns TRUE if the kernel can take the snapshot; otherwise, returns FALSE.

Remarks

This I/O control is only used if an OEM supports snapshot boot.

Requirements

Header

pkfuncs.h

See Also

Reference

Other OAL IOCTLs