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

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -