Chapter 3 Functions
3.3.1
VmsCreateFile
Interface
Prototype
Description
Return value
Note
If the argument is correct but the return value is zero, Windows access control may be
working. In that case, run the application with administrator privileges to get the file handle.
3.3.2
VmsCloseHandle
Interface
Prototype
Description
Return value
40
6F8C1859
VmsCrateFile – Get a handle to access each memory
HANDLE VmsCreateFile(DWORD how, void *p);
As the first argument, specify 0 indicating the data type DWORD
specified by the second argument.
For the second argument, pass a DWORD type pointer whose value is
the slot number to be accessed.
Slot 1 : PLC
Slot 3 : Windows
Normal return is a file handle.
Abnormal return is zero.
VmsCloseHandle – Release a handle
BOOL VmsCloseHandle(HANDLE hDevice);
Release the handle taken with VmsCreateFile.
Normal return is TRUE
Abnormal return is FALSE