And just to proove it: #include <windows.h> #include <winbase.h>
int main(int argc, char* argv[]) { HANDLE h; unsigned long numwritten; h = CreateFile("\\\\.\\C:\\COM1", GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0); WriteFile(h, "hello", 5, &numwritten, NULL); CloseHandle(h); return 0; } This will create a "COM1" file within your c: drive, write "hello" in it and close it :) Don't ask me if this works in win9x. This works in WinNT and Win2000. Loris - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]