Skip to content

Commit

Permalink
Add RectifyStart project
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaProductions committed Jan 5, 2024
1 parent a46b9cf commit 89409a2
Show file tree
Hide file tree
Showing 17 changed files with 743 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ x64/
/Rectify11Installer/Resources/Rectify11CPL.dll
Rectify11Installer/Resources/*.7z
*.tmp

*.user
!Resources
Resources/DoNotBuild.txt
19 changes: 19 additions & 0 deletions Rectify11Installer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rectify11Installer", "Rectify11Installer\Rectify11Installer.csproj", "{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}"
ProjectSection(ProjectDependencies) = postProject
{0B7DE49A-33C6-41B1-A9CE-D353031F8454} = {0B7DE49A-33C6-41B1-A9CE-D353031F8454}
{29613B61-DD82-42A1-AB39-E4FD35EADF6B} = {29613B61-DD82-42A1-AB39-E4FD35EADF6B}
{50A4AEC2-9A0D-4F1C-8F38-EE7542BBE81A} = {50A4AEC2-9A0D-4F1C-8F38-EE7542BBE81A}
EndProjectSection
EndProject
Expand All @@ -15,6 +16,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DirectUI", "RectifyControlP
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Rectify11CPL", "RectifyControlPanel2\Rectify11CPL\Rectify11CPL.vcxproj", "{50A4AEC2-9A0D-4F1C-8F38-EE7542BBE81A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RectifyStart", "RectifyStart\RectifyStart.vcxproj", "{29613B61-DD82-42A1-AB39-E4FD35EADF6B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -86,6 +89,22 @@ Global
{50A4AEC2-9A0D-4F1C-8F38-EE7542BBE81A}.Release|Win32.Build.0 = Release|Win32
{50A4AEC2-9A0D-4F1C-8F38-EE7542BBE81A}.Release|x64.ActiveCfg = Release|x64
{50A4AEC2-9A0D-4F1C-8F38-EE7542BBE81A}.Release|x64.Build.0 = Release|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|Any CPU.ActiveCfg = Debug|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|Any CPU.Build.0 = Debug|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|Mixed Platforms.ActiveCfg = Debug|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|Mixed Platforms.Build.0 = Debug|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|Win32.ActiveCfg = Debug|Win32
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|Win32.Build.0 = Debug|Win32
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|x64.ActiveCfg = Debug|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Debug|x64.Build.0 = Debug|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|Any CPU.ActiveCfg = Release|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|Any CPU.Build.0 = Release|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|Mixed Platforms.ActiveCfg = Release|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|Mixed Platforms.Build.0 = Release|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|Win32.ActiveCfg = Release|Win32
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|Win32.Build.0 = Release|Win32
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|x64.ActiveCfg = Release|x64
{29613B61-DD82-42A1-AB39-E4FD35EADF6B}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
10 changes: 10 additions & 0 deletions Rectify11Installer/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 11 additions & 8 deletions Rectify11Installer/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -29200,7 +29200,7 @@
<data name="iconnewtree" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAANsAAADTCAYAAAAI0GYtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
DQAACw0B7QfALAAAfFdJREFUeF7tvQm4ZVV17X9vXqIgSgERjREFe2lMUIMCojSidEoXsU0U/GtEoFqK
DAAACwwBP0AiyAAAfFdJREFUeF7tvQm4ZVV17X9vXqIgSgERjREFe2lMUIMCojSidEoXsU0U/GtEoFqK
ouhL897zvcSo7yUamyj4bBDpRGwQ1BIUsaEHwR5RAbGjU2OXu/9jzDXH3HOts8+tWzRVXLibb3xr7bX3
OdS9Z//umHOutfeZmNvmtrltbpvb5ra5bW6b2+a2uW1um9vmtrltbpvb7uq2YsVOEyveeMLEijeshK6D
ujndq3ULhM9qxdugrf1TnNvu1ZtBZoANfaBzmj0ieDv5pzq33au2FSs2gJO9deBDm9OsFj9TfLZz271k
Expand Down Expand Up @@ -29737,7 +29737,7 @@
<data name="U" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAQEAAAExCAYAAAB8lhdQAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vQAADr0BR/uQrQAAEhlJREFUeF7t3emLHNXbxvH6OxRcEEERBN8oCoqCLwQVF1zBFUXjvqEGt6jR4BKN
vAAADrwBlbxySQAAEhlJREFUeF7t3emLHNXbxvH6OxRcEEERBN8oCoqCLwQVF1zBFUXjvqEGt6jR4BKN
uMQ9btGoMRE1mIhb1GjUaNyNBpe4a8wyJmMWEM6P6/CcpqZTM/bEO/dTPff3wIdMV1VXhzP3ubqquqdO
tXLN+hTNqrUbtojVgxuBvlM1FTN609ShQL8hBP5PU+cAEVRNCwHEQQgAwRECQHCEABAcIQAERwgAwREC
QHCEABAcIQAERwgAwRECQHCEABAcIQAERwgAwRECQHCEABAcIQAERwgAwRECQHCEABAcIQAERwgAwREC
Expand Down Expand Up @@ -32533,7 +32533,7 @@
<data name="gadgets" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAANMAAAC6CAYAAAA0/HhLAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
DQAACw0B7QfALAAAfbVJREFUeF7tnQeYFMXWhn+VnGR3ATNiVswEASNGkJxz2pxzzrtszsQl5yA5J1EE
DAAACwwBP0AiyAAAfbVJREFUeF7tnQeYFMXWhn+VnGR3ATNiVswEASNGkJxz2pxzzrtszsQl5yA5J1EE
QTCAgCg5ZxAV9V7v1eu9ff5zTlX11Mw20QURp5/ne6qnu6ZnYOrd75zT1d3/9xdbbm3cuHHFBg0aVMH1
mvd16HX3y+8fzXn90/Mn3/j8Z3h90w+7X152IPHhLl734v7bUTWkal2o7z3v9uW+derUqUmidau+r6zY
n0B9XVxc+Lh169al497u9kb3e/S+LbW+tJ/6oiyP69C3luxreVz+Dqtsx6XPl9+hFvV9ddXBXP249G97
Expand Down Expand Up @@ -33075,7 +33075,7 @@
<data name="wallpapers" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAvMAAAHtCAYAAACUMfGhAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
DQAACw0B7QfALAAA/7JJREFUeF7svQe8JVWV7z9KztCCQJORIKigEhRMmEVUEMXsKGLEBAIdgW5yzjnn
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oGhJCENwmZQJKk
z/zSe2/wCFVJ1QJkWkLeIKRzZq299zn33Pvu+zITIdCT3olYsc817yXm/nLtve99576rPuqjPuqjPuqj
PuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqjPuqj
Expand Down Expand Up @@ -40742,7 +40742,7 @@
<data name="asdf" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAJEAAAB5CAYAAAA5z8PMAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
EAAACxABrSO9dQAAItNJREFUeF7tnQd4FVX6xocVRF0FLGthV81aEHVX2V1WXZd1wbIWVkBWcVWECCK9
DwAACw8BkvkDpQAAItNJREFUeF7tnQd4FVX6xocVRF0FLGthV81aEHVX2V1WXZd1wbIWVkBWcVWECCK9
SpEmofcO0oSE3qUYqmAoKsWCIKgrakBC6IYiISQk7//9zsy5nAwn5XKzJux/7vP8nrll7tybOb/7ft+Z
uVwcfdmzZ0/lH374IYGkEAQE5IJ4Eu2p414oULekpCQcOXIEKSkpOHr0aEBAjhw+fBjii3ijBEpMTIyW
OwJ5AsJBfBFv6E9lR6Lp0KFD1hUDAnJDEkn8EYmsKwQE5IWkEf1JCSQKiAjxJ5AoICICiQIiJpAoIGIC
Expand Down Expand Up @@ -40897,4 +40897,7 @@
<data name="NSudoL" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\NSudoL.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="RectifyStart" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RectifyStart.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
1 change: 1 addition & 0 deletions Rectify11Installer/Rectify11Installer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
<None Include="Resources\config1.txt" />
<None Include="Resources\config2.txt" />
<None Include="Resources\NSudoL.exe" />
<None Include="Resources\RectifyStart.exe" />
<Content Include="Resources\ResourceHacker.exe" />
<None Include="Resources\light.msstyles" />
<Content Include="r11.ico" />
Expand Down
Binary file added RectifyStart/RectifyStart.aps
Binary file not shown.
85 changes: 85 additions & 0 deletions RectifyStart/RectifyStart.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// RectifyStart.cpp : Defines the entry point for the application.
//

#include "framework.h"
#include "RectifyStart.h"
#include "..\RectifyControlPanel2\dui70\DirectUI\DirectUI.h"
#pragma comment(lib,"dui70.lib")
using namespace DirectUI;

#define MAX_LOADSTRING 100

// Global Variables:
HINSTANCE hInst; // current instance
WCHAR szTitle[MAX_LOADSTRING]; // The title bar text
WCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name

int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);

// Initialize global strings
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadStringW(hInstance, IDC_RECTIFYSTART, szWindowClass, MAX_LOADSTRING);

HRESULT hr = CoInitializeEx(NULL, 0);
if (FAILED(hr) && hr != ERROR_ALREADY_INITIALIZED)
{
return -1;
}

// Initialize DirectUI
InitProcessPriv(14, NULL, 0, true);
InitThread(2);
RegisterAllControls();

// Create the main window
NativeHWNDHost* pwnd;
NativeHWNDHost::Create(
(UCString)L"Rectify11", NULL,
LoadIconW(hInstance, MAKEINTRESOURCE(IDI_RECTIFYSTART)),
600, 400, 800, 600,
WS_EX_WINDOWEDGE, WS_OVERLAPPEDWINDOW | WS_VISIBLE, 0, &pwnd);

// Create DirectUI Parser
DUIXmlParser* pParser;

DUIXmlParser::Create(&pParser, NULL, NULL, NULL, NULL);

pParser->SetParseErrorCallback(
[](UCString err1, UCString err2, int unk, void* ctx) {
MessageBox(NULL, std::format(L"err: {}; {}; {}\n", (LPCWSTR)err1, (LPCWSTR)err2, unk).c_str(),
L"Error while parsing DirectUI", S_OK);
DebugBreak();
}, NULL);

hr = pParser->SetXMLFromResource(IDR_UIFILE, hInstance, (HINSTANCE)hInstance);

unsigned long defer_key;
HWNDElement* hwnd_element;

HWNDElement::Create(pwnd->GetHWND(), true, 0, NULL, &defer_key, (Element**)&hwnd_element);

Element* pWizardMain;
hr = pParser->CreateElement((UCString)L"WizardMain", hwnd_element, NULL, NULL, (Element**)&pWizardMain);



pWizardMain->SetVisible(true);
pWizardMain->EndDefer(defer_key);
pwnd->Host(pWizardMain);

pwnd->ShowWindow(SW_SHOW);

// Start message loop
StartMessagePump();

// Exit
UnInitProcessPriv(NULL);
CoUninitialize();
return 0;
}
3 changes: 3 additions & 0 deletions RectifyStart/RectifyStart.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once

#include "resource.h"
Binary file added RectifyStart/RectifyStart.ico
Binary file not shown.
Binary file added RectifyStart/RectifyStart.rc
Binary file not shown.
Loading

0 comments on commit 89409a2

Please sign in to comment.