NetUserGetLocalGroups
权限问题不知道。
权限问题不知道。
解决方案 »
- 3天了,还未解决一个界面问题,请高手出马!
- 操作菜单出错:“0x78be202c”指令引用的“0x00000004”内存。该内存不能为“read”
- 求一个游戏引擎Popcap Framework
- 这种桌面秀窗口是怎么做的
- 想Debug进去 用CreateProcess创建的进程, 请教有什么办法吗?
- opengl再MFC中怎么定坐标?为何我在View上画的图移动1.0的坐标单位改变很大啊?
- 工作2年多了,越来越凄凉,想换换环境了,大家给给意见好吗
- 怎么样屏蔽ctrl+ alt +del 给个实例50 分
- 谁能给我一个简单的VC中用水晶报表的例子,多谢!急!!!!
- 我在VS2005里面设置了栈大小课时没有用。为什么?
- __stdcall 和 __cdecl 是什么意思?
- 各位推荐你们用得感觉比较好得VC++调试工具!!
详细信息请查MSDN。USER_INFO_1
The USER_INFO_1 structure contains information about a user account, including account name, password data, privilege level, and the path to the user's home directory. typedef struct _USER_INFO_1 {
LPWSTR usri1_name;
LPWSTR usri1_password;
DWORD usri1_password_age;
DWORD usri1_priv;
LPWSTR usri1_home_dir;
LPWSTR usri1_comment;
DWORD usri1_flags;
LPWSTR usri1_script_path;
}USER_INFO_1, *PUSER_INFO_1, *LPUSER_INFO_1;
Members
usri1_name
Pointer to a Unicode string that specifies the name of the user account. For the NetUserSetInfo function, this member is ignored.
usri1_password
Pointer to a Unicode string that specifies the password of the user indicated by the usri1_name member. The length cannot exceed PWLEN bytes. The NetUserEnum and NetUserGetInfo functions return a NULL pointer to maintain password security.
By convention, Windows NT/Windows 2000 limits the length of passwords to LM20_PWLEN characters. This convention allows LAN Manager, Windows 3.x, Windows for Workgroups 3.x, Windows 95, and Windows 98 clients to access a Windows NT/Windows 2000 server using the account. usri1_password_age
Specifies a DWORD value that indicates the number of seconds that have elapsed since the usri1_password member was last changed. The NetUserAdd and NetUserSetInfo functions ignore this member.
usri1_priv
Specifies a DWORD value that indicates the level of privilege assigned to the usri1_name member. When you call the NetUserAdd function, this member must be USER_PRIV_USER. When you call the NetUserSetInfo function, this member must be the value returned by the NetUserGetInfo function or the NetUserEnum function. This member can be one of the following values.