aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/shortcut.h
blob: 87e7ff156c419ccdc4b6ce8348986becf5d645c3 (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
/* shortcut.h: Hader file for shortcut.c

   Copyright 2001 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. */

#ifdef __cplusplus
extern "C" {
#endif

/* The header written to a shortcut by Cygwin or U/WIN. */
#define SHORTCUT_HDR_SIZE	76

extern char shortcut_header[];
extern BOOL shortcut_initalized;

extern void create_shortcut_header ();

int check_shortcut (const char *path, DWORD fileattr, HANDLE h,
		    char *contents, int *error, unsigned *pflags);

#ifdef __cplusplus
};
#endif