src/Common/Lsa/LSAUnicodeString.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc {
00004 namespace LSA {
00005         
00010 class LSAUnicodeString
00011 {
00012 private:
00013         std::wstring m_s;
00014         LSA_UNICODE_STRING m_us;
00015         LSAUnicodeString(const LSAUnicodeString& ) { };
00016         LSAUnicodeString& operator= (const LSAUnicodeString& ) { };
00017 public:
00018         LSAUnicodeString();
00019         LSAUnicodeString(LPCWSTR lpwz);
00020         LSAUnicodeString(const std::wstring& w);
00021         LSAUnicodeString& operator=(LPCWSTR lpwz);
00022         LSAUnicodeString& operator=(const std::wstring& s);
00023         PLSA_UNICODE_STRING operator& () { return & m_us; }
00024         const LSA_UNICODE_STRING& operator() () const { return m_us; }
00025         int Length() const { return m_us.Length; }
00026         int MaximumLength() const { return m_us.MaximumLength; }
00027 };
00028 
00029 }}
00030 


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