src/CustomActions/SystemTools/Win32Impl.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 using namespace AppSecInc::Msi::Flags;
00004 
00005 typedef enum e_Win32CopyFile_Overwrite
00006 {
00007     WIN32COPYFILE_OVERWRITEYES = 0,
00008     WIN32COPYFILE_OVERWRITENO = 1,
00009     WIN32COPYFILE_OVERWRITEERROR = 2
00010 };
00011 
00012 static const FlagMapEntry s_Win32CopyFile_Overwrite[] = 
00013 {
00014     { L"", WIN32COPYFILE_OVERWRITEYES },
00015     { L"yes", WIN32COPYFILE_OVERWRITEYES },
00016     { L"no", WIN32COPYFILE_OVERWRITENO },
00017     { L"error", WIN32COPYFILE_OVERWRITEERROR },
00018 };
00019 
00030 CA_API UINT __stdcall Win32_CopyFile(MSIHANDLE hInstall);
00031 
00042 CA_API UINT __stdcall Win32_MoveFile(MSIHANDLE hInstall);
00043 
00052 CA_API UINT __stdcall Win32_DeleteFile(MSIHANDLE hInstall);
00053 
00060 CA_API UINT __stdcall Win32_CreateDirectory(MSIHANDLE hInstall);
00061 
00067 CA_API UINT __stdcall Win32_DeleteDirectory(MSIHANDLE hInstall);
00068 
00074 CA_API UINT __stdcall Win32_CopyFiles_Immediate(MSIHANDLE hInstall);
00075 CA_API UINT __stdcall Win32_CopyFiles_Deferred(MSIHANDLE hInstall);
00076 
00082 CA_API UINT __stdcall Win32_MoveFiles_Immediate(MSIHANDLE hInstall);
00083 CA_API UINT __stdcall Win32_MoveFiles_Deferred(MSIHANDLE hInstall);
00084 
00090 CA_API UINT __stdcall Win32_DeleteFiles_Immediate(MSIHANDLE hInstall);
00091 CA_API UINT __stdcall Win32_DeleteFiles_Deferred(MSIHANDLE hInstall);
00092 
00098 CA_API UINT __stdcall Win32_Execute_Immediate(MSIHANDLE hInstall);
00099 
00105 CA_API UINT __stdcall Win32_Execute_Deferred(MSIHANDLE hInstall);
00106 
00112 CA_API UINT __stdcall Win32_Execute_Rollback(MSIHANDLE hInstall);
00113 
00114 static const FlagMapEntry s_Win32GetFileSize_Format[] = 
00115 {
00116     { L"", (WORD) AppSecInc::File::FILESIZE_AUTO }, 
00117     { L"AUTO", (WORD) AppSecInc::File::FILESIZE_AUTO }, 
00118     { L"BYTES", (WORD) AppSecInc::File::FILESIZE_BYTES }, 
00119     { L"KB", (WORD) AppSecInc::File::FILESIZE_KBYTES }, 
00120     { L"MB", (WORD) AppSecInc::File::FILESIZE_MBYTES }, 
00121     { L"GB", (WORD) AppSecInc::File::FILESIZE_GBYTES }, 
00122 };
00123 
00148 CA_API UINT __stdcall Win32_GetFileSize(MSIHANDLE hInstall);
00149 
00167 CA_API UINT __stdcall Win32_FileExists(MSIHANDLE hInstall);
00168 
00179 CA_API UINT __stdcall Win32_GetParentDirectory(MSIHANDLE hInstall);
00180 
00188 CA_API UINT __stdcall Win32_ReadFile(MSIHANDLE hInstall);
00189 
00196 CA_API UINT __stdcall Win32_WriteFile(MSIHANDLE hInstall);
00197 
00204 CA_API UINT __stdcall Win32_GetSpecialFolderPath(MSIHANDLE hInstall);


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