Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Finish removal of IntPtr method overloads in Kernel32
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Dec 29, 2015
1 parent 4f698dd commit 765c587
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Kernel32.Desktop/Kernel32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ public static extern void GetStartupInfo(
/// </returns>
/// <remarks>
/// First, call this function with the <paramref name="dwAttributeCount "/> parameter set to the maximum number of attributes you will be using and the lpAttributeList to NULL. The function returns the required buffer size in bytes in the lpSize parameter. Allocate enough space for the data in the lpAttributeList buffer and call the function again to initialize the buffer.
/// To add attributes to the list, call the <see cref="UpdateProcThreadAttribute(PROC_THREAD_ATTRIBUTE_LIST*, uint, ref uint, IntPtr, IntPtr, ref IntPtr, ref IntPtr)"/> function. To specify these attributes when creating a process, specify <see cref="CreateProcessFlags.EXTENDED_STARTUPINFO_PRESENT"/> in the dwCreationFlag parameter and a <see cref="STARTUPINFOEX"/> structure in the lpStartupInfo parameter. Note that you can specify the same <see cref="STARTUPINFOEX"/> structure to multiple child processes.
/// When you have finished using the list, call the <see cref="DeleteProcThreadAttributeList"/> function.
/// To add attributes to the list, call the <see cref="UpdateProcThreadAttribute(PROC_THREAD_ATTRIBUTE_LIST*, uint, ref uint, void*, IntPtr, ref IntPtr, ref IntPtr)"/> function. To specify these attributes when creating a process, specify <see cref="CreateProcessFlags.EXTENDED_STARTUPINFO_PRESENT"/> in the dwCreationFlag parameter and a <see cref="STARTUPINFOEX"/> structure in the lpStartupInfo parameter. Note that you can specify the same <see cref="STARTUPINFOEX"/> structure to multiple child processes.
/// When you have finished using the list, call the <see cref="DeleteProcThreadAttributeList(PROC_THREAD_ATTRIBUTE_LIST*)"/> function.
/// </remarks>
[DllImport(api_ms_win_core_processthreads_l1_1_1, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
Expand All @@ -251,7 +251,7 @@ public static unsafe extern bool InitializeProcThreadAttributeList(
/// The attribute key to update in the attribute list.
/// </param>
/// <param name="lpValue">
/// A pointer to the attribute value. This value should persist until the attribute is destroyed using the <see cref="DeleteProcThreadAttributeList"/> function.
/// A pointer to the attribute value. This value should persist until the attribute is destroyed using the <see cref="DeleteProcThreadAttributeList(PROC_THREAD_ATTRIBUTE_LIST*)"/> function.
/// </param>
/// <param name="cbSize">
/// The size of the attribute value specified by the <paramref name="lpValue"/> parameter.
Expand All @@ -270,7 +270,7 @@ public static unsafe extern bool UpdateProcThreadAttribute(
PROC_THREAD_ATTRIBUTE_LIST* lpAttributeList,
uint dwFlags,
ref uint Attribute,
IntPtr lpValue,
void* lpValue,
IntPtr cbSize, // SIZE_T varies by bitness
ref IntPtr lpPreviousValue,
ref IntPtr lpReturnSize);
Expand All @@ -282,8 +282,8 @@ public static unsafe extern bool UpdateProcThreadAttribute(
/// The attribute list. This list is created by the <see cref="InitializeProcThreadAttributeList(PROC_THREAD_ATTRIBUTE_LIST*, int, uint, ref IntPtr)"/> function.
/// </param>
[DllImport(api_ms_win_core_processthreads_l1_1_1)]
public static extern void DeleteProcThreadAttributeList(
IntPtr lpAttributeList);
public static unsafe extern void DeleteProcThreadAttributeList(
PROC_THREAD_ATTRIBUTE_LIST* lpAttributeList);

/// <summary>
/// Allocates a new console for the calling process.
Expand Down

0 comments on commit 765c587

Please sign in to comment.