Geek,
Looking at the prototype for that function, I'm not sure what Test_Status is supposed to be. It looks like the intent of the function is to simply return type STATUS.
Assuming that is the case and that Test_Status is either erroneous or non-essential (perhaps typedef'ed as __cdecl or something), the prototype should work as
enum STATUS Get_Position(int x, int y);
Note that the keyword "enum" is required when using an enumerated variable to signify to a C compiler that the variable type is an enum. If you would like to modify this so that you do not have to type "enum STATUS" for each instance, you can change the enum declaration to be typedef'ed.
typedef enum STATUS { Pass=1, Fail = 0 } VAR;
In this way, the prototype could read:
VAR Get_Position(int x, int y);
Thanks,
Andy McRorie
NI R&D