Example #1
0
 public string GetSignature()
 {
     using (var signature = new MarshalledString(400))
     {
         ExecuteAndCheckReturnValue(GetSignatureName, () => getSignature(signature.Pointer));
         return signature.Value;
     }
 }
Example #2
0
        private unsafe void InitDllLogging()
        {
            var fakeTrackirData = new FreePieTrackIRHeadposeData();

            using (var logpath = new MarshalledString(Path.Combine(Environment.CurrentDirectory, "NPClient.log")))
                CopyMemory(new IntPtr(fakeTrackirData.LogPath), logpath.Pointer, logpath.Length);

            freepieData.Write(x => x.TrackIRData.FakeTrackIRData, fakeTrackirData);
        }