diff --git a/PInvoke/Kernel32/FileApi.cs b/PInvoke/Kernel32/FileApi.cs
index 4edac206..43e872d7 100644
--- a/PInvoke/Kernel32/FileApi.cs
+++ b/PInvoke/Kernel32/FileApi.cs
@@ -16,6 +16,17 @@ namespace Vanara.PInvoke
/// Fields, enums, functions and structures for kernel32.dll.
public static partial class Kernel32
{
+ /// Create new if one does not already exist.
+ [PInvokeData("fileapi.h")] public const uint CREATE_NEW = 1;
+ /// Always create new, overwriting any existing.
+ [PInvokeData("fileapi.h")] public const uint CREATE_ALWAYS = 2;
+ /// Open existing.
+ [PInvokeData("fileapi.h")] public const uint OPEN_EXISTING = 3;
+ /// Alway open, creating new if doesn't exist.
+ [PInvokeData("fileapi.h")] public const uint OPEN_ALWAYS = 4;
+ /// Truncate existing.
+ [PInvokeData("fileapi.h")] public const uint TRUNCATE_EXISTING = 5;
+
/// A value returned when invalid file attributes are found.
[PInvokeData("fileapi.h")] public const int INVALID_FILE_ATTRIBUTES = -2;
/// A value returned by when the function fails.