Revert "Merged all Chromoting Host code into remoting_core.dll (Windows)."
[chromium-blink-merge.git] / remoting / host / win / security_descriptor.h
blob98713f8f26c67877ed5bb3a273c32a8c52906ee0
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_
6 #define REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_
8 #include <windows.h>
10 #include <string>
12 #include "remoting/base/typed_buffer.h"
14 namespace remoting {
16 typedef TypedBuffer<SECURITY_DESCRIPTOR> ScopedSd;
17 typedef TypedBuffer<SID> ScopedSid;
19 // Converts an SDDL string into a binary self-relative security descriptor.
20 ScopedSd ConvertSddlToSd(const std::string& sddl);
22 // Converts a SID into a text string.
23 std::string ConvertSidToString(SID* sid);
25 // Returns the logon SID of a token. Returns NULL if the token does not specify
26 // a logon SID or in case of an error.
27 ScopedSid GetLogonSid(HANDLE token);
29 } // namespace remoting
31 #endif // REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_