Cygwin: sched_setscheduler: allow changes of the priority
[newlib-cygwin.git] / winsup / cygwin / local_includes / cygserver_setpwd.h
blobfc1576b059ac470e314f3c09b520005cb13998e0
1 /* cygserver_setpwd.h: Set LSA private data password for current user.
3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 details. */
9 #ifndef __CYGSERVER_SETPWD_H__
10 #define __CYGSERVER_SETPWD_H__
12 #include <sys/types.h>
13 #include "cygserver.h"
15 #define CYGWIN_LSA_KEY_PREFIX L"L$CYGWIN_"
17 #ifndef __INSIDE_CYGWIN__
18 class transport_layer_base;
19 class process_cache;
20 #endif
22 class client_request_setpwd : public client_request
24 friend class client_request;
26 private:
27 union
29 struct
31 WCHAR passwd[256];
32 } in;
33 } _parameters;
35 #ifndef __INSIDE_CYGWIN__
36 client_request_setpwd ();
37 virtual void serve (transport_layer_base *, process_cache *);
38 #endif
40 public:
42 #ifdef __INSIDE_CYGWIN__
43 client_request_setpwd (PUNICODE_STRING);
44 #endif
47 #ifdef __INSIDE_CYGWIN__
48 unsigned long setlsapwd (const char *passwd, const char *username);
49 #endif
51 #endif /* __CYGSERVER_SETPWD_H__ */