How interesting! That could ultimately cause some problems on 64-bit systems.
But for your problem, can't you simply use nidaq.h with your dll wrapper, and use the TaskHandle type? Why do you need to know the type of a TaskHandle? Are you trying to call the function with the basic types instead of using TaskHandle?
I would expect this code to compile with either header:
#include "nidaq.h"
...
TaskHandle h;
DAQmxCreateTask("", &h);
The underlying type of h will be different, but the call to DAQmxCreateTask will pass a pointer to whatever a TaskHandle is on either system.
Of course, all this ignores the fact that with DAQmx Base, the call is DAQmxBaseCreateTask().
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com