Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Usable changes from #21 #60

Merged
merged 9 commits into from
Jul 8, 2018
Merged

Usable changes from #21 #60

merged 9 commits into from
Jul 8, 2018

Conversation

DonatJR
Copy link
Contributor

@DonatJR DonatJR commented Jul 7, 2018

This is the good (read: usable) stuff from #21 - just some minor refactoring and simplification (don't be alarmed by the amount of changed files, it is just asio again because I renamed the network project)

@bencikpeter I added your token lib to the SharedFunctionality project and had to edit the tokenLib.cpp file to get it compile clean:

  • changed one instance of wprintf to printf because param was char *
  • linked Wtsapi32.lib
  • removed unnecessary headers (a few of them triggered macro redefinition warnings and we treat warnings as errors)

Not sure why it is not compiling on AppVeyor yet, will have a look tomorrow...

@DonatJR DonatJR requested review from SailReal and baWedekind July 7, 2018 22:49
@DonatJR DonatJR changed the title WIP: Usable changes from #21 Usable changes from #21 Jul 7, 2018
Copy link
Contributor

@SailReal SailReal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wooooow, thx for the awesome work 🎉 !
Looks impressive and super clean.

const int work_area_width,
const std::wstring &desktop_name)
: full_work_area(work_area_width)
{
old_desktop = ::GetThreadDesktop(GetCurrentThreadId());


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the new line intentional?


// EXPLICIT_ACCESS with second ACE for admin group
explicit_access_admin.grfAccessPermissions = GENERIC_ALL;
explicit_access_admin.grfAccessMode = SET_ACCESS; //DENY_ACCES
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SET_ACCESS means DENY_ACCESS or should it be DENY_ACCESS and with that it isn't working?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line was like this from the beginning, it does get changed with #13

const char ADDITIONAL_APPLICATION_PATH_PROPERTY[] = "additional_application_path";
const char CLOSING_POLICY_PROPERTY[] = "restrict_closing";

void TrimMessage(std::wstring &msg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are TrimMessage and BeginsWith not in the namespace of SharedFunctions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because they are not used anywhere but in this file

Copy link
Contributor

@SailReal SailReal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems to work as before 👍

@DonatJR DonatJR merged commit 1767746 into develop Jul 8, 2018
@DonatJR DonatJR deleted the good-stuff-from-21 branch July 8, 2018 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants