|
List Info
Thread: how to retrieve min password length of local system which is not in network
|
|
| how to retrieve min password length of
local system which is not in network |
  United States |
2007-10-10 01:31:47 |
hi every body,
I am trying to retrieve the min password length of a local
system
which is not in network(purely a standalone system).
Here is my code:
CString ADSPath;
ADSPath=_T("WinNT://TS114"); //TS114 is my
computer name
IADsDomain *pDomain;
//GET Domain INTERFACE POINTER From IADSDomain
HRESULT hr=ADsGetObject( ADSPath.AllocSysString(),
IID_IADsDomain,
(void**)&pDomain);
if(SUCCEEDED(hr))
{
LONG lngPswdLen=0;
pDomain->get_MinPasswordLength(&lngPswdLen);
CString strLen=_T("");
strLen.Format(_T("min password len is
%ld"),lngPswdLen);
AfxMessageBox(strLen);
}
if(FAILED(hr))
AfxMessageBox(_T("failed"));
I am not able to get the min password length ,and i am
getting the
hresult value as E_NOINTERFACE which i could trace it out in
debugging
mode.
Anybody please help me out.
With Regards,
Sravan.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: how to retrieve min password length
of local system which is not in network |

|
2007-10-11 02:46:56 |
Are you using managed C++?
On 10/10/2007, sravan <local.sravan gmail.com> wrote:
>
> hi every body,
>
> I am trying to retrieve the min password length of a
local system
> which is not in network(purely a standalone system).
>
> Here is my code:
>
> CString ADSPath;
>
> ADSPath=_T("WinNT://TS114"); //TS114 is my
computer name
> IADsDomain *pDomain;
>
> //GET Domain INTERFACE POINTER From IADSDomain
> HRESULT hr=ADsGetObject( ADSPath.AllocSysString(),
IID_IADsDomain,
> (void**)&pDomain);
>
> if(SUCCEEDED(hr))
> {
> LONG lngPswdLen=0;
>
pDomain->get_MinPasswordLength(&lngPswdLen);
>
> CString strLen=_T("");
> strLen.Format(_T("min password len
is %ld"),lngPswdLen);
> AfxMessageBox(strLen);
> }
>
> if(FAILED(hr))
> AfxMessageBox(_T("failed"));
>
>
> I am not able to get the min password length ,and i am
getting the
> hresult value as E_NOINTERFACE which i could trace it
out in debugging
> mode.
>
> Anybody please help me out.
>
> With Regards,
> Sravan.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: how to retrieve min password length
of local system which is not in network |

|
2007-10-12 11:19:46 |
|
Yes i am using managed c++
On 10/11/07, Jamie Fraser < jamie.fraser gmail.com">jamie.fraser gmail.com> wrote:
Are you using managed C++?
On 10/10/2007, sravan < local.sravan gmail.com">local.sravan gmail.com> wrote: > > hi every body, > > I am trying to retrieve the min password length of a local system
> which is not in network(purely a standalone system). > > Here is my code: > > CString ADSPath; > > ADSPath=_T("WinNT://TS114"); //TS114 is my computer name > IADsDomain *pDomain;
> > //GET Domain INTERFACE POINTER From IADSDomain > HRESULT hr=ADsGetObject( ADSPath.AllocSysString(), IID_IADsDomain, > (void**)&pDomain); > > if(SUCCEEDED(hr)) > {
> LONG lngPswdLen=0; > pDomain->get_MinPasswordLength(&lngPswdLen); > > CString strLen=_T(""); > strLen.Format
(_T("min password len is %ld"),lngPswdLen); > AfxMessageBox(strLen); > } > > if(FAILED(hr)) > AfxMessageBox(_T("failed"));
> > > I am not able to get the min password length ,and i am getting the > hresult value as E_NOINTERFACE which i could trace it out in debugging > mode. > > Anybody please help me out.
> > With Regards, > Sravan. > > > > >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group.
To post to this group, send email to DotNetDevelopment googlegroups.com
To unsubscribe from this group, send email to DotNetDevelopment-unsubscribe googlegroups.com
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx -~----------~----~----~----~------~----~------~--~---
|
[1-3]
|
|