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

Target minimal API Sets version for AdvApi32 #87

Merged
merged 3 commits into from
Nov 29, 2015

Conversation

jmelosegui
Copy link
Collaborator

Work for #84

private const string api_ms_win_core_processthreads_l1_1_1 = nameof(AdvApi32);
private const string api_ms_win_security_base_l1_2_0 = nameof(AdvApi32);
private const string api_ms_win_service_winsvc_l1_2_0 = nameof(AdvApi32);
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should you add this after the #endif?

#pragma warning restore SA1303 // Const field names must begin with upper-case letter

@AArnott
Copy link
Collaborator

AArnott commented Nov 29, 2015

Looks really good. Thanks.
Just fix the build break and comments, then feel free to merge.

@AArnott
Copy link
Collaborator

AArnott commented Nov 29, 2015

BTW, I found some value in the fact that the Kernel32 unit test projects had a desktop and profile92 version so that both APISets and kernel32.dll methods were exercised. Should we do that here as well?

@jmelosegui
Copy link
Collaborator Author

I would do it as soon as we have at least one unit test. My concern here is why we don't have unit tests.

Regarding windows services.

  • PInvoke against windows services tests would involve create a service (and builds with elevated privileges)
  • What else could we test here, the helper methods?

jmelosegui added a commit that referenced this pull request Nov 29, 2015
Target minimal API Sets version for AdvApi32
@jmelosegui jmelosegui merged commit 139ee74 into dotnet:master Nov 29, 2015
@jmelosegui jmelosegui deleted the AdvApi32_ApiSets branch November 29, 2015 16:24
@AArnott
Copy link
Collaborator

AArnott commented Nov 29, 2015

Fair point on the tests.

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.

None yet

2 participants