Skip to content

Expose FnSock as dll/sys#80

Merged
nigriMSFT merged 1 commit intomainfrom
nigriMSFT/fnsock
Jun 14, 2024
Merged

Expose FnSock as dll/sys#80
nigriMSFT merged 1 commit intomainfrom
nigriMSFT/fnsock

Conversation

@nigriMSFT
Copy link
Contributor

@nigriMSFT nigriMSFT commented Jun 14, 2024

Expose FnSock as dll/sys libraries. This makes consumption more flexible compared to static libs (which brings in complexities such as libs compiled with different CRTs). The next step will be to package the headers and import libs into a nuget package that other projects can consume.

@nigriMSFT nigriMSFT changed the title WIP make fnsock build as dll/sys Expose FnSock as dll/sys Jun 14, 2024
@nigriMSFT nigriMSFT marked this pull request as ready for review June 14, 2024 04:03
_IRQL_requires_same_
_IRQL_requires_(PASSIVE_LEVEL)
NTSTATUS
DriverEntry(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you don't have a driver service, I think the DriverEntry isn't necessary, but since it doesn't hurt we can leave it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is unused (not called), but the driver framework seems to expect it

    2>WdfDriverEntry.lib(stub.obj) : error LNK2019: unresolved external symbol DriverEntry referenced in function FxDr
       iverEntryWorker [N:\repos\win-net-test\src\sock\km\fnsock_km.vcxproj]
     2>N:\repos\win-net-test\artifacts\bin\amd64chk\fnsock_km.sys : fatal error LNK1120: 1 unresolved externals [N:\rep
       os\win-net-test\src\sock\km\fnsock_km.vcxproj]

@nigriMSFT nigriMSFT merged commit 98086b5 into main Jun 14, 2024
@nigriMSFT nigriMSFT deleted the nigriMSFT/fnsock branch June 14, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants