using System.Runtime.InteropServices; public class Program { [DllImport(@"C:\Users\Abc\Documents\visual studio 2015\Projects\ConsoleApplication4\ConsoleApplication4\aws-encryption-sdk.dll", EntryPoint = "aws_cryptosdk_keyring_on_decrypt", CallingConvention = CallingConvention.StdCall)] public static extern void aws_cryptosdk_keyring_on_decrypt(ref IntPtr value); static void Main(string[] args) { int value = 6; IntPtr sptr = Marshal.StringToHGlobalAnsi((value).ToString()); aws_cryptosdk_keyring_on_decrypt(ref sptr); Console.WriteLine("called"); Console.Read(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)