I'm trying to write a 'net send' spoofer and I need some help with the NetMessageBufferSend() function. I read about it at Microsoft's website, but they don't go into much detail about it and it's internal workings (and all of it's parameters). I have a few questions:

1) I'm assuming this function is part of the Window's API (which I don't really know much when it comes to using it). Is it possible to use this function but still use the regular MS-DOS window? I want it to be a simple program that uses regular input and output (cin/cout).

2)What header file(s) contain(s) everything I need to use this function?

Much thanks to anyone who can help out.