Example code for PC Plugin Dev for Unity 3.1 pro?

I am writing over a device interface library to Unity 3D as a pro plugin on the PC, I would like to know if there is a Visual Studio example projects of this for Pro Plugins? How hard is it going to be porting a Direct X device code project to Unity 3D? Anyone have experience with this already?

Device is the z800 HMD. I am using their provided API/SDK samples for the port to Unity 3D. Specifically the managedDevice example.

Thanks for any help or suggestions.

Nevermind the question on sample code… helps if I read the manual.
file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/Images/manual/SimplestPluginExample.zip

http://msdn2.microsoft.com/en-us/library/fzhhdwae.aspx

Still have question on DirectX and Unity3D… suspect PC does not use Direct Natively?

Forget about direct access to the rendering window, not going to happen