Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
578 B

  1. #include "PreComp.h"
  2. #include <locks.h>
  3. struct SDDL
  4. {
  5. typedef BOOL (*function_type)( LPCTSTR, DWORD, PSECURITY_DESCRIPTOR *, PULONG);
  6. function_type current_function_;
  7. CriticalSection lock_;
  8. SDDL():lock_(false), current_function_(0){};
  9. static BOOL ConvertStringSecurityDescriptorToSecurityDescriptor( LPCTSTR, DWORD, PSECURITY_DESCRIPTOR *, PULONG);
  10. static BOOL DummyConvertStringSecurityDescriptorToSecurityDescriptor( LPCTSTR, DWORD, PSECURITY_DESCRIPTOR *, PULONG);
  11. function_type GetFunction(void);
  12. static bool hasSDDLSupport();
  13. };