Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Cluster Management APIs in C Sharp
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
NewDev
18y
2.5k
1
Reply
Hello All,
Im Coding cluster Management functions in C# using the APIs. When I am trying to DLLImport for the API GetClusterGroupState as
I get an System.AccessViolationException that protected memory is accesses. Let me know the How shoud I use this API in c#. Here is my code.
[DllImport("clusapi.dll", EntryPoint = "GetClusterGroupState", SetLastError = true,
CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.StdCall),
SuppressUnmanagedCodeSecurityAttribute()]
internal static extern int GetClusterGroupState(
IntPtr hClusGroup,
out string strOwnerNode,
[MarshalAs(UnmanagedType.I4)] int nNodeNamebuf);
Thanks
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
DataGrid Grouping
Auto focus on button in winforms