Fixed build errors and warnings due to XML comments and obsolete license reference in project files.

pull/30/head
David Hall 2018-12-15 13:44:33 -07:00
parent eaaaa2f2d4
commit eb902e4595
42 changed files with 56 additions and 93 deletions

View File

@ -16,7 +16,7 @@
<RootNamespace>Vanara</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -86,7 +86,7 @@ namespace Vanara.PInvoke
// void DrawStatusTextA( HDC hDC, LPCRECT lprc, LPCSTR pszText, UINT uFlags );
[DllImport(Lib.ComCtl32, SetLastError = false, CharSet = CharSet.Auto)]
[PInvokeData("Commctrl.h", MSDNShortId = "bb760763")]
public static extern void DrawStatusText(HDC hdc, in RECT lprc, string pszText, SBT uFlags);
public static extern void DrawStatusText(HDC hDC, in RECT lprc, string pszText, SBT uFlags);
/// <summary>
/// Processes <c>WM_MENUSELECT</c> and <c>WM_COMMAND</c> messages and displays Help text about the current menu in the specified

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -603,7 +603,7 @@ namespace Vanara.PInvoke
// int WINAPI DPA_GetPtrIndex( _In_ HDPA hdpa, _In_ const void *pvoid); https://msdn.microsoft.com/en-us/library/windows/desktop/bb775619(v=vs.85).aspx
[DllImport(Lib.ComCtl32, SetLastError = false, ExactSpelling = true)]
[PInvokeData("Dpa_dsa.h", MSDNShortId = "bb775619")]
public static extern int DPA_GetPtrIndex(HDPA pdpa, IntPtr pvoid);
public static extern int DPA_GetPtrIndex(HDPA hdpa, IntPtr pvoid);
/// <summary>Gets the pointer to the internal pointer array of a dynamic pointer array (DPA).</summary>
/// <param name="hdpa">A handle to an existing DPA.</param>
@ -647,7 +647,7 @@ namespace Vanara.PInvoke
[DllImport(Lib.ComCtl32, SetLastError = false, ExactSpelling = true)]
[PInvokeData("Dpa_dsa.h", MSDNShortId = "bb775623")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool DPA_Grow(HDPA pdpa, int cp);
public static extern bool DPA_Grow(HDPA hdpa, int cp);
/// <summary>
/// <para>
@ -1060,8 +1060,8 @@ namespace Vanara.PInvoke
/// <returns>Returns the index of the new item or , if the insert action fails.</returns>
// int DPA_SortedInsertPtr( HDPA pdpa, void *pFind, int iStart, PFNDPACOMPARE pfnCmp, LPARAM lParam, UINT options, void *pitem); https://msdn.microsoft.com/en-us/library/windows/desktop/bb775590(v=vs.85).aspx
[PInvokeData("Dpa_dsa.h", MSDNShortId = "bb775590")]
public static int DPA_SortedInsertPtr(HDPA hdpa, IntPtr pFind, int iStart, PFNDACOMPARE pfnCompare, IntPtr lParam, DPAS options, IntPtr pitem) =>
DPA_InsertPtr(hdpa, DPA_Search(hdpa, pFind, iStart, pfnCompare, lParam, DPAS.DPAS_SORTED | options), pitem);
public static int DPA_SortedInsertPtr(HDPA pdpa, IntPtr pFind, int iStart, PFNDACOMPARE pfnCmp, IntPtr lParam, DPAS options, IntPtr pitem) =>
DPA_InsertPtr(pdpa, DPA_Search(pdpa, pFind, iStart, pfnCmp, lParam, DPAS.DPAS_SORTED | options), pitem);
/// <summary>Appends a new item to the end of a dynamic structure array (DSA).</summary>
/// <param name="pdsa">A handle to the DSA in which to insert the item.</param>
@ -1069,7 +1069,7 @@ namespace Vanara.PInvoke
/// <returns>Returns the index of the new item if the append action succeeds, or if the append action fails.</returns>
// int DSA_AppendItem( [in] HDSA pdsa, [in] void *pItem); https://msdn.microsoft.com/en-us/library/windows/desktop/bb775591(v=vs.85).aspx
[PInvokeData("Dpa_dsa.h", MSDNShortId = "bb775591")]
public static int DSA_AppendItem(HDSA hdsa, IntPtr pitem) => DSA_InsertItem(hdsa, DA_LAST, pitem);
public static int DSA_AppendItem(HDSA pdsa, IntPtr pItem) => DSA_InsertItem(pdsa, DA_LAST, pItem);
/// <summary>Duplicates a dynamic structure array (DSA).</summary>
/// <param name="hdsa">
@ -1283,7 +1283,7 @@ namespace Vanara.PInvoke
// ULONGLONG DSA_GetSize( _In_ HDSA hdsa); https://msdn.microsoft.com/en-us/library/windows/desktop/bb775663(v=vs.85).aspx
[DllImport(Lib.ComCtl32, SetLastError = false, ExactSpelling = true)]
[PInvokeData("Dpa_dsa.h", MSDNShortId = "bb775663")]
public static extern ulong DSA_GetSize(HDSA pdsa);
public static extern ulong DSA_GetSize(HDSA hdsa);
/// <summary>
/// <para>
@ -1340,7 +1340,7 @@ namespace Vanara.PInvoke
[DllImport(Lib.ComCtl32, SetLastError = false, ExactSpelling = true)]
[PInvokeData("Dpa_dsa.h", MSDNShortId = "bb775668")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool DSA_SetItem(HDSA hdsa, int index, IntPtr pItem);
public static extern bool DSA_SetItem(HDSA pdsa, int index, IntPtr pItem);
/// <summary>Sorts the items in a dynamic structure array (DSA).</summary>
/// <param name="pdsa">

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -9866,7 +9866,7 @@ namespace Vanara.PInvoke
protected override bool InternalReleaseHandle() => BCryptDestroyHash(this).Succeeded;
}
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="BCRYPT_KEY_HANDLE"/> that is disposed using <see cref="BCryptDestroyKey."/>.</summary>
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="BCRYPT_KEY_HANDLE"/> that is disposed using <see cref="BCryptDestroyKey"/>.</summary>
public class SafeBCRYPT_KEY_HANDLE : HANDLE
{
/// <summary>Initializes a new instance of the <see cref="SafeBCRYPT_KEY_HANDLE"/> class and assigns an existing handle.</summary>

View File

@ -629,8 +629,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Prepend = KDF_SECRET_PREPEND[0] + &#xA; KDF_SECRET_PREPEND[1] + &#xA; ... +&#xA; KDF_SECRET_PREPEND[n]&#xA;&#xA;KDF-Append = KDF_SECRET_APPEND[0] + &#xA; KDF_SECRET_APPEND[1] + &#xA; ... + &#xA; KDF_SECRET_APPEND[n]&#xA;&#xA;KDF-Output = Hash(&#xA; KDF-Prepend + &#xA; hSharedSecret + &#xA; KDF-Append)">
/// <para>BCRYPT_KDF_HMAC (L"HMAC")</para>
/// <para>Use the Hash-Based Message Authentication Code (HMAC) key derivation function.</para>
/// <para>
@ -674,8 +672,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Prepend = KDF_SECRET_PREPEND[0] + &#xA; KDF_SECRET_PREPEND[1] + &#xA; ... +&#xA; KDF_SECRET_PREPEND[n]&#xA;&#xA;KDF-Append = KDF_SECRET_APPEND[0] + &#xA; KDF_SECRET_APPEND[1] + &#xA; ... + &#xA; KDF_SECRET_APPEND[n]&#xA;&#xA;KDF-Output = HMAC-Hash(&#xA; KDF_HMAC_KEY,&#xA; KDF-Prepend + &#xA; hSharedSecret + &#xA; KDF-Append)">
/// <para>BCRYPT_KDF_TLS_PRF (L"TLS_PRF")</para>
/// <para>
/// Use the transport layer security (TLS) pseudo-random function (PRF) key derivation function. The size of the derived key is
@ -703,8 +699,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Output = PRF(&#xA; hSharedSecret, &#xA; KDF_TLS_PRF_LABEL, &#xA; KDF_TLS_PRF_SEED)">
/// <para>BCRYPT_KDF_SP80056A_CONCAT (L"SP800_56A_CONCAT")</para>
/// <para>Use the SP800-56A key derivation function.</para>
/// <para>
@ -759,8 +753,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Output = SP_800-56A_KDF(&#xA;&#x9; hSharedSecret,&#xA;&#x9; KDF_ALGORITHMID,&#xA;&#x9; KDF_PARTYUINFO,&#xA;&#x9; KDF_PARTYVINFO,&#xA;&#x9; KDF_SUPPPUBINFO,&#xA;&#x9; KDF_SUPPPRIVINFO)">
/// <para><c>Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:</c> This value is not supported.</para>
/// </param>
/// <param name="pParameterList">
@ -896,8 +888,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Prepend = KDF_SECRET_PREPEND[0] + &#xA; KDF_SECRET_PREPEND[1] + &#xA; ... +&#xA; KDF_SECRET_PREPEND[n]&#xA;&#xA;KDF-Append = KDF_SECRET_APPEND[0] + &#xA; KDF_SECRET_APPEND[1] + &#xA; ... + &#xA; KDF_SECRET_APPEND[n]&#xA;&#xA;KDF-Output = Hash(&#xA; KDF-Prepend + &#xA; hSharedSecret + &#xA; KDF-Append)">
/// <para>BCRYPT_KDF_HMAC (L"HMAC")</para>
/// <para>Use the Hash-Based Message Authentication Code (HMAC) key derivation function.</para>
/// <para>
@ -941,8 +931,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Prepend = KDF_SECRET_PREPEND[0] + &#xA; KDF_SECRET_PREPEND[1] + &#xA; ... +&#xA; KDF_SECRET_PREPEND[n]&#xA;&#xA;KDF-Append = KDF_SECRET_APPEND[0] + &#xA; KDF_SECRET_APPEND[1] + &#xA; ... + &#xA; KDF_SECRET_APPEND[n]&#xA;&#xA;KDF-Output = HMAC-Hash(&#xA; KDF_HMAC_KEY,&#xA; KDF-Prepend + &#xA; hSharedSecret + &#xA; KDF-Append)">
/// <para>BCRYPT_KDF_TLS_PRF (L"TLS_PRF")</para>
/// <para>
/// Use the transport layer security (TLS) pseudo-random function (PRF) key derivation function. The size of the derived key is
@ -970,8 +958,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Output = PRF(&#xA; hSharedSecret, &#xA; KDF_TLS_PRF_LABEL, &#xA; KDF_TLS_PRF_SEED)">
/// <para>BCRYPT_KDF_SP80056A_CONCAT (L"SP800_56A_CONCAT")</para>
/// <para>Use the SP800-56A key derivation function.</para>
/// <para>
@ -1026,8 +1012,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// <para>The call to the KDF is made as shown in the following pseudocode.</para>
/// </param>
/// <param name="KDF-Output = SP_800-56A_KDF(&#xA;&#x9; hSharedSecret,&#xA;&#x9; KDF_ALGORITHMID,&#xA;&#x9; KDF_PARTYUINFO,&#xA;&#x9; KDF_PARTYVINFO,&#xA;&#x9; KDF_SUPPPUBINFO,&#xA;&#x9; KDF_SUPPPRIVINFO)">
/// <para><c>Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:</c> This value is not supported.</para>
/// </param>
/// <param name="pParameterList">
@ -3177,7 +3161,7 @@ namespace Vanara.PInvoke
/// </summary>
public uint cbBuffer;
/// <summary><para>A value that identifies the type of data that is contained by the buffer.</summary>
/// <summary>A value that identifies the type of data that is contained by the buffer.</summary>
public BufferType BufferType;
/// <summary>

View File

@ -15,7 +15,7 @@ namespace Vanara.PInvoke
/// following syntax.
/// </para>
/// </summary>
/// <param name="*pvCallbackCtxt">
/// <param name="pvCallbackCtxt">
/// <para>Pointer to data that you can use to keep track of your application. The data is not modified by the data protection API.</para>
/// <para>
/// <c>Note</c> You can set a pointer to your context data in the <c>pvCallbackCtxt</c> member of the NCRYPT_PROTECT_STREAM_INFO
@ -23,7 +23,7 @@ namespace Vanara.PInvoke
/// NCryptStreamOpenToUnprotect functions.
/// </para>
/// </param>
/// <param name="*pbData">
/// <param name="pbData">
/// <para>Pointer to a block of processed data that can be used by the application.</para>
/// </param>
/// <param name="cbData">

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -1880,7 +1880,7 @@ namespace Vanara.PInvoke
// Family, ULONG Flags, PVOID Reserved, PIP_ADAPTER_ADDRESSES AdapterAddresses, PULONG SizePointer );
[DllImport(Lib.IpHlpApi, SetLastError = false, ExactSpelling = true)]
[PInvokeData("iphlpapi.h", MSDNShortId = "7b34138f-7263-4b73-95df-9e854fd81135")]
public static extern Win32Error GetAdaptersAddresses(uint Family, GetAdaptersAddressesFlags Flags, IntPtr Reserved, IntPtr pAdapterAddresses, ref uint pOutBufLen);
public static extern Win32Error GetAdaptersAddresses(uint Family, GetAdaptersAddressesFlags Flags, IntPtr Reserved, IntPtr AdapterAddresses, ref uint SizePointer);
/// <summary>The <c>GetAdaptersAddresses</c> function retrieves the addresses associated with the adapters on the local computer.</summary>
/// <param name="Flags">
@ -1982,7 +1982,7 @@ namespace Vanara.PInvoke
[DllImport(Lib.IpHlpApi, SetLastError = false, ExactSpelling = true)]
[PInvokeData("iphlpapi.h", MSDNShortId = "8cdecc84-6566-438b-86d0-3c55490a9a59")]
[Obsolete("On Windows XP and later: Use the GetAdaptersAddresses function instead of GetAdaptersInfo.")]
public static extern Win32Error GetAdaptersInfo(IntPtr pAdapterInfo, ref uint pBufOutLen);
public static extern Win32Error GetAdaptersInfo(IntPtr AdapterInfo, ref uint SizePointer);
/// <summary>
/// <para>
@ -2995,7 +2995,7 @@ namespace Vanara.PInvoke
// IpNetTable, PULONG SizePointer, BOOL Order );
[DllImport(Lib.IpHlpApi, SetLastError = false, ExactSpelling = true)]
[PInvokeData("iphlpapi.h", MSDNShortId = "01bcf86e-5fcc-4ce9-bb89-02d393e75d1d")]
public static extern Win32Error GetIpNetTable(IntPtr pIpNetTable, ref uint pdwSize, [MarshalAs(UnmanagedType.Bool)] bool Order);
public static extern Win32Error GetIpNetTable(IntPtr IpNetTable, ref uint SizePointer, [MarshalAs(UnmanagedType.Bool)] bool Order);
/// <summary>The GetIpNetTable function retrieves the IPv4 to physical address mapping table.</summary>
/// <param name="sorted">
@ -3096,7 +3096,7 @@ namespace Vanara.PInvoke
// pFixedInfo, PULONG pOutBufLen );
[DllImport(Lib.IpHlpApi, SetLastError = false, ExactSpelling = true)]
[PInvokeData("iphlpapi.h", MSDNShortId = "5f54a120-5db9-4b8d-a281-1112be0042d6")]
public static extern Win32Error GetNetworkParams(IntPtr pFixedInfo, ref uint pBufOutLen);
public static extern Win32Error GetNetworkParams(IntPtr pFixedInfo, ref uint pOutBufLen);
/// <summary>The GetNetworkParams function retrieves network parameters for the local computer.</summary>
/// <returns>A <see cref="FIXED_INFO"/> structure that receives the network parameters for the local computer.</returns>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -747,26 +747,6 @@ namespace Vanara.PInvoke
/// allocate for an output buffer.
/// </para>
/// <para>The output buffer cannot be larger than 64K bytes.</para></param>
/// <param name="__arglist">
/// <para>
/// An array of values that are used as insert values in the formatted message. A %1 in the format string indicates the first value
/// in the Arguments array; a %2 indicates the second argument; and so on.
/// </para>
/// <para>
/// The interpretation of each value depends on the formatting information associated with the insert in the message definition. The
/// default is to treat each value as a pointer to a null-terminated string.
/// </para>
/// <para>
/// By default, the Arguments parameter is of type <c>va_list*</c>, which is a language- and implementation-specific data type for
/// describing a variable number of arguments. The state of the <c>va_list</c> argument is undefined upon return from the function.
/// To use the <c>va_list</c> again, destroy the variable argument list pointer using <c>va_end</c> and reinitialize it with <c>va_start</c>.
/// </para>
/// <para>
/// If you do not have a pointer of type <c>va_list*</c>, then specify the <c>FORMAT_MESSAGE_ARGUMENT_ARRAY</c> flag and pass a
/// pointer to an array of <c>DWORD_PTR</c> values; those values are input to the message formatted as the insert values. Each insert
/// must have a corresponding element in the array.
/// </para>
/// </param>
/// <returns>
/// <para>
/// If the function succeeds, the return value is the number of <c>TCHARs</c> stored in the output buffer, excluding the terminating

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -326,7 +326,7 @@ namespace Vanara.PInvoke
[DllImport(Lib.Kernel32, SetLastError = true, ExactSpelling = true)]
[PInvokeData("Winbase.h", MSDNShortId = "aa375140")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool DeactivateActCtx(DeactivateActCtxFlag dwFlags, IntPtr lpCookie);
public static extern bool DeactivateActCtx(DeactivateActCtxFlag dwFlags, IntPtr ulCookie);
/// <summary>
/// The <c>FindActCtxSectionGuid</c> function retrieves information on a specific GUID in the current activation context and returns a
@ -811,7 +811,6 @@ namespace Vanara.PInvoke
public static extern void ReleaseActCtx(HACTCTX hActCtx);
/// <summary>Removes the active instance of an application from the recovery list.</summary>
/// <param name="RegisterApplicationRecoveryCallback"></param>
/// <returns>
/// <para>This function returns <c>S_OK</c> on success or one of the following error codes.</para>
/// <para>

View File

@ -1355,7 +1355,7 @@ namespace Vanara.PInvoke
[DllImport(Lib.Kernel32, SetLastError = true, CharSet = CharSet.Auto)]
[PInvokeData("Winnls.h", MSDNShortId = "dd317803")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool EnumCalendarInfo(EnumCalendarInfoProc lpCalInfoEnumProc, uint Locale, uint Calendar, CALTYPE CalType);
public static extern bool EnumCalendarInfo(EnumCalendarInfoProc pCalInfoEnumProc, uint Locale, uint Calendar, CALTYPE CalType);
/// <summary>Enumerates calendar information for a locale specified by identifier.</summary>
/// <param name="pCalInfoEnumProcEx">Pointer to an application-defined callback function. For more information, see <c>EnumCalendarInfoProcEx</c>.</param>
@ -1382,7 +1382,7 @@ namespace Vanara.PInvoke
[DllImport(Lib.Kernel32, SetLastError = true, CharSet = CharSet.Auto)]
[PInvokeData("Winnls.h", MSDNShortId = "dd317804")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool EnumCalendarInfoEx(EnumCalendarInfoProcEx lpCalInfoEnumProcEx, uint Locale, uint Calendar, CALTYPE CalType);
public static extern bool EnumCalendarInfoEx(EnumCalendarInfoProcEx pCalInfoEnumProcEx, uint Locale, uint Calendar, CALTYPE CalType);
/// <summary>Enumerates calendar information for a locale specified by name.</summary>
/// <param name="pCalInfoEnumProcExEx">Pointer to an application-defined callback function. For more information, see <c>EnumCalendarInfoProcExEx</c>.</param>
@ -4641,7 +4641,7 @@ namespace Vanara.PInvoke
/// <returns>Returns the language identifier.</returns>
// WORD MAKELANGID( USHORT usPrimaryLanguage, USHORT usSubLanguage); https://msdn.microsoft.com/en-us/library/windows/desktop/dd373908(v=vs.85).aspx
[PInvokeData("Winnt.h", MSDNShortId = "dd373908")]
public static ushort MAKELANGID(ushort p, ushort s) => (ushort)(s << 10 | PRIMARYLANGID(p));
public static ushort MAKELANGID(ushort usPrimaryLanguage, ushort usSubLanguage) => (ushort)(usSubLanguage << 10 | PRIMARYLANGID(usPrimaryLanguage));
/// <summary>Creates a locale identifier from a language identifier and a sort order identifier.</summary>
/// <param name="wLanguageID">
@ -4652,7 +4652,7 @@ namespace Vanara.PInvoke
/// <returns>Returns the locale identifier.</returns>
// DWORD MAKELCID( WORD wLanguageID, WORD wSortID); https://msdn.microsoft.com/en-us/library/windows/desktop/dd319052(v=vs.85).aspx
[PInvokeData("Winnt.h", MSDNShortId = "dd319052")]
public static uint MAKELCID(ushort lgid, ushort srtid) => Macros.MAKELONG((ushort)(srtid & 0xf), lgid);
public static uint MAKELCID(ushort wLanguageID, ushort wSortID) => Macros.MAKELONG((ushort)(wSortID & 0xf), wLanguageID);
/// <summary>Constructs a locale identifier (LCID) from a language identifier, a sort order identifier, and the sort version.</summary>
/// <param name="wLanguageID">
@ -4664,7 +4664,7 @@ namespace Vanara.PInvoke
/// <returns>Returns the LCID.</returns>
// DWORD MAKESORTLCID( WORD wLanguageID, WORD wSortID, WORD wSortVersion); https://msdn.microsoft.com/en-us/library/windows/desktop/dd319053(v=vs.85).aspx
[PInvokeData("Winnt.h", MSDNShortId = "dd319053")]
public static uint MAKESORTLCID(ushort lgid, ushort srtid, ushort ver) => MAKELCID(lgid, srtid) | (((uint)ver & 0xf) << 20);
public static uint MAKESORTLCID(ushort wLanguageID, ushort wSortID, ushort wSortVersion) => MAKELCID(wLanguageID, wSortID) | (((uint)wSortVersion & 0xf) << 20);
/// <summary>
/// Normalizes characters of a text string according to Unicode 4.0 TR#15. For more information, see Using Unicode Normalization to

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -1167,7 +1167,7 @@ namespace Vanara.PInvoke
// *psa, LONG *rgIndices, void *pv );
[DllImport(Lib.OleAut32, SetLastError = false, ExactSpelling = true)]
[PInvokeData("oleauto.h", MSDNShortId = "7c837b4f-d319-4d98-934a-b585fe521bf8")]
public static extern HRESULT SafeArrayPutElement(SafeSAFEARRAY psa, [MarshalAs(UnmanagedType.LPArray)] int[] rgIndicies, [In] IntPtr pv);
public static extern HRESULT SafeArrayPutElement(SafeSAFEARRAY psa, [MarshalAs(UnmanagedType.LPArray)] int[] rgIndices, [In] IntPtr pv);
/// <summary>
/// <para>Changes the right-most (least significant) bound of the specified safe array.</para>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -164,7 +164,7 @@ namespace Vanara.PInvoke
}
/// <summary>
/// Used by the <see cref="ChangeServiceConfig(IntPtr,ServiceTypes,ServiceStartType,ServiceErrorControlType,string,string,IntPtr,char[],string,string,string)"/> function.
/// Used by the <see cref="ChangeServiceConfig(SC_HANDLE, ServiceTypes, ServiceStartType, ServiceErrorControlType, string, string, out uint, string, string, string, string)"/> function.
/// </summary>
public enum ServiceStartType : uint
{
@ -188,7 +188,7 @@ namespace Vanara.PInvoke
}
/// <summary>
/// Used by the <see cref="ChangeServiceConfig(IntPtr,ServiceTypes,ServiceStartType,ServiceErrorControlType,string,string,IntPtr,char[],string,string,string)"/> function.
/// Used by the <see cref="ChangeServiceConfig(SC_HANDLE, ServiceTypes, ServiceStartType, ServiceErrorControlType, string, string, out uint, string, string, string, string)"/> function.
/// </summary>
[Flags]
public enum ServiceTypes : uint

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -18,7 +18,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -11,7 +11,7 @@
<RootNamespace>Vanara.PInvoke</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<RepositoryType>Git</RepositoryType>

View File

@ -14,7 +14,7 @@
<RootNamespace>Vanara.Security</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<PackageTags>pinvoke vanara net-extensions interop</PackageTags>

View File

@ -14,7 +14,7 @@
<RootNamespace>Vanara.Extensions</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<PackageTags>pinvoke vanara net-extensions interop</PackageTags>

View File

@ -14,7 +14,7 @@
<RootNamespace>Vanara.Windows.Forms</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<PackageTags>pinvoke vanara net-extensions interop</PackageTags>

View File

@ -14,7 +14,7 @@
<RootNamespace>Vanara.Windows.Shell</RootNamespace>
<Authors>David Hall</Authors>
<PackageProjectUrl>https://github.com/dahall/vanara</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/dahall/vanara/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/Vanara48x48.png</PackageIconUrl>
<RepositoryUrl>https://github.com/dahall/vanara</RepositoryUrl>
<PackageTags>pinvoke vanara net-extensions interop</PackageTags>