Sometimes the compiler issues C2143 (the 1st error in your output) in lieu of saying it couldn't recognize the preceding identifier. If that's the case, you're missing an #include file somewhere. "NTSTATUS" and "PUNICODE_STRING" look like items from windows.h, so I would check that you've included it, and properly defined things like WINVER to get the definitions you need. Gary R. Wheeler