First you have to declare some variables and then you call the function using those variables. Something like this :
HRESULT result;
BOOL enabled;
result = WDStatus( & enabled );
Now you can access the results of the function with your conditional statements. Note that you don't use the function itself in the
if
statement. You need to use the
result
that is returned by the function.