This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Prompt the user for the credential name (Target) | |
| $account = Read-Host "Enter the anytype account id (starts with A)" | |
| # Define necessary structs and functions using P/Invoke | |
| Add-Type -TypeDefinition @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class NativeMethods | |
| { | |
| [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] |