Author: ashaposhnikov
Date: Sun Sep 10 17:33:14 2017
New Revision: 75820
URL:
http://svn.reactos.org/svn/reactos?rev=75820&view=rev
Log:
[RAPPS] Moved cabinet.dll related definitions to separate header
Added:
branches/GSoC_2017/rapps/reactos/base/applications/rapps/include/cabinet.h (with
props)
Modified:
branches/GSoC_2017/rapps/reactos/base/applications/rapps/CMakeLists.txt
branches/GSoC_2017/rapps/reactos/base/applications/rapps/misc.cpp
Modified: branches/GSoC_2017/rapps/reactos/base/applications/rapps/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2017/rapps/reactos/base/ap…
==============================================================================
--- branches/GSoC_2017/rapps/reactos/base/applications/rapps/CMakeLists.txt [iso-8859-1]
(original)
+++ branches/GSoC_2017/rapps/reactos/base/applications/rapps/CMakeLists.txt [iso-8859-1]
Sun Sep 10 17:33:14 2017
@@ -22,6 +22,7 @@
include/gui.h
include/dialogs.h
include/installed.h
+ include/cabinet.h
include/crichedit.h
include/defines.h
include/misc.h
Added: branches/GSoC_2017/rapps/reactos/base/applications/rapps/include/cabinet.h
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2017/rapps/reactos/base/ap…
==============================================================================
--- branches/GSoC_2017/rapps/reactos/base/applications/rapps/include/cabinet.h (added)
+++
branches/GSoC_2017/rapps/reactos/base/applications/rapps/include/cabinet.h [iso-8859-1]
Sun Sep 10 17:33:14 2017
@@ -0,0 +1,32 @@
+// Structs related to .cab extraction
+// FIXME: they should belong to exports of cabinet.dll
+#pragma once
+
+struct ERF
+{
+ INT erfOper;
+ INT erfType;
+ BOOL fError;
+};
+
+struct FILELIST
+{
+ LPSTR FileName;
+ FILELIST *next;
+ BOOL DoExtract;
+};
+
+struct SESSION
+{
+ INT FileSize;
+ ERF Error;
+ FILELIST *FileList;
+ INT FileCount;
+ INT Operation;
+ CHAR Destination[MAX_PATH];
+ CHAR CurrentFile[MAX_PATH];
+ CHAR Reserved[MAX_PATH];
+ FILELIST *FilterList;
+};
+
+typedef HRESULT(WINAPI *fnExtract)(SESSION *dest, LPCSTR szCabName);
Propchange: branches/GSoC_2017/rapps/reactos/base/applications/rapps/include/cabinet.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: branches/GSoC_2017/rapps/reactos/base/applications/rapps/misc.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2017/rapps/reactos/base/ap…
==============================================================================
--- branches/GSoC_2017/rapps/reactos/base/applications/rapps/misc.cpp [iso-8859-1]
(original)
+++ branches/GSoC_2017/rapps/reactos/base/applications/rapps/misc.cpp [iso-8859-1] Sun Sep
10 17:33:14 2017
@@ -11,42 +11,13 @@
#include "gui.h"
#include "misc.h"
+#include "cabinet.h"
/* SESSION Operation */
#define EXTRACT_FILLFILELIST 0x00000001
#define EXTRACT_EXTRACTFILES 0x00000002
static HANDLE hLog = NULL;
-
-struct ERF
-{
- INT erfOper;
- INT erfType;
- BOOL fError;
-};
-
-struct FILELIST
-{
- LPSTR FileName;
- FILELIST *next;
- BOOL DoExtract;
-};
-
-struct SESSION
-{
- INT FileSize;
- ERF Error;
- FILELIST *FileList;
- INT FileCount;
- INT Operation;
- CHAR Destination[MAX_PATH];
- CHAR CurrentFile[MAX_PATH];
- CHAR Reserved[MAX_PATH];
- FILELIST *FilterList;
-};
-
-typedef HRESULT(WINAPI *fnExtract)(SESSION *dest, LPCSTR szCabName);
-fnExtract pfnExtract;
INT GetWindowWidth(HWND hwnd)
{
@@ -243,7 +214,8 @@
CHAR szCabName[MAX_PATH];
SESSION Dest;
HRESULT Result;
-
+ fnExtract pfnExtract;
+
hCabinetDll = LoadLibraryW(L"cabinet.dll");
if (hCabinetDll)
{