Win32Impl.h
Go to the documentation of this file.
1 #pragma once
2 
3 using namespace AppSecInc::Msi::Flags;
4 
6 {
10 };
11 
12 static const FlagMapEntry s_Win32CopyFile_Overwrite[] =
13 {
15  { L"yes", WIN32COPYFILE_OVERWRITEYES },
16  { L"no", WIN32COPYFILE_OVERWRITENO },
17  { L"error", WIN32COPYFILE_OVERWRITEERROR },
18 };
19 
30 CA_API UINT __stdcall Win32_CopyFile(MSIHANDLE hInstall);
31 
42 CA_API UINT __stdcall Win32_MoveFile(MSIHANDLE hInstall);
43 
52 CA_API UINT __stdcall Win32_DeleteFile(MSIHANDLE hInstall);
53 
60 CA_API UINT __stdcall Win32_CreateDirectory(MSIHANDLE hInstall);
61 
67 CA_API UINT __stdcall Win32_DeleteDirectory(MSIHANDLE hInstall);
68 
74 CA_API UINT __stdcall Win32_CopyFiles_Immediate(MSIHANDLE hInstall);
75 CA_API UINT __stdcall Win32_CopyFiles_Deferred(MSIHANDLE hInstall);
76 
82 CA_API UINT __stdcall Win32_MoveFiles_Immediate(MSIHANDLE hInstall);
83 CA_API UINT __stdcall Win32_MoveFiles_Deferred(MSIHANDLE hInstall);
84 
90 CA_API UINT __stdcall Win32_DeleteFiles_Immediate(MSIHANDLE hInstall);
91 CA_API UINT __stdcall Win32_DeleteFiles_Deferred(MSIHANDLE hInstall);
92 
98 CA_API UINT __stdcall Win32_Execute_Immediate(MSIHANDLE hInstall);
99 
105 CA_API UINT __stdcall Win32_Execute_Deferred(MSIHANDLE hInstall);
106 
112 CA_API UINT __stdcall Win32_Execute_Rollback(MSIHANDLE hInstall);
113 
114 static const FlagMapEntry s_Win32GetFileSize_Format[] =
115 {
116  { L"", (WORD) AppSecInc::File::FILESIZE_AUTO },
117  { L"AUTO", (WORD) AppSecInc::File::FILESIZE_AUTO },
118  { L"BYTES", (WORD) AppSecInc::File::FILESIZE_BYTES },
119  { L"KB", (WORD) AppSecInc::File::FILESIZE_KBYTES },
120  { L"MB", (WORD) AppSecInc::File::FILESIZE_MBYTES },
121  { L"GB", (WORD) AppSecInc::File::FILESIZE_GBYTES },
122 };
123 
148 CA_API UINT __stdcall Win32_GetFileSize(MSIHANDLE hInstall);
149 
167 CA_API UINT __stdcall Win32_FileExists(MSIHANDLE hInstall);
168 
179 CA_API UINT __stdcall Win32_GetParentDirectory(MSIHANDLE hInstall);
180 
188 CA_API UINT __stdcall Win32_ReadFile(MSIHANDLE hInstall);
189 
196 CA_API UINT __stdcall Win32_WriteFile(MSIHANDLE hInstall);
197 
204 CA_API UINT __stdcall Win32_GetSpecialFolderPath(MSIHANDLE hInstall);
CA_API UINT __stdcall Win32_GetParentDirectory(MSIHANDLE hInstall)
Get the parent directory.
Definition: Win32Impl.cpp:767
Definition: Win32Impl.h:7
CA_API UINT __stdcall Win32_GetFileSize(MSIHANDLE hInstall)
Get the size of a file.
Definition: Win32Impl.cpp:738
CA_API UINT __stdcall Win32_MoveFiles_Deferred(MSIHANDLE hInstall)
Definition: Win32Impl.cpp:268
CA_API UINT __stdcall Win32_GetSpecialFolderPath(MSIHANDLE hInstall)
Retrieves the path of a special folder, identified by its CSIDL.
Definition: Win32Impl.cpp:819
CA_API UINT __stdcall Win32_DeleteFiles_Immediate(MSIHANDLE hInstall)
Delete files. This is a table-driven custom action. Use in combination with AppSecInc.Wix.Extensions.SystemToolsExtension.
Definition: Win32Impl.cpp:552
Definition: Win32Impl.h:8
Definition: Win32Impl.h:9
byte(s)
Definition: File.h:142
CA_API UINT __stdcall Win32_MoveFile(MSIHANDLE hInstall)
Move a file.
Definition: Win32Impl.cpp:32
CA_API UINT __stdcall Win32_DeleteDirectory(MSIHANDLE hInstall)
Delete a directory with all subdirectories and files.
Definition: Win32Impl.cpp:72
Definition: MsiFlags.h:7
automatically adjust
Definition: File.h:141
CA_API UINT __stdcall Win32_DeleteFiles_Deferred(MSIHANDLE hInstall)
Definition: Win32Impl.cpp:468
#define CA_API
Definition: CaDeclSpecs.h:8
CA_API UINT __stdcall Win32_DeleteFile(MSIHANDLE hInstall)
Delete a file.
Definition: Win32Impl.cpp:60
Definition: File.h:140
CA_API UINT __stdcall Win32_CopyFiles_Immediate(MSIHANDLE hInstall)
Copy files. This is a table-driven custom action. Use in combination with AppSecInc.Wix.Extensions.SystemToolsExtension.
Definition: Win32Impl.cpp:226
CA_API UINT __stdcall Win32_CreateDirectory(MSIHANDLE hInstall)
Create a directory.
Definition: Win32Impl.cpp:84
CA_API UINT __stdcall Win32_MoveFiles_Immediate(MSIHANDLE hInstall)
Move files. This is a table-driven custom action. Use in combination with AppSecInc.Wix.Extensions.SystemToolsExtension.
Definition: Win32Impl.cpp:410
CA_API UINT __stdcall Win32_ReadFile(MSIHANDLE hInstall)
Read contents of an ANSI file into a property.
Definition: Win32Impl.cpp:807
Mb.
Definition: File.h:144
CA_API UINT __stdcall Win32_Execute_Rollback(MSIHANDLE hInstall)
Execute commands (rollback). This is a table-driven custom action. Use in combination with AppSecInc...
Definition: Win32Impl.cpp:668
Kb.
Definition: File.h:143
CA_API UINT __stdcall Win32_WriteFile(MSIHANDLE hInstall)
Write to an ANSI text file.
Definition: Win32Impl.cpp:778
CA_API UINT __stdcall Win32_CopyFiles_Deferred(MSIHANDLE hInstall)
Definition: Win32Impl.cpp:97
CA_API UINT __stdcall Win32_Execute_Immediate(MSIHANDLE hInstall)
Execute commands (immediate). This is a table-driven custom action. Use in combination with AppSecInc...
Definition: Win32Impl.cpp:610
CA_API UINT __stdcall Win32_CopyFile(MSIHANDLE hInstall)
Copy a file.
Definition: Win32Impl.cpp:5
e_Win32CopyFile_Overwrite
Definition: Win32Impl.h:5
CA_API UINT __stdcall Win32_Execute_Deferred(MSIHANDLE hInstall)
Execute commands (deferred). This is a table-driven custom action. Use in combination with AppSecInc...
Definition: Win32Impl.cpp:674
CA_API UINT __stdcall Win32_FileExists(MSIHANDLE hInstall)
Check if file exists.
Definition: Win32Impl.cpp:756


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com