Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Is Windows Genuine Check #212

Merged
merged 2 commits into from
Jun 4, 2020
Merged

Add Is Windows Genuine Check #212

merged 2 commits into from
Jun 4, 2020

Conversation

ayoubfaouzi
Copy link
Owner

No description provided.

@ayoubfaouzi
Copy link
Owner Author

#211

hResult = SLIsGenuineLocal(&AppId, &GenuineState, NULL);

if (hResult == S_OK) {
if (GenuineState != SL_GEN_STATE_IS_GENUINE) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps you mean if (GenuineState == SL_GEN_STATE_IS_GENUINE) as function named IsWindowsGenuine()

Copy link
Owner Author

Choose a reason for hiding this comment

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

True, I have to rename the function as we want to return TRUE if a virtualized env is detected. I will change that.

@ayoubfaouzi ayoubfaouzi merged commit 8c7a5f3 into master Jun 4, 2020
fengjixuchui added a commit to fengjixuchui/al-khaser that referenced this pull request Jun 5, 2020
Merge pull request ayoubfaouzi#212 from LordNoteworthy/Noteworthy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants