the linker can't find DeviceIOControl().
I checked coredll.dll with dumpbin and it is there.
I can link with ReadFile()/WriteFile() fine.
Am I missing anything else?
void olSetBits(unsigned int BitsToSet)
{
DWORD BytesWritten;
//WriteFile(hMLT, &BitsToSet, 2, &BytesWritten, NULL);
DeviceIOControl(hMLT, IOCTL_MLT_SETBITS, &BitsToSet, 2, NULL, 0,
&BytesWritten, NULL); //only write these bits
}
sources file:
TARGETNAME=xrtc
RELEASETYPE=PLATFORM
TARGETTYPE=DYNLINK
TARGETLIBS= \
$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \
SOURCELIBS= \
DEFFILE=xrtc.def
PREPROCESSDEFFILE=1
DLLENTRY=XRC_DllEntry
SOURCES=xrtc.c \
rtcx.c