summaryrefslogtreecommitdiff
path: root/storage/connect/maputil.h
blob: 8ab41487a639384be3a12eb6db7bc1725ccaccfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __MAPUTIL_H__
#define __MAPUTIL_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
  void *memory;
  DWORD lenL;
  DWORD lenH;
  } MEMMAP;

HANDLE  CreateFileMap(PGLOBAL, LPCSTR, MEMMAP *, MODE, bool);
bool    CloseMemMap(void *memory, size_t dwSize);
my_bool CloseFileHandle(HANDLE h);

#ifdef __cplusplus
}
#endif

#endif /* __MAPUTIL_H__ */