Lesnik_
September 17th, 2008, 11:26 AM
Hi,
i have a problem with calling IoGetDeviceInterfaces function. If i try to compile my project i get the following error message:
DeviceControler.obj : error LNK2028: unresolved token (0A00001D) "long __stdcall IoGetDeviceInterfaces(struct _GUID const *,struct _DEVICE_OBJECT *,unsigned long,wchar_t * *)" (?IoGetDeviceInterfaces@@$$FYGJPBU_GUID@@PAU_DEVICE_OBJECT@@KPAPA_W@Z) referenced in function "private: void __clrcall DeviceControler::Form1::EnableCDDrivers(bool)" (?EnableCDDrivers@Form1@DeviceControler@@$$FA$AAMX_N@Z)
DeviceControler.obj : error LNK2019: unresolved external symbol "long __stdcall IoGetDeviceInterfaces(struct _GUID const *,struct _DEVICE_OBJECT *,unsigned long,wchar_t * *)" (?IoGetDeviceInterfaces@@$$FYGJPBU_GUID@@PAU_DEVICE_OBJECT@@KPAPA_W@Z) referenced in function "private: void __clrcall DeviceControler::Form1::EnableCDDrivers(bool)" (?EnableCDDrivers@Form1@DeviceControler@@$$FA$AAMX_N@Z)
I suppose i have to add an Liblary additional dependencies but I dont know which one. I have just add this libs:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib
wdm.lib
wdmguid.lib
wdmsec.lib
but i still get same error message.
Anybody knows whats the problem???
Sorry for my poor englisch if you dont understand my description just ask!
Thanks a lot
i have a problem with calling IoGetDeviceInterfaces function. If i try to compile my project i get the following error message:
DeviceControler.obj : error LNK2028: unresolved token (0A00001D) "long __stdcall IoGetDeviceInterfaces(struct _GUID const *,struct _DEVICE_OBJECT *,unsigned long,wchar_t * *)" (?IoGetDeviceInterfaces@@$$FYGJPBU_GUID@@PAU_DEVICE_OBJECT@@KPAPA_W@Z) referenced in function "private: void __clrcall DeviceControler::Form1::EnableCDDrivers(bool)" (?EnableCDDrivers@Form1@DeviceControler@@$$FA$AAMX_N@Z)
DeviceControler.obj : error LNK2019: unresolved external symbol "long __stdcall IoGetDeviceInterfaces(struct _GUID const *,struct _DEVICE_OBJECT *,unsigned long,wchar_t * *)" (?IoGetDeviceInterfaces@@$$FYGJPBU_GUID@@PAU_DEVICE_OBJECT@@KPAPA_W@Z) referenced in function "private: void __clrcall DeviceControler::Form1::EnableCDDrivers(bool)" (?EnableCDDrivers@Form1@DeviceControler@@$$FA$AAMX_N@Z)
I suppose i have to add an Liblary additional dependencies but I dont know which one. I have just add this libs:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib
wdm.lib
wdmguid.lib
wdmsec.lib
but i still get same error message.
Anybody knows whats the problem???
Sorry for my poor englisch if you dont understand my description just ask!
Thanks a lot