How to get specified windows users or group?
-
I reference this Using the Windows 2000/XP Object Selection Dialog[^]. It's great article, but what i need is to get specified user list or group, such as "administrators" group, and all users in this groups, what should i set with the filter? Say: 1. "administrators" group 2. users in "administrators" group 3. "users" group 4. users in "users" group In a word, my purpose is to get only 1&&2&&3&&4, NOT all the users and groups in local PC, what should i do set with the filter?
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
-
I reference this Using the Windows 2000/XP Object Selection Dialog[^]. It's great article, but what i need is to get specified user list or group, such as "administrators" group, and all users in this groups, what should i set with the filter? Say: 1. "administrators" group 2. users in "administrators" group 3. "users" group 4. users in "users" group In a word, my purpose is to get only 1&&2&&3&&4, NOT all the users and groups in local PC, what should i do set with the filter?
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
i am not clearing with your question. are you want current user or all details of user.
-
i am not clearing with your question. are you want current user or all details of user.
yes, i only want to get all user name in a specified group. Say, user1, user2 are both administrator on local PC, i want to get their names and save the strings into a list. So do "users" group.
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
-
I reference this Using the Windows 2000/XP Object Selection Dialog[^]. It's great article, but what i need is to get specified user list or group, such as "administrators" group, and all users in this groups, what should i set with the filter? Say: 1. "administrators" group 2. users in "administrators" group 3. "users" group 4. users in "users" group In a word, my purpose is to get only 1&&2&&3&&4, NOT all the users and groups in local PC, what should i do set with the filter?
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
Syouki_kou wrote:
but what i need is to get specified user list or group, such as "administrators" group, and all users in this groups, what should i set with the filter?
Have you tried
NetGroupGetUsers()
and/orNetLocalGroupGetMembers()
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
I reference this Using the Windows 2000/XP Object Selection Dialog[^]. It's great article, but what i need is to get specified user list or group, such as "administrators" group, and all users in this groups, what should i set with the filter? Say: 1. "administrators" group 2. users in "administrators" group 3. "users" group 4. users in "users" group In a word, my purpose is to get only 1&&2&&3&&4, NOT all the users and groups in local PC, what should i do set with the filter?
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
-
Syouki_kou wrote:
but what i need is to get specified user list or group, such as "administrators" group, and all users in this groups, what should i set with the filter?
Have you tried
NetGroupGetUsers()
and/orNetLocalGroupGetMembers()
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
Thank you for your reply, i know the two API. But i still want to use the system pick up dialog to finish my work. I just have no idea for set the filter.
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
-
you should filter the needed persons out of the list.
Press F1 for help or google it. Greetings from Germany
I don't know what the needed persons are, the user press a button on my application will invoke the pick up dialog. My purpose is, no matter what operation user do on the dialog, it will only return "administrators" or "users".
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...