diff --git a/APETagsDotNet/APETagsDotNet.cpp b/APETagsDotNet/APETagsDotNet.cpp deleted file mode 100644 index e10211d..0000000 --- a/APETagsDotNet/APETagsDotNet.cpp +++ /dev/null @@ -1,6 +0,0 @@ -// This is the main DLL file. - -#include "stdafx.h" - -#include "APETagsDotNet.h" - diff --git a/APETagsDotNet/APETagsDotNet.h b/APETagsDotNet/APETagsDotNet.h deleted file mode 100644 index bd87926..0000000 --- a/APETagsDotNet/APETagsDotNet.h +++ /dev/null @@ -1,158 +0,0 @@ -// APETagsDotNet.h - -#pragma once - -using namespace System; -using namespace System::Runtime::InteropServices; - -#include - -/***************************************************************************************** -The version of the APE tag -*****************************************************************************************/ -#define CURRENT_APE_TAG_VERSION 2000 - -/***************************************************************************************** -Footer (and header) flags -*****************************************************************************************/ -#define APE_TAG_FLAG_CONTAINS_HEADER (1 << 31) -#define APE_TAG_FLAG_CONTAINS_FOOTER (1 << 30) -#define APE_TAG_FLAG_IS_HEADER (1 << 29) - -#define APE_TAG_FLAGS_DEFAULT (APE_TAG_FLAG_CONTAINS_FOOTER) - -/***************************************************************************************** -Tag field flags -*****************************************************************************************/ -#define TAG_FIELD_FLAG_READ_ONLY (1 << 0) - -#define TAG_FIELD_FLAG_DATA_TYPE_MASK (6) -#define TAG_FIELD_FLAG_DATA_TYPE_TEXT_UTF8 (0 << 1) -#define TAG_FIELD_FLAG_DATA_TYPE_BINARY (1 << 1) -#define TAG_FIELD_FLAG_DATA_TYPE_EXTERNAL_INFO (2 << 1) -#define TAG_FIELD_FLAG_DATA_TYPE_RESERVED (3 << 1) - -/***************************************************************************************** -The footer at the end of APE tagged files (can also optionally be at the front of the tag) -*****************************************************************************************/ -#define APE_TAG_FOOTER_BYTES 32 - -namespace APETagsDotNet { - - ref class APE_TAG_FOOTER - { - protected: - - String^ m_cID; // should equal 'APETAGEX' - int m_nVersion; // equals CURRENT_APE_TAG_VERSION - int m_nSize; // the complete size of the tag, including this footer (excludes header) - int m_nFields; // the number of fields in the tag - int m_nFlags; // the tag flags - array^ m_cReserved; // reserved for later use (must be zero) - - public: - - APE_TAG_FOOTER(int nFields, int nFieldBytes) - { - //TODO - //m_cID = gcnew array (8); - //Marshal::Copy (m_cID, 0, (IntPtr) "APETAGEX", 8); - m_cID = gcnew String ("APETAGEX"); - m_cReserved = gcnew array (8); - //TODO - //memset(m_cReserved, 0, 8); - m_nFields = nFields; - m_nFlags = APE_TAG_FLAGS_DEFAULT; - m_nSize = nFieldBytes + APE_TAG_FOOTER_BYTES; - m_nVersion = CURRENT_APE_TAG_VERSION; - } - - property Int32 TotalTagBytes { Int32 get() { return m_nSize + (HasHeader ? APE_TAG_FOOTER_BYTES : 0); } } - property Int32 FieldBytes { Int32 get() { return m_nSize - APE_TAG_FOOTER_BYTES; } } - property Int32 FieldsOffset { Int32 get() { return HasHeader ? APE_TAG_FOOTER_BYTES : 0; } } - property Int32 NumberFields { Int32 get() { return m_nFields; } } - property bool HasHeader { bool get() { return (m_nFlags & APE_TAG_FLAG_CONTAINS_HEADER) != 0; } } - property bool IsHeader { bool get() { return (m_nFlags & APE_TAG_FLAG_IS_HEADER) != 0; } } - property Int32 Version { Int32 get() { return m_nVersion; } } - - bool GetIsValid (bool bAllowHeader) - { - //TODO - return //(strncmp(m_cID, "APETAGEX", 8) == 0) && - (m_nVersion <= CURRENT_APE_TAG_VERSION) && - (m_nFields <= 65536) && - (FieldBytes <= (1024 * 1024 * 16)) && - (bAllowHeader || !IsHeader); - } - }; - - - public ref class APETagField - { - public: - // create a tag field (use nFieldBytes = -1 for null-terminated strings) - APETagField (String^ fieldName, array^ fieldValue, int fieldFlags) { - _fieldName = fieldName; - _fieldValue = fieldValue; - _fieldFlags = fieldFlags; - } - - // destructor - ~APETagField() { - } - - // gets the size of the entire field in bytes (name, value, and metadata) - int GetFieldSize() - { - return _fieldName->Length + 1 + _fieldValue->Length + 4 + 4; - } - - // get the name of the field - property String^ FieldName { - String ^ get() { return _fieldName; } - } - - // get the value of the field - property array^ FieldValue { - array^ get() { return _fieldValue; } - } - - // output the entire field to a buffer (GetFieldSize() bytes) - int SaveField(char * pBuffer) - { - //TODO - //*((int *) pBuffer) = m_nFieldValueBytes; - //pBuffer += 4; - //*((int *) pBuffer) = m_nFieldFlags; - //pBuffer += 4; - // - //CSmartPtr spFieldNameANSI((char *) GetANSIFromUTF16(m_spFieldNameUTF16), TRUE); - //strcpy(pBuffer, spFieldNameANSI); - //pBuffer += strlen(spFieldNameANSI) + 1; - - //memcpy(pBuffer, m_spFieldValue, m_nFieldValueBytes); - - return GetFieldSize(); - } - - // checks to see if the field is read-only - property bool IsReadOnly { bool get() { return (_fieldFlags & TAG_FIELD_FLAG_READ_ONLY) != 0; } } - property bool IsUTF8Text { bool get() { return (_fieldFlags & TAG_FIELD_FLAG_DATA_TYPE_MASK) == TAG_FIELD_FLAG_DATA_TYPE_TEXT_UTF8; } } - - // set helpers (use with EXTREME caution) - property Int32 FieldFlags { - Int32 get() { return _fieldFlags; } - void set(Int32 fieldFlags) { _fieldFlags = fieldFlags; } - } - - private: - String^ _fieldName; - array^ _fieldValue; - int _fieldFlags; - int _fieldValueBytes; - }; - - public ref class APETagsDotNet - { - }; -} diff --git a/APETagsDotNet/APETagsDotNet.vcproj b/APETagsDotNet/APETagsDotNet.vcproj deleted file mode 100644 index b2eaf26..0000000 --- a/APETagsDotNet/APETagsDotNet.vcproj +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/APETagsDotNet/AssemblyInfo.cpp b/APETagsDotNet/AssemblyInfo.cpp deleted file mode 100644 index 74164b1..0000000 --- a/APETagsDotNet/AssemblyInfo.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "stdafx.h" - -using namespace System; -using namespace System::Reflection; -using namespace System::Runtime::CompilerServices; -using namespace System::Runtime::InteropServices; -using namespace System::Security::Permissions; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly:AssemblyTitleAttribute("APETagsDotNet")]; -[assembly:AssemblyDescriptionAttribute("")]; -[assembly:AssemblyConfigurationAttribute("")]; -[assembly:AssemblyCompanyAttribute("Microsoft")]; -[assembly:AssemblyProductAttribute("APETagsDotNet")]; -[assembly:AssemblyCopyrightAttribute("Copyright (c) Microsoft 2008")]; -[assembly:AssemblyTrademarkAttribute("")]; -[assembly:AssemblyCultureAttribute("")]; - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the value or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly:AssemblyVersionAttribute("1.0.*")]; - -[assembly:ComVisible(false)]; - -[assembly:CLSCompliantAttribute(true)]; - -[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)]; diff --git a/APETagsDotNet/ReadMe.txt b/APETagsDotNet/ReadMe.txt deleted file mode 100644 index a7a9a18..0000000 --- a/APETagsDotNet/ReadMe.txt +++ /dev/null @@ -1,31 +0,0 @@ -======================================================================== - DYNAMIC LINK LIBRARY : APETagsDotNet Project Overview -======================================================================== - -AppWizard has created this APETagsDotNet DLL for you. - -This file contains a summary of what you will find in each of the files that -make up your APETagsDotNet application. - -APETagsDotNet.vcproj - This is the main project file for VC++ projects generated using an Application Wizard. - It contains information about the version of Visual C++ that generated the file, and - information about the platforms, configurations, and project features selected with the - Application Wizard. - -APETagsDotNet.cpp - This is the main DLL source file. - -APETagsDotNet.h - This file contains a class declaration. - -AssemblyInfo.cpp - Contains custom attributes for modifying assembly metadata. - -///////////////////////////////////////////////////////////////////////////// -Other notes: - -AppWizard uses "TODO:" to indicate parts of the source code you -should add to or customize. - -///////////////////////////////////////////////////////////////////////////// diff --git a/APETagsDotNet/Stdafx.cpp b/APETagsDotNet/Stdafx.cpp deleted file mode 100644 index 8d546b7..0000000 --- a/APETagsDotNet/Stdafx.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// APETagsDotNet.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" diff --git a/APETagsDotNet/Stdafx.h b/APETagsDotNet/Stdafx.h deleted file mode 100644 index 2e525d4..0000000 --- a/APETagsDotNet/Stdafx.h +++ /dev/null @@ -1,7 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, -// but are changed infrequently - -#pragma once - - diff --git a/APETagsDotNet/app.ico b/APETagsDotNet/app.ico deleted file mode 100644 index 3a5525f..0000000 Binary files a/APETagsDotNet/app.ico and /dev/null differ diff --git a/APETagsDotNet/app.rc b/APETagsDotNet/app.rc deleted file mode 100644 index bb5fb6f..0000000 --- a/APETagsDotNet/app.rc +++ /dev/null @@ -1,63 +0,0 @@ -// Microsoft Visual C++ generated resource script. -// -#include "resource.h" - -#define APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources - - -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// - -// Icon placed first or with lowest ID value becomes application icon - -LANGUAGE 25, 1 -#pragma code_page(1251) -1 ICON "app.ico" - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -1 TEXTINCLUDE -BEGIN - "resource.h\0" - "\0" -END - -2 TEXTINCLUDE -BEGIN - "#include ""afxres.h""\r\n" - "\0" -END - -3 TEXTINCLUDE -BEGIN - "\0" -END - -#endif // APSTUDIO_INVOKED - -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/APETagsDotNet/resource.h b/APETagsDotNet/resource.h deleted file mode 100644 index 1f2251c..0000000 --- a/APETagsDotNet/resource.h +++ /dev/null @@ -1,3 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by app.rc