Home | History | Annotate | Download | only in win

Lines Matching defs:BSTR

19 // Manages a BSTR string pointer.
26 // Constructor to create a new BSTR.
28 // NOTE: Do not pass a BSTR to this constructor expecting ownership to
33 // Give ScopedBstr ownership over an already allocated BSTR or NULL.
34 // If you need to allocate a new BSTR instance, use |allocate| instead.
35 void Reset(BSTR bstr = NULL);
37 // Releases ownership of the BSTR to the caller.
38 BSTR Release();
40 // Creates a new BSTR from a 16-bit C-style string.
42 // If you already have a BSTR and want to transfer ownership to the
45 // Returns a pointer to the new BSTR, or NULL if allocation failed.
46 BSTR Allocate(const char16* str);
48 // Allocates a new BSTR with the specified number of bytes.
49 // Returns a pointer to the new BSTR, or NULL if allocation failed.
50 BSTR AllocateBytes(size_t bytes);
52 // Sets the allocated length field of the already-allocated BSTR to be
53 // |bytes|. This is useful when the BSTR was preallocated with e.g.
61 // NOTE: The actual allocated size of the BSTR MUST be >= bytes. That
71 // Usage: GetBstr(bstr.Receive());
72 BSTR* Receive();
74 // Returns number of chars in the BSTR.
77 // Returns the number of bytes allocated for the BSTR.
80 operator BSTR() const {
85 BSTR bstr_;
89 // BSTR owned by two different scoped_ptrs.