winnt-win2000-win98-afs-client-updates-20010623
[openafs.git] / src / WINNT / win9xpanel / api95.cpp
1 /* Copyright 2000, International Business Machines Corporation and others.
2         All Rights Reserved.
3  
4         This software has been released under the terms of the IBM Public
5         License.  For details, see the LICENSE file in the top-level source
6         directory or online at http://www.openafs.org/dl/license10.html
7 */
8 /* api functions for access to AFS pioctl functions from windows gui */
9
10 #include "stdafx.h"
11 #ifdef _MFC_VER
12 extern "C" {
13 #endif
14 #include <afs/param.h>
15 #include <afs/stds.h>
16 #ifdef _MFC_VER
17         }
18 #endif
19 /*#include <afs/pioctl_nt.h>*/
20 #ifndef _MFC_VER
21
22 #include <osi.h>
23 #include <afsint.h>
24
25 #include <windows.h>
26 #include <stdlib.h>
27 #include <malloc.h>
28 #include <string.h>
29 #include <stdio.h>
30 #include <time.h>
31 #include <errno.h>
32 #endif
33
34 typedef short int16;
35 typedef unsigned short u_int16;
36
37 #ifdef _MFC_VER
38 extern "C" {
39 #endif
40 #include <afs\fs_utils.h>
41 #ifdef _MFC_VER
42         }
43 #endif
44
45 int ShutdownAfs()
46 {
47   struct ViceIoctl blob;
48   int code;
49   
50   blob.in_size = 0;
51   blob.out_size = 0;
52   code = pioctl(0, VIOC_SHUTDOWN, &blob, 0);
53
54   return code;
55 }
56