As much protection as the Operating System provides...
...which for Windows is to say None At All. Unmanaged code is the umbrella of native code that's not managed within the sandbox. All those VBX or COM or COM+ or DCOM things can be invoked within the unmanaged state.