Windows 10: unresolved external symbol linker error in visual studio 2017

Discus and support unresolved external symbol linker error in visual studio 2017 in Windows 10 Drivers and Hardware to solve the problem; #include "Miniport.h" DRIVEREXTN DriverExtn; NDIS_HANDLE Handle; NDIS_STATUS DriverEntry( _In_ PVOID DriverObject, _In_ PVOID RegistryPath ) {... Discussion in 'Windows 10 Drivers and Hardware' started by singania, Jul 12, 2018.

  1. singania Win User

    unresolved external symbol linker error in visual studio 2017


    #include "Miniport.h"

    DRIVEREXTN DriverExtn;
    NDIS_HANDLE Handle;

    NDIS_STATUS DriverEntry(
    _In_ PVOID DriverObject,
    _In_ PVOID RegistryPath
    )
    {
    NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
    NDIS_MINIPORT_DRIVER_CHARACTERISTICS MPChar;
    NdisZeroMemory(&MPChar, sizeof(MPChar));
    MPChar.Header.Type = NDIS_OBJECT_TYPE_MINIPORT_DRIVER_CHARACTERISTICS;
    MPChar.Header.Size = NDIS_SIZEOF_MINIPORT_DRIVER_CHARACTERISTICS_REVISION_3;
    MPChar.Header.Revision = NDIS_MINIPORT_DRIVER_CHARACTERISTICS_REVISION_3;

    MPChar.MajorNdisVersion = NDIS_MAJOR_VERSION;
    MPChar.MinorNdisVersion = NDIS_MINOR_VERSION;

    MPChar.MajorDriverVersion = MAJOR_DRIVER_VERSION;
    MPChar.MinorDriverVersion = MINOR_DRIVER_VERISON;

    MPChar.Flags = 0;
    #if 0
    MPChar.SetOptionsHandler = NULL;
    MPChar.InitializeHandlerEx = MPInitializeEx;
    MPChar.HaltHandlerEx = MPHaltEx;
    MPChar.UnloadHandler = DriverUnload;
    MPChar.PauseHandler = MPPause;
    MPChar.RestartHandler = MPRestart;
    MPChar.OidRequestHandler = MPOidRequest;
    MPChar.SendNetBufferListsHandler = MPSendNetBufferLists;
    MPChar.ReturnNetBufferListsHandler = MPReturnNetBufferLists;
    MPChar.CancelSendHandler = MPCancelSend;
    MPChar.CheckForHangHandlerEx = NULL;
    MPChar.ResetHandlerEx = NULL;
    MPChar.DevicePnPEventNotifyHandler = MPDevicePnpEventNotify;
    MPChar.ShutdownHandlerEx = MPShutdownEx;
    MPChar.CancelOidRequestHandler = MPCancelOidRequest;
    MPChar.SynchronousOidRequestHandler = MPSynchronousOidRequest;
    #endif
    Status = NdisMRegisterMiniportDriver(DriverObject,
    RegistryPath,
    &DriverExtn,
    &MPChar,
    &Handle);
    if (Status != NDIS_STATUS_SUCCESS) {
    DriverUnload(DriverObject);
    return Status;
    }
    DriverExtn.Flags |= NDIS_REGISTER_SUCCESS;
    return Status;
    }

    VOID DriverUnload(
    _In_ PDRIVER_OBJECT DriverObject
    )
    {
    UNREFERENCED_PARAMETER(DriverObject);

    if (DriverExtn.Flags & NDIS_REGISTER_SUCCESS) {
    NdisMDeregisterMiniportDriver(Handle);
    }
    }

    Compilation on visual studio 2017(professional) throws linker error

    Error LNK2019 unresolved external symbol NdisMRegisterMiniportDriver referenced in function DriverEntry

    Error LNK2019 unresolved external symbol NdisMDeregisterMiniportDriver referenced in function DriverUnload

    Error LNK1120 2 unresolved externals Miniport

    Using WDK10 and ndis.h is included in Miniport.h. What could be the issue?Any helpful information is much appreciated.

    :)
     
    singania, Jul 12, 2018
    #1
  2. Brink Win User

    Live Dependency Validation in Visual Studio 2017


    Read more: Live Dependency Validation in Visual Studio 2017 | Microsoft Application Lifecycle Management
     
    Brink, Jul 12, 2018
    #2
  3. Brink Win User
    Visual Studio 2017 Roadmap


    Source: Visual Studio Roadmap for 2018 | Microsoft Docs
     
    Brink, Jul 12, 2018
    #3
  4. Brink Win User

    unresolved external symbol linker error in visual studio 2017

    Visual Studio 2017 is Now Available


    Read more:

    See also: What's New in Visual Studio 2017 | Product Updates and News

    Videos: https://channel9.msdn.com/Events/Vis...io-2017-Launch
     
    Brink, Jul 12, 2018
    #4
