2.1.4. cmmGnDeviceIsLoaded¶
SYNOPSYS¶
VT_I4 cmmGnDeviceIsLoaded (
[out] VT_PI4 IsLoaded
)
DESCRIPTION¶
디바이스 로드의 성공/실패 여부를 알 수 있습니다.
PARAMETER¶
IsLoaded : 현재 디바이스가 로드되어 있는지 여부
Value | Meaning |
|
---|---|
0 또는 cmFALSE |
장치가 정상적으로 로드 되지 않았습니다. |
1 또는 cmTRUE |
장치가 정상적으로 로드 되었습니다. |
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | #include “Cmmsdk.h”
#include “CmmsdkDef.h”
long TestRunLoadStatus(void)
{
long IsLoaded = 0;
if (cmmGnDeviceIsLoaded(&IsLoaded) != cmERR_NONE )
{
printf(“cmmGnDeviceIsLoaded has been failed”);
return FALSE;
}
if ( IsLoaded == cmTRUE)
printf(“Device load has been completed”);
else
printf(“Device load hasn’t been completed”);
return IsLoaded;
}
----------------------------------------------------------------
Visual Basic
Function TestRunLoadStatus(void) As Long
Dim IRetVal As Long
IRetVal = cmmGnDeviceIsLoaded(TestRunLoadStatus)
If IRetVal <> cmERR_NONE Then
MsgBox ("cmmGnDeviceIsLoaded had been failed")
End If
If TestRunLoadStatus = cmTRUE Then
MsgBox ("Device load has been completed")
Else
MsgBox ("Device load hasn't been completed")
End If
End Function
----------------------------------------------------------------
Delphi
function TestRunLoadStatus(): LongInt;
var
IsLoaded : LongInt;
begin
IsLoaded := 0;
if (cmmGnDeviceIsLoaded(@IsLoaded) <> cmERR_NONE ) then
begin
Writeln('cmmGnDeviceIsLoaded has been failed');
Writeln('cmmGnDeviceIsLoaded has been failed');
Result := cmFALSE;
end;
if ( IsLoaded = cmTRUE) then
begin
Writeln('Device load has been completed');
end
else
begin
Writeln('Device load hasn`t been completed');
end;
Result := IsLoaded;
end;
|
See also