home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / kernex32.zip / mwdd_src.zip / 32bits / ext2-os2 / skeleton / ifs / fs32_init.c < prev    next >
Text File  |  1997-08-06  |  2KB  |  75 lines

  1. //
  2. // $Header: D:/32bits/ext2-os2/skeleton/ifs/rcs/fs32_init.c,v 1.3 1997/03/16 13:01:55 Willm Exp Willm $
  3. //
  4.  
  5. // 32 bits OS/2 device driver and IFS support. Provides 32 bits kernel 
  6. // services (DevHelp) and utility functions to 32 bits OS/2 ring 0 code 
  7. // (device drivers and installable file system drivers).
  8. // Copyright (C) 1995, 1996, 1997  Matthieu WILLM (willm@ibm.net)
  9. //
  10. // This program is free software; you can redistribute it and/or modify
  11. // it under the terms of the GNU General Public License as published by
  12. // the Free Software Foundation; either version 2 of the License, or
  13. // (at your option) any later version.
  14. //
  15. // This program is distributed in the hope that it will be useful,
  16. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. // GNU General Public License for more details.
  19. //
  20. // You should have received a copy of the GNU General Public License
  21. // along with this program; if not, write to the Free Software
  22. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  
  24. #ifdef __IBMC__
  25. #pragma strings(readonly)
  26. #endif
  27.  
  28.  
  29. #define INCL_DOS
  30. #define INCL_DOSERRORS
  31. #define INCL_NOPMAPI
  32. #include <os2.h>
  33.  
  34.  
  35. #include <string.h>
  36.  
  37. #include <os2/types.h>
  38. #include <os2/StackToFlat.h>
  39. #include <os2/fsd32.h>
  40. #include <os2/devhlp32.h>
  41.  
  42.  
  43.  
  44.  
  45. char msg[]="\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
  46. char msg1[]="\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
  47. extern char banner[];
  48.  
  49.  
  50. struct DevHelp32 DevHelp32 = {DEVHELP32_MAGIC, DEVHELP32_VERSION,};
  51. void  *TKSSBase;
  52. unsigned long DevHelp2;
  53. int _dllentry = 0;
  54.  
  55. /*
  56.  * struct fs32_init_parms {
  57.  *     PTR16 pMiniFSD;
  58.  *     PTR16 DevHelp;
  59.  *     PTR16 cmdline;
  60.  * };
  61.  */
  62. int FS32INIT fs32_init(struct fs32_init_parms *parms) {
  63.  
  64.  
  65.     /*
  66.      * Insert your code here ...
  67.      */
  68.  
  69.     DevHlp32_SaveMessage(msg, strlen(msg) + 1);
  70.     DevHlp32_SaveMessage(banner, strlen(banner)+1);
  71.     DevHlp32_SaveMessage(msg1, strlen(msg1) + 1);
  72.  
  73.     return NO_ERROR;
  74. }
  75.