How do i call NetUserSetGroups ( in netapi32.dll ) in VB.Net ? The prototype of NetUserSetGroups is as given below. NET_API_STATUS NetUserSetGroups( LPCWSTR servername, LPCWSTR username, DWORD level, LPBYTE buf, DWORD num_entries ); Parameters ( from MSDN ) servername [in] Pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used. username [in] Pointer to a constant string that specifies the name of the user for which to set global group memberships. For more information, see the following Remarks section. level [in] Specifies the information level of the data. This parameter can be the following value. Value Meaning 0 The buf parameter points to an array of GROUP_USERS_INFO_0 structures that specifies global group names. The GROUP_USERS_INFO_0 structure contains global group member information. typedef struct _GROUP_USERS_INFO_0 { LPWSTR grui0_name; } GROUP_USERS_INFO_0, *PGROUP_USERS_INFO_0, *LPGROUP_USERS_INFO_0; buf [in] Pointer to the buffer that specifies the data. num_entries [in] Specifies the number of entries contained in the array pointed to by the buf parameter. Thanks in advance. Ashik
Calvinix
Posts
-
Calling NetUserSetGroups API in VB.Net -
TRIVANDRUM ???yeah.. i am from trivandrum
-
move asp.net web application?If you want to develop in another machine , Visaul Studio itself can be used to copy the files to the destination . there is an icon at the top of solution explorer which will allow you to make a copy ... you have to click on the Solution name so as to enable this icon..
-
Crystal Report Problems ?Well ai didnt exactly get the hang of your problem , but creating a Crystal Report in AS.Net using stored procedures is not so much of a problem. You just have to use the report expert , which will automatically look at the output of you Stored proc and then retrieve the values . the only work involved is placing the fields on the report...And if you are accessing the same DB server from all machines ( provided these machines has access to the DB server ) there wont be any error or anything because the credentilas you gave at design time will always work..
-
Exporting Crystal Reportyou can save a crystal report using code.. there are a lot of articles here in CP iteslf.. http://www.codeproject.com/csharp/leTaonarticle2.asp
-
Adding Description to Functionsjust type /// above the function name and type the comment there . i havent used it , but i heard one of my colleagues mention it a day ago..You can always try :-D