コード例 #1
0
        internal ProcessCollection(Process process)
        {
            this.process = process;
            IntPtr intPtr = NativeMethods.CreateJobObject(IntPtr.Zero, null);

            this.jobObjectHandle = new ProcessNativeMethods.SafeLocalMemHandle(intPtr, false);
        }
コード例 #2
0
 public SECURITY_ATTRIBUTES()
 {
     this.nLength              = 12;
     this.bInheritHandle       = true;
     this.lpSecurityDescriptor = new ProcessNativeMethods.SafeLocalMemHandle(IntPtr.Zero, true);
 }
コード例 #3
0
ファイル: ProcessNativeMethods.cs プロジェクト: nickchal/pash
			public SECURITY_ATTRIBUTES()
			{
				this.nLength = 12;
				this.bInheritHandle = true;
				this.lpSecurityDescriptor = new ProcessNativeMethods.SafeLocalMemHandle(IntPtr.Zero, true);
			}
コード例 #4
0
ファイル: ProcessCollection.cs プロジェクト: nickchal/pash
		internal ProcessCollection(Process process)
		{
			this.process = process;
			IntPtr intPtr = NativeMethods.CreateJobObject(IntPtr.Zero, null);
			this.jobObjectHandle = new ProcessNativeMethods.SafeLocalMemHandle(intPtr, false);
		}