LSAUnicodeString.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc {
4 namespace LSA {
5 
11 {
12 private:
13  std::wstring m_s;
14  LSA_UNICODE_STRING m_us;
16  LSAUnicodeString& operator= (const LSAUnicodeString& ) { };
17 public:
19  LSAUnicodeString(LPCWSTR lpwz);
20  LSAUnicodeString(const std::wstring& w);
21  LSAUnicodeString& operator=(LPCWSTR lpwz);
22  LSAUnicodeString& operator=(const std::wstring& s);
23  PLSA_UNICODE_STRING operator& () { return & m_us; }
24  const LSA_UNICODE_STRING& operator() () const { return m_us; }
25  int Length() const { return m_us.Length; }
26  int MaximumLength() const { return m_us.MaximumLength; }
27 };
28 
29 }}
30 
Local storage for an LSA Unicode String. This is only used as an IN string to LSA functions...
Definition: LSAUnicodeString.h:10
LSAUnicodeString()
Definition: LSAUnicodeString.cpp:6
const LSA_UNICODE_STRING & operator()() const
Definition: LSAUnicodeString.h:24
PLSA_UNICODE_STRING operator&()
Definition: LSAUnicodeString.h:23
int MaximumLength() const
Definition: LSAUnicodeString.h:26
int Length() const
Definition: LSAUnicodeString.h:25


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com