Syntax
VM_DCL_HANDLE vm_dcl_open(
    VM_DCL_DEVICE device, 
    VM_DCL_FLAGS flags
);
ContentsIndex
PreviousUpNext
vm_dcl_open
Syntax
VM_DCL_HANDLE vm_dcl_open(
    VM_DCL_DEVICE device, 
    VM_DCL_FLAGS flags
);
Description

Opens the device. Every device must be opened with this function before it can be used. The device number passed to this function is defined in the header file of the device driver. The returned handle is the identifier of the device. The device handle is used to access the device by the other functions.

Parameters
Parameters 
Description 
VM_DCL_DEVICE device 
[IN] The device number, a 16-bit integer given by device driver. 
VM_DCL_FLAGS flags 
[IN] A 32-bit unsigned integer. Some device driver may not need this. 
Returns

It returns VM_DCL_HANDLE, if it succeeded. If it failed, it returns the 

VM_DCL_HANDLE_INVALID, which is -1.

File

vmdcl.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.