Subversion Repositories Aucun

Rev

Rev 40 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
40 ixe013 1
#ifndef __GINAHOOK_H__
2
#define __GINAHOOK_H__
3
 
4
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5
 
6
 THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
7
 EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
8
 WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
9
 
10
 Copyright (C) 1996 - 2000.  Microsoft Corporation.  All rights reserved.
11
 
12
 Module:   Ginahook.h
13
 
14
 Abstract: See ReadMe.txt for more detail information about this sample.
15
 
16
 Revision: August 6, 1999.
17
 
18
------------------------------------------------------------------------------*/
19
 
20
//
21
// Function prototypes for the GINA interface.
22
//
23
 
24
typedef BOOL(WINAPI * PFWLXNEGOTIATE)(DWORD, DWORD *);
25
typedef BOOL(WINAPI * PFWLXINITIALIZE)(LPWSTR, HANDLE, PVOID, PVOID, PVOID *);
26
typedef VOID(WINAPI * PFWLXDISPLAYSASNOTICE)(PVOID);
27
typedef int(WINAPI * PFWLXLOGGEDOUTSAS)(PVOID, DWORD, PLUID, PSID, PDWORD,
28
                                        PHANDLE, PWLX_MPR_NOTIFY_INFO,
29
                                        PVOID *);
30
typedef BOOL(WINAPI * PFWLXACTIVATEUSERSHELL)(PVOID, PWSTR, PWSTR, PVOID);
31
typedef int(WINAPI * PFWLXLOGGEDONSAS)(PVOID, DWORD, PVOID);
32
typedef VOID(WINAPI * PFWLXDISPLAYLOCKEDNOTICE)(PVOID);
33
typedef int(WINAPI * PFWLXWKSTALOCKEDSAS)(PVOID, DWORD);
34
typedef BOOL(WINAPI * PFWLXISLOCKOK)(PVOID);
35
typedef BOOL(WINAPI * PFWLXISLOGOFFOK)(PVOID);
36
typedef VOID(WINAPI * PFWLXLOGOFF)(PVOID);
37
typedef VOID(WINAPI * PFWLXSHUTDOWN)(PVOID, DWORD);
38
 
39
//
40
// New for version 1.1
41
//
42
 
43
typedef BOOL(WINAPI * PFWLXSCREENSAVERNOTIFY)(PVOID, BOOL *);
44
typedef BOOL(WINAPI * PFWLXSTARTAPPLICATION)(PVOID, PWSTR, PVOID, PWSTR);
45
 
46
//
47
// New for version 1.3
48
//
49
 
50
typedef BOOL(WINAPI * PFWLXNETWORKPROVIDERLOAD)(PVOID, PWLX_MPR_NOTIFY_INFO);
51
typedef BOOL(WINAPI * PFWLXDISPLAYSTATUSMESSAGE)(PVOID, HDESK, DWORD, PWSTR, PWSTR);
52
typedef BOOL(WINAPI * PFWLXGETSTATUSMESSAGE)(PVOID, DWORD *, PWSTR, DWORD);
53
typedef BOOL(WINAPI * PFWLXREMOVESTATUSMESSAGE)(PVOID);
54
 
55
//
56
// New for version 1.4
57
//
58
 
59
typedef BOOL(WINAPI * PWLXGETCONSOLESWITCHCREDENTIALS)(PVOID, PVOID);
60
typedef VOID(WINAPI * PWLXRECONNECTNOTIFY)(PVOID);
61
typedef VOID(WINAPI * PWLXDISCONNECTNOTIFY)(PVOID);
62
 
63
typedef struct
64
{
65
    HANDLE mCurrentUser;
66
    HANDLE Winlogon;
91 ixe013 67
    HANDLE mLSA;
40 ixe013 68
    PVOID mHookedContext;
69
} MyGinaContext;
70
 
71
 
72
#endif