Public Member Functions | Protected Attributes

UNC Struct Reference

#include <utility.h>

Collaboration diagram for UNC:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UNC (LPCSTR s)
 ~UNC ()
 operator LPCWSTR ()

Protected Attributes

LPWSTR _str

Detailed Description

Definition at line 935 of file utility.h.


Constructor & Destructor Documentation

UNC::UNC ( LPCSTR  s ) [inline]

Definition at line 937 of file utility.h.

    {
        int l = strlen(s) + 1;
        _str = (LPWSTR) malloc(2*l);

        if (_str && MultiByteToWideChar(CP_ACP, 0, s, -1, _str, l) <= 0)
            *_str = '\0';
    }
UNC::~UNC (  ) [inline]

Definition at line 946 of file utility.h.

    {
        free(_str);
    }

Member Function Documentation

UNC::operator LPCWSTR (  ) [inline]

Definition at line 951 of file utility.h.

{return _str;}

Member Data Documentation

LPWSTR UNC::_str [protected]

Definition at line 954 of file utility.h.


The documentation for this struct was generated from the following file:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage