Справочник Пользователя для Mitsubishi Electronics SW2D5C-GTD2-E

Скачать
Страница из 234
7.3   Internal Device Interface Function
7.3.4   GDev_CloseUnMapping (Unmapping and closing the internal device shared memory)
7 - 9
1
OV
ER
VI
EW
2
SYS
TEM 
CONFIGURA
T
ION
3
SPEC
IFI
CA
TIO
NS
4
SC
R
EE
N
 
CONF
IGURA
TION
5
O
PERA
T
ING
 
METHO
D
6
FUNC
TIONS
7
IN
TERN
AL DE
VI
CE 
INTERF
ACE
 
FU
NCTI
O
N
8
TR
OU
BL
ES
HO
O
TI
N
G
A
PPENDICES
  
7.3.4
GDev_CloseUnMapping (Unmapping and closing the internal device 
shared memory)
The following shows details of the GDev_CloseUnMapping function.
(1) Function
Unmaps and closes the shared memory of the GOT internal device.
(2) Format
(a) For Visual C++
GDev_CloseUnMapping(hMapFile, ulMapPointer)
(b) For Visual Basic
GDev_CloseUnMapping(hMapFile, ulMapPointer)
(3) Explanation
The unmap processing is performed for the shared memory address specified by ulMapPointer and 
the shared memory handle specified by hMapFile is released.
Specify the shared memory address and shared memory handle that have been obtained by the 
GDev_OpenMapping function.
(4) Return value
None
(5) Precautions for using the GDev_CloseUnMapping function
After the GDev_OpenMapping function is called and required processings are performed, the 
GDev_CloseUnMapping function must always be called.
If it is not called, a memory leak may result and an error such as application error may occur.
Variable name
Variable type
Description
I/O
hMapFile
HANDLE
Shared memory handle
Input
ulMapPointer
unsigned long
Shared memory address
Input
Variable name
Variable type
Description
I/O
hMapFile
HANDLE
Shared memory handle
Input
ulMapPointer
unsigned long
Shared memory address
Input