Functions Reference
53
GxSWGetErrorString
Purpose
Returns the error string associated with the specified error number.
Syntax
GxSWGetErrorString
(
nError
,
pszMsg
,
nErrorMaxLen
,
pnStatus
)
Parameters
Name
Type
Comments
nError
SHORT
Error number as returned by the
pnStatus
of any GXSW function. See table
below for possible error numbers values. The error number should be a negative
number, otherwise the function returns the “No error has occurred” string.
pszMsg
LPSTR
Buffer containing the returned error string (null terminated string).
nErrorMaxLen
SHORT
Size of the buffer
pszMsg.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.
Comments
The function returns the error string associated with the
nError
as returned from other driver functions.
This function returns error value or 0 on success.
The following table displays the possible error values; not all errors apply to this board type:
Resource Errors
-1
Board does not exist in this slot
-2
Unable to open the HW device/Service
-3
Different board exist in the specified PCI slot
-4
PCI slot not configured properly. You may configure it by using the
PCIExplorer
from the Control Panel
-5
Unable to register the PCI device
-6
Unable to allocate system resource or memory for the PCI device
-7
Too many boards
-8
Unable to create panel
-9
Unable to create a Windows timer
Parameter Errors
-20
Invalid parameter
-21
Invalid PCI slot number
-22
Invalid board handle
-23
Invalid channel number
-24
Invalid bus number
-25
Invalid mode
Summary of Contents for GX6384-1
Page 2: ......
Page 7: ...GX6384 User s Guide v Index 55 ...
Page 8: ...vi GX6384 User s Guide ...
Page 36: ...28 GX6384 User s Guide ...