Re: LSA vs LSP GUI on Vista/2008?
- From: jialge@xxxxxxxxxxxxxxxxxxxx ("Jialiang Ge [MSFT]")
- Date: Fri, 13 Feb 2009 11:29:43 GMT
Hello Gerry
Am I correct in thinking the ONLY way to programatically obtain the
LSA privs information is using C/C++ with the Windows API? No way
to use COM, .NET or WMI?
You can call the native API in .NET using P/Invoke. Here is an example:
http://www.pinvoke.net/default.aspx/advapi32/LsaEnumerateAccountsWithUserRig
ht.html
As far as I know, there is no built-in WMI class or COM object to list LSA
privs (I will double confirm it with the product group and will let you
know if I was wrong). However, it's not difficult to write such a COM
object by ourselves. If your business context allows writing and using your
own COM object, please refer to this sample:
http://www.codeplex.com/HelloWorld
It has a sample named ATLActiveXDll, which is an in-process COM server
written in ATL. In the Readme.txt file of the sample, you can find the
detailed steps to build such a COM object. I hope that it can help you
quickly ramp up the knowledge of COM.
Best Regards,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
.
- Follow-Ups:
- Re: LSA vs LSP GUI on Vista/2008?
- From: Gerry Hickman
- Re: LSA vs LSP GUI on Vista/2008?
- References:
- LSA vs LSP GUI on Vista/2008?
- From: Gerry Hickman
- RE: LSA vs LSP GUI on Vista/2008?
- From: "Jialiang Ge [MSFT]"
- Re: LSA vs LSP GUI on Vista/2008?
- From: Gerry Hickman
- LSA vs LSP GUI on Vista/2008?
- Prev by Date: Re: LSA vs LSP GUI on Vista/2008?
- Next by Date: How can I get information about certificate?
- Previous by thread: Re: LSA vs LSP GUI on Vista/2008?
- Next by thread: Re: LSA vs LSP GUI on Vista/2008?
- Index(es):
Relevant Pages
|