public static void OpenImpersonation(string sourceFolder)
 {
     token = IntPtr.Zero;
     obj   =
         RemoteCredentials.OpenImpersonation("originator",
                                             "owqiuqrp97fy3w0fj94rkheno70t98dsk23ulq90ug02d98e57wq98g7yr34krt08uwi9bgy305n9",
                                             sourceFolder, ref token);
 }
 public static void CloseImpersonation()
 {
     //Reading from remote location goes here
     RemoteCredentials.CloseImpersonation(obj, token);
 }