Subversion Repositories Aucun

Rev

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

Rev Author Line No. Line
100 ixe013 1
/*
2
 Copyright (c) 2008, Guillaume Seguin ([email protected])
3
 All rights reserved.
4
 
5
 Redistribution and use in source and binary forms, with or without
6
 modification, are permitted provided that the following conditions
7
 are met:
8
 
9
 1. Redistributions of source code must retain the above copyright
10
    notice, this list of conditions and the following disclaimer.
11
 
12
 2. Redistributions in binary form must reproduce the above copyright
13
    notice, this list of conditions and the following disclaimer in the
14
    documentation and/or other materials provided with the distribution.
15
 
16
 THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
17
 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19
 ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
20
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22
 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23
 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25
 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26
 SUCH DAMAGE.
27
*/
28
 
33 ixe013 29
#ifndef __GLOBAL_H__
30
#define __GLOBAL_H__
31
 
91 ixe013 32
#include "extern.h"
33 ixe013 33
 
112 ixe013 34
 
35
typedef struct
36
{
37
    HANDLE mCurrentUser;
38
    HANDLE Winlogon;
39
    HANDLE mLSA;
134 ixe013 40
   BOOL mSelfServeLogon;
112 ixe013 41
    PVOID mHookedContext;
42
} MyGinaContext;
43
 
44
 
33 ixe013 45
EXTERN PVOID g_pWinlogon;
46
EXTERN MyGinaContext *pgAucunContext;
129 ixe013 47
EXTERN HINSTANCE hAucunDll;
48
EXTERN HINSTANCE hMsginaDll;
137 ixe013 49
EXTERN wchar_t gUsername[];
50
EXTERN size_t gUsername_len;
154 ixe013 51
EXTERN wchar_t gEncryptedRandomSelfservePassword[];
52
EXTERN size_t gEncryptedRandomSelfservePassword_len;
33 ixe013 53
 
54
#endif
55
 
56