From 0a9baa43be7e76fec5749ef254cf499089fcf123 Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 13 Oct 2021 20:06:38 -0600 Subject: [PATCH] Added missing constants from lmaccess.h --- PInvoke/NetApi32/LmAccess.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PInvoke/NetApi32/LmAccess.cs b/PInvoke/NetApi32/LmAccess.cs index f51537c2..c9154169 100644 --- a/PInvoke/NetApi32/LmAccess.cs +++ b/PInvoke/NetApi32/LmAccess.cs @@ -8,12 +8,24 @@ namespace Vanara.PInvoke { public static partial class NetApi32 { + /// Represents the number of days in a week. + public const uint SAM_DAYS_PER_WEEK = 7; + + /// Represents the number of hours in a week. + public const uint SAM_HOURS_PER_WEEK = 24 * SAM_DAYS_PER_WEEK; + + /// Represents the number of minutes in a week. + public const uint SAM_MINUTES_PER_WEEK = 60 * SAM_HOURS_PER_WEEK; + /// The units per day public const uint UNITS_PER_DAY = 24; /// The units per week public const uint UNITS_PER_WEEK = UNITS_PER_DAY * 7; + /// Specify USER_MAXSTORAGE_UNLIMITED to use all available disk space. + public const uint USER_MAXSTORAGE_UNLIMITED = unchecked((uint)(-1)); + private const int ENCRYPTED_PWLEN = 16; /// A bitmask of flags that affect the operation.