开发者

Show Windows Users Dialog

开发者 https://www.devze.com 2023-01-17 01:12 出处:网络
How do you (programatically) show the windows local users/groups dialog? In Vista it\'s usually und开发者_Python百科er Control Panel - Administrative Tools - Computer Management - Local Users and Grou

How do you (programatically) show the windows local users/groups dialog? In Vista it's usually und开发者_Python百科er Control Panel - Administrative Tools - Computer Management - Local Users and Groups. Similar kind of dialog with the same functionalities (add/remove users/groups) is also acceptable, as long as supported by Windows Xp and above.

Delphi codes would be great, although not necessary!


It sounds like you want the Directory Object Picker dialog, documented here:

http://msdn.microsoft.com/en-us/library/ms676973(v=VS.85).aspx

It works with Windows 2000 or higher. There is some sample code here (in C++):

http://msdn.microsoft.com/en-us/library/ms675899(VS.85).aspx


Seems like you are looking for lusrmgr.msc applet. You can execute it from command line, Delphi code example:

uses
  ShellAPI;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(Handle, 'open', 'lusrmgr.msc', nil, nil, SW_SHOWNORMAL) ;
end;
0

精彩评论

暂无评论...
验证码 换一张
取 消