© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
FancyFurret

❔ Do I need Marshal.AddRef/Release here?

Im using this repo as a guide on how to make a credential provider in C#:
https://github.com/phaetto/windows-credentials-provider/blob/dd3f5bbe86f1cf1f8f679ac109332975fbf3373c/WindowsCredentialProviderTest/TestWindowsCredentialProviderTile.cs#L56

Do you actually need the Marshal.AddRef/Release here? I dont have much experience with COM, but reading online it seems like usually you dont?
GitHub
windows-credentials-provider/TestWindowsCredentialProviderTile.cs a...
An example implementation of a windows credential provider that is tightly connected with logon system - windows-credentials-provider/TestWindowsCredentialProviderTile.cs at dd3f5bbe86f1cf1f8f679ac...
windows-credentials-provider/TestWindowsCredentialProviderTile.cs a...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Need some help with marshal
C#CC# / help
4y ago
idk what I need to do here
C#CC# / help
3y ago
Marshal class
C#CC# / help
4y ago
why do we need IAsyncDisposable here?
C#CC# / help
3y ago