source: golgotha/src/maxtool/maxcomm.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 953 bytes
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef MAXCOMM_HH
10#define MAXCOMM_HH
11
12#include <windows.h>
13#include "string/string.hh"
14
15class m1_mail_slot_class
16{
17public:
18  HANDLE slot;
19
20  m1_mail_slot_class() : slot(INVALID_HANDLE_VALUE) {}
21
22  int initialized() { return (slot != INVALID_HANDLE_VALUE); }
23
24  int create(const i4_const_str &name);
25  int open(const i4_const_str &name);
26
27  w32 read(char *buff, w32 max_size);
28  w32 write(char *buff, w32 size);
29
30  int read_ready();
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.