Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygserver_setpwd.h « cygwin « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8fa34793ba900eed205eaf366873c75a915a80a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* cygserver_setpwd.h: Set LSA private data password for current user.

   Copyright 2008, 2011 Red Hat, Inc.

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

#ifndef __CYGSERVER_SETPWD_H__
#define __CYGSERVER_SETPWD_H__

#include <sys/types.h>
#include "cygserver.h"

#define CYGWIN_LSA_KEY_PREFIX	L"L$CYGWIN_"

#ifndef __INSIDE_CYGWIN__
class transport_layer_base;
class process_cache;
#endif

class client_request_setpwd : public client_request
{
  friend class client_request;

private:
  union
  {
    struct
    {
      WCHAR passwd[256];
    } in;
  } _parameters;

#ifndef __INSIDE_CYGWIN__
  client_request_setpwd ();
  virtual void serve (transport_layer_base *, process_cache *);
#endif

public:

#ifdef __INSIDE_CYGWIN__
  client_request_setpwd (PUNICODE_STRING);
#endif
};

#ifdef __INSIDE_CYGWIN__
unsigned long setlsapwd (const char *passwd, const char *username);
#endif

#endif /* __CYGSERVER_SETPWD_H__ */