Thema:

unresolved external symbol linker error in visual studio 2017

Loading...
  1. unresolved external symbol linker error in visual studio 2017 - Similar Threads - unresolved external symbol

  2. Visual Studio 2017 not installing

    in Windows 10 Network and Sharing
    Visual Studio 2017 not installing: Hello i tried to download Visual studio 2017 because of my storage to make stuff in c# but i keep getting this error i do not have any VS installed yet this error keeps popping up...
  3. Visual Studio 2017 not installing

    in Windows 10 Gaming
    Visual Studio 2017 not installing: Hello i tried to download Visual studio 2017 because of my storage to make stuff in c# but i keep getting this error i do not have any VS installed yet this error keeps popping up...
  4. Visual Studio 2017 not installing

    in Windows 10 Software and Apps
    Visual Studio 2017 not installing: Hello i tried to download Visual studio 2017 because of my storage to make stuff in c# but i keep getting this error i do not have any VS installed yet this error keeps popping up...
  5. Visual studio 2017, 2019 Sign in Error

    in Windows 10 Installation and Upgrade
    Visual studio 2017, 2019 Sign in Error: I am having issues signing into Visual studio 2019 or 2017. It throws an error about "we could not refresh the credentials for the account could not load file or assemble system.Net.Http" I cannot even signout or Forget my account to clean up. IT just does not let me in....
  6. visual studio 2017

    in Windows 10 Installation and Upgrade
    visual studio 2017: The product failed to install due to one or more package failures. You can search for solutions using the information below, retry the installation, or remove the product from your machine. Following is a collection of individual package failures. To search for existing...
  7. unresolved external symbol linker error in visual studio 2017

    in Windows 10 Software and Apps
    unresolved external symbol linker error in visual studio 2017: #include "Miniport.h" DRIVEREXTN DriverExtn; NDIS_HANDLE Handle; NDIS_STATUS DriverEntry( _In_ PVOID DriverObject, _In_ PVOID RegistryPath ) { NDIS_STATUS Status = NDIS_STATUS_SUCCESS; NDIS_MINIPORT_DRIVER_CHARACTERISTICS MPChar; NdisZeroMemory(&MPChar, sizeof(MPChar));...
  8. Visual Studio Modeling SDK is now available with Visual Studio 2017

    in Windows 10 News
    Visual Studio Modeling SDK is now available with Visual Studio 2017: You might want to use the Visual Studio Modeling SDK if you have one of these requirements: Create Graphical or Form-Based modeling designers. For these, you can use the DSL Tools Enable transformation of T4 templates part of the build. For these you can use the T4 SDK...
  9. Visual Studio 2017 Roadmap

    in Windows 10 News
    Visual Studio 2017 Roadmap: This document provides a peek into what's next for Visual Studio. It captures some of the significant features we are currently committed to, and a rough timeframe for when you can expect to see them. It is not a comprehensive list of all new features in Visual Studio, but is...
  10. Visual Studio 2017 is Now Available

    in Windows 10 News
    Visual Studio 2017 is Now Available: Visual Studio 2017 is here! Celebrate 20 years of Visual Studio with fellow developers in your area, join us on Twitter, and download Visual Studio 2017 now. Don’t forget to sign up for tomorrow’s full day of free training at Microsoft Virtual Academy on Wednesday, March 8....