PInvoke API (methods, structures and constants) imported from Windows PeerDist.dll for the Peer Distribution API, which supports the Branch Cache feature in Windows 7.
$ dotnet add package Vanara.PInvoke.PeerDist![]()
PInvoke API (methods, structures and constants) imported from Windows PeerDist.dll for the Peer Distribution API, which supports the Branch Cache feature in Windows 7.
Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.
First check if it's already fixed by trying the MyGet build. If you're still running into problems, file an issue.
| Functions | Enumerations | Structures |
|---|---|---|
| PeerDistClientAddContentInformation PeerDistClientAddData PeerDistClientBlockRead PeerDistClientCancelAsyncOperation PeerDistClientCloseContent PeerDistClientCompleteContentInformation PeerDistClientFlushContent PeerDistClientGetInformationByHandle PeerDistClientOpenContent PeerDistClientStreamRead PeerDistGetOverlappedResult PeerDistGetStatus PeerDistGetStatusEx PeerDistRegisterForStatusChangeNotification PeerDistRegisterForStatusChangeNotificationEx PeerDistServerCancelAsyncOperation PeerDistServerCloseContentInformation PeerDistServerCloseStreamHandle PeerDistServerOpenContentInformation PeerDistServerOpenContentInformationEx PeerDistServerPublishAddToStream PeerDistServerPublishCompleteStream PeerDistServerPublishStream PeerDistServerRetrieveContentInformation PeerDistServerUnpublish PeerDistShutdown PeerDistStartup PeerDistUnregisterForStatusChangeNotification | PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS PEERDIST_STATUS | PEERDIST_CLIENT_BASIC_INFO PEERDIST_CONTENT_TAG PEERDIST_PUBLICATION_OPTIONS PEERDIST_RETRIEVAL_OPTIONS PEERDIST_STATUS_INFO PEERDIST_CONTENT_HANDLE PEERDIST_CONTENTINFO_HANDLE PEERDIST_INSTANCE_HANDLE PEERDIST_STREAM_HANDLE |