I'm trying to use the windowsIdentity function to get the name...but I can't get the syntax right
here's the little I've been able to figure out from the MSDN library...
Expand|Select|Wrap|Line Numbers
- // This is the main project file for VC++ application project
- // generated using an Application Wizard.
- #include "stdafx.h"
- #include <cstring>
- #include <iostream>
- #include <iomanip>
- #include <assert.h>
- #include <fstream>
- #include <math.h>
- #include <time.h>
- #include <stdlib.h>
- #include <conio.h>
- #include <stdio.h>
- using namespace std;
- #using <mscorlib.dll>
- using namespace System;
- //using namespace System.Security.Principal;
- public:
- virtual property String^ Name {
- String^ get ();
- }
- int _tmain()
- {
- propertyDescription = String::Concat( propertyDescription, windowsIdentity->Name );
- return 0;