c# - PInvoke SLAPI Functions -
i'm trying use functions in slapi i'm new pinvoke , i'm struggling this. take slgetpkeyinformation example:
hresult winapi slgetpkeyinformation( _in_ hslc hslc, _in_ const slid *ppkeyid, _in_ pcwstr pwszvaluename, _out_opt_ sldatatype *pedatatype, _out_ uint *pcbvalue, _out_ pbyte *ppbvalue );
https://msdn.microsoft.com/en-us/library/windows/desktop/hh971173(v=vs.85).aspx
i don't understand hslc type is, able provide sample code using function in c#?
hslc defined in slpublic.h as:
typedef pvoid hslc;
so can treated anonymous handle type in winapi , passed around c# code intptr.
Comments
Post a Comment