CEL_MAPFILE_VIEW_OPEN

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure is logged when MapViewOfFile maps a view of a file into the address space of a process.

Syntax

typedef struct __CEL_MAPFILE_VIEW_OPEN { 
  HANDLE hMap;
  HANDLE  hProcess;
  DWORD  dwDesiredAccess;
  DWORD  dwFileOffset;
  DWORD  dwLen;
  LPVOID  lpBaseAddress;
} CEL_MAPFILE_VIEW_OPEN, *CEL_MAPFILE_VIEW_OPEN;

Members

  • hMap
    Handle of the file-mapping object.
  • hProcess
    Specifies the handle of the process that called MapViewOfFile.
  • dwDesiredAccess
    Specifies the type of access to the file view, and therefore the protection of the pages mapped by the file. The following table shows possible values for this parameter.

    Value Description

    FILE_MAP_WRITE

    Specifies read-write access. The hFileMappingObject parameter must have been created with PAGE_READWRITE protection. A read-write view of the file is mapped.

    FILE_MAP_READ

    Specifies read-only access. The hFileMappingObject parameter must have been created with PAGE_READWRITE or PAGE_READONLY protection. A read-only view of the file is mapped.

    FILE_MAP_ALL_ACCESS

    Same as FILE_MAP_WRITE.

  • dwFileOffset
    Specifies the file offset where mapping is to begin.
  • dwLen
    Length in bytes of range being mapped.
  • lpBaseAddress
    The starting address of the mapped view. This value is returned by MapViewOfFile.

Requirements

Header celog.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

CEL_MAPFILE_VIEW_CLOSE

Other Resources

MapViewOfFile