Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error LNK2028: unresolved token bei IoGetDeviceInterfaces

Empfohlene Antworten

Hi,

ich habe folgendes Problem. Ich möchte eine Funktion IoGetDeviceInterfaces aufrufen. Wenn ich es mache bekomme ich als folge solche Errors:

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)

Ich habe folgende Biblitheken angebunden:

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

Weisst jemand wo das Problem Liegt?

Danke!

Ist dir klar, dass das eine Kernelmode-Funktion ist?

Ist das, was du da bauen willst, ein Treiber?

Wie baust du das ganze? Benutzt du das WDK?

Ja es ist mir Klar. Ich brauche die Funktion zum Aktivieren und Deaktivieren von CD-Laufwerken. Ich habe das DDK Installiert und die Pfade im VS ergäntzt. Es ist eine Windows Forms Anwendung. Es wird aber kein Treiber sein.

Bearbeitet von Lesnik_

Das wird wohl nicht funktionieren.

Quelle: IoGetDeviceInterfaces

Danke für die Antwort. Das hab ich wohl übersehen.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.