コード例 #1
0
ファイル: NativeMethods.cs プロジェクト: herbqiao/paint.net
 public static extern bool DuplicateTokenEx(
     IntPtr hExistingToken,
     uint dwDesiredAccess,
     IntPtr lpTokenAttributes,
     NativeConstants.SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
     NativeConstants.TOKEN_TYPE TokenType,
     out IntPtr phNewToken);
コード例 #2
0
 void NativeInterfaces.IFileDialogEvents.OnOverwrite(
     NativeInterfaces.IFileDialog pfd,
     NativeInterfaces.IShellItem psi,
     out NativeConstants.FDE_OVERWRITE_RESPONSE pResponse)
 {
     pResponse = NativeConstants.FDE_OVERWRITE_RESPONSE.FDEOR_DEFAULT;
 }
コード例 #3
0
 void NativeInterfaces.IFileDialogEvents.OnShareViolation(
     NativeInterfaces.IFileDialog pfd,
     NativeInterfaces.IShellItem psi,
     out NativeConstants.FDE_SHAREVIOLATION_RESPONSE pResponse)
 {
     pResponse = NativeConstants.FDE_SHAREVIOLATION_RESPONSE.FDESVR_DEFAULT;
 }