NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C3826

'__pin' : declaring pinned formal parameters is illegal

A function parameter cannot be decorated with the __pin keyword.

The following sample generates C3826 twice:

#using <mscorlib.dll>

__gc class G { 
};

typedef G __pin * GPinPtrType;

void func1(G __pin * x) { 
}   // C3826

void func2(GPinPtrType x) { 
}   // C3826

void main() { 
}