Example #1
0
 internal static extern int IpcSerializeLicense(
     [In] IntPtr pvLicenseInfo,
     [In, MarshalAs(UnmanagedType.U4)] SerializationInputType dwType,
     [In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcPromptContext pContext,
     [Out] out SafeInformationProtectionKeyHandle phKey,
     [Out] out IntPtr pvLicense);
 internal static extern int IpcfDecryptFileStream(
     [In, MarshalAs(UnmanagedType.Interface)] ILockBytes pInputFileStream,
     [In, MarshalAs(UnmanagedType.LPWStr)] string wszInputFilePath,
     [In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcPromptContext pContext,
     [In, MarshalAs(UnmanagedType.Interface)] ILockBytes pOutputFileStream,
     [Out] out IntPtr wszOutputFilePath);
Example #3
0
 internal static extern int IpcGetTemplateList(
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcConnectionInfo connectionInfo,
     [In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [In, MarshalAs(UnmanagedType.U4)] uint lcid,
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcPromptContext pContext,
     [In] IntPtr reserved,
     [Out] out IntPtr pTil);
 internal static extern int IpcfEncryptFile(
     [In, MarshalAs(UnmanagedType.LPWStr)] string wszInputFilePath,
     [In] IntPtr pvLicenseInfo,
     [In, MarshalAs(UnmanagedType.U4)] uint dwType,
     [In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcPromptContext pContext,
     [In, MarshalAs(UnmanagedType.LPWStr)] string wszOutputFileDirectory,
     [Out] out IntPtr wszOutputFilePath);
Example #5
0
 internal static extern int IpcGetKey(
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcBuffer pvLicense,
     [In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcPromptContext pContext,
     [In] IntPtr pvReserved,
     [Out] out SafeInformationProtectionKeyHandle phKey);
Example #6
0
 internal SafeIpcPromptContext(IntPtr wndParent, SafeIpcCredential credential, WaitHandle cancelEvent)
 {
     ipcCredential    = GCHandle.Alloc(credential);
     ipcPromptContext = new IpcPromptContext(wndParent, (IpcCredential)((SafeIpcCredential)ipcCredential.Target),
                                             cancelEvent);
 }
Example #7
0
 public SafeIpcPromptContext(IntPtr wndParent, IpcCredential credential, IntPtr cancelEvent)
 {
     internalClass = new IpcPromptContext(wndParent, credential, cancelEvent);
 }
 public SafeIpcPromptContext(IntPtr wndParent, IpcCredential credential, IntPtr cancelEvent)
 {
     internalClass = new IpcPromptContext(wndParent, credential, cancelEvent);
 }
Example #9
0
 internal static extern int IpcRegisterLicense(
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcBuffer pvLicense,
     [In] IntPtr pvReserved,
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcPromptContext pContext,
     string wszContentName,
     [In, MarshalAs(UnmanagedType.Bool)] bool fSendRegistrationMail);
 internal static extern int IpcfOpenFileOnILockBytes(
     [In, MarshalAs(UnmanagedType.Interface)] ILockBytes pFileStream,
     [In, MarshalAs(UnmanagedType.LPStruct)] IpcPromptContext pContext,
     [In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [Out] out SafeInformationProtectionFileHandle fileHandle);