How to marshall a LPCWSTR to String in C#?
Posted
by Carlos Loth
on Stack Overflow
See other posts from Stack Overflow
or by Carlos Loth
Published on 2010-06-03T20:47:49Z
Indexed on
2010/06/03
21:04 UTC
Read the original article
Hit count: 1145
I'm trying to define a P/Invoke signature for the following method (defined in propsys.h)
PSSTDAPI PSRegisterPropertySchema(
__in PCWSTR pszPath);
I've seen on the WinNT.h that PCWSTR is an alias to LPCWSTR as
typedef __nullterminated CONST WCHAR *LPCWSTR, *PCWSTR;
And the PSSTDAPI is an alias for HRESULT
So how should be the P/Invoke signature for the PSRegisterPropertySchema method?
© Stack Overflow or respective owner