Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- namespace TestBox
- {
- class Program
- {
- static void Main(string[] args)
- {
- Guid result = Guid.NewGuid();
- IntPtr newIntPtr = Marshal.AllocHGlobal(Marshal.SizeOf(result));
- Marshal.StructureToPtr(result, newIntPtr, true);
- Console.WriteLine(result);
- Console.WriteLine(newIntPtr);
- }
- }
- }
Add Comment
Please, Sign In to add comment