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

Fix wrong cloaking enum value for CoInitializeSecurity #1954

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions desktop-src/VSS/security-considerations-for-requestors.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Requesters can explicitly do the following:
RPC_C_AUTHN_LEVEL_PKT_PRIVACY, // DWORD dwAuthnLevel,
RPC_C_IMP_LEVEL_IMPERSONATE, // DWORD dwImpLevel,
NULL, // void *pAuthList,
EOAC_STATIC, // DWORD dwCapabilities,
EOAC_STATIC_CLOAKING, // DWORD dwCapabilities,
NULL // void *pReserved3
);
```
Expand All @@ -65,7 +65,7 @@ Requesters can explicitly do the following:

- Set the authentication level to at least **RPC\_C\_AUTHN\_LEVEL\_PKT\_INTEGRITY**. For better security, consider using **RPC\_C\_AUTHN\_LEVEL\_PKT\_PRIVACY**.
- Set the impersonation level to **RPC\_C\_IMP\_LEVEL\_IMPERSONATE**.
- Set the cloaking security capabilities to **EOAC\_STATIC**. For more information about cloaking security, see [Cloaking](../com/cloaking.md).
- Set the cloaking security capabilities to **EOAC\_STATIC\_CLOAKING**. For more information about cloaking security, see [Cloaking](../com/cloaking.md).

The following code example shows how a requester should call [**CoInitializeSecurity**](/windows/win32/api/combaseapi/nf-combaseapi-coinitializesecurity) in Windows 7 and Windows Server 2008 R2 and earlier (or in Windows 8 and Windows Server 2012 and later, if RVSS compatibility is not needed):

Expand Down