
HyTechWorks©2013 – V3.1 59
Low Level API
Windows programs can use HyCNC-4P to generate motion and other control
signals via API functions. API consists of HyCNC_4P.LIB and its header file
HyCNC_4P.H. The latest API can be downloaded from
http://www.hytechworks.com/Downloads/HyCnc/HyCNC_4P/index_c.html
The API has following functions.
Device Identification and Opening
BOOL HyCNC_GetDevicePathByGUID(LPGUID DeviceGuid, char *DevicePath, DWORD
DeviceIndex)
HyCncLib_GetDevicePathByGUID identifys the path of a HyCNC-4P interface by its
driver GUID.
DeviceGuid – pointer to the device GUID.
DevicePath – pointer to store the device path string found according to the GUID
and device index.
DeviceIndex – index to the number of the device in system list, starting with 0.
If the function succeeds, the return value is true. Otherwise, it returns false.
HANDLE HyCNC_OpenDeviceByPath(char *DevicePath)
HyCncLib_OpenDeviceByPath opens HyCNC-4P interface by its path obtained
from calling HyCncLib_GetDevicePathByGUID.
DevicePath – pointer to the device path string.
If the function returns the device handle. If it fails, the handle is
INVALID_HANDLE_VALUE.
Comentarios a estos manuales