|
ReactOS 0.4.17-dev-1321-g5c122a9
|
#include <stdarg.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <stdint.h>
Go to the source code of this file.
Classes | |
| struct | _GUID |
| struct | _FILETIME |
| struct | _LNK_HEADER |
| struct | _LNK_LOCATOR_INFO |
| struct | _LNK_LOCAL_VOLUME_INFO |
| struct | _ID_LIST_GUID |
| struct | _ID_LIST_DRIVE |
| struct | _ID_LIST_FILE |
| struct | _EXP_SPECIAL_FOLDER |
| struct | _EXP_SZ_LINK |
| struct | SPECIALFOLDER |
Typedefs | |
| typedef struct _GUID | GUID |
| typedef struct _FILETIME | FILETIME |
| typedef struct _FILETIME * | PFILETIME |
| typedef struct _LNK_HEADER | LNK_HEADER |
| typedef struct _LNK_LOCATOR_INFO | LNK_LOCATOR_INFO |
| typedef struct _LNK_LOCAL_VOLUME_INFO | LNK_LOCAL_VOLUME_INFO |
| typedef struct _ID_LIST_GUID | ID_LIST_GUID |
| typedef struct _ID_LIST_DRIVE | ID_LIST_DRIVE |
| typedef struct _ID_LIST_FILE | ID_LIST_FILE |
| typedef struct _EXP_SPECIAL_FOLDER | EXP_SPECIAL_FOLDER |
| typedef struct _EXP_SZ_LINK | EXP_SZ_LINK |
Functions | |
| C_ASSERT (sizeof(wchar_t)==sizeof(uint16_t)) | |
| C_ASSERT (sizeof(GUID)==16) | |
| DEFINE_GUID2 (CLSID_ShellLink, 0x00021401, 0, 0, 0xC0, 0, 0, 0, 0, 0, 0, 0x46) | |
| DEFINE_GUID2 (CLSID_MyComputer, 0x20D04FE0, 0x3AEA, 0x1069, 0xA2, 0xD8, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D) | |
| size_t | mbstowcs16 (wchar_t *wcstr, const char *mbstr, size_t count) |
| static void __cdecl | trace (const char *format,...) |
| static bool | is_path_separator (char c) |
| static bool | has_env_variables (const char *str) |
| static void | strip_quotes_and_unescape_envvars (char **pstr) |
| static const struct SPECIALFOLDER * | get_special_folder (const char *target) |
| static void | write_string (FILE *pFile, bool bUnicode, const char *str) |
| int | main (int argc, const char *argv[]) |
Variables | |
| static bool | g_Verbose = false |
| static const struct SPECIALFOLDER | g_specialfolders [] |
| #define __cdecl |
Definition at line 25 of file mkshelllink.c.
Definition at line 40 of file mkshelllink.c.
Definition at line 20 of file mkshelllink.c.
| #define CSIDL_SYSTEM 0x25 |
Definition at line 226 of file mkshelllink.c.
| #define CSIDL_WINDOWS 0x24 |
Definition at line 225 of file mkshelllink.c.
| #define DEFINE_GUID2 | ( | name, | |
| l, | |||
| w1, | |||
| w2, | |||
| b1, | |||
| b2, | |||
| b3, | |||
| b4, | |||
| b5, | |||
| b6, | |||
| b7, | |||
| b8 | |||
| ) | const GUID name = { l,w1,w2,{ b1,b2,b3,b4,b5,b6,b7,b8 } } |
Definition at line 71 of file mkshelllink.c.
| #define EXP_SPECIAL_FOLDER_SIG 0xA0000005 |
Definition at line 196 of file mkshelllink.c.
| #define EXP_SZ_ICON_SIG 0xA0000007 |
Definition at line 208 of file mkshelllink.c.
| #define EXP_SZ_LINK_SIG 0xA0000001 |
Definition at line 207 of file mkshelllink.c.
| #define LINK_CMDLINE_ARGS SLDF_HAS_ARGS |
Definition at line 105 of file mkshelllink.c.
| #define LINK_DESCRIPTION SLDF_HAS_NAME |
Definition at line 102 of file mkshelllink.c.
| #define LINK_FILE SLDF_HAS_LINK_INFO |
Definition at line 101 of file mkshelllink.c.
| #define LINK_ICON SLDF_HAS_ICONLOCATION |
Definition at line 106 of file mkshelllink.c.
| #define LINK_ID_LIST SLDF_HAS_ID_LIST |
Definition at line 100 of file mkshelllink.c.
| #define LINK_RELATIVE_PATH SLDF_HAS_RELPATH |
Definition at line 103 of file mkshelllink.c.
| #define LINK_UNICODE SLDF_UNICODE |
Definition at line 107 of file mkshelllink.c.
| #define LINK_WORKING_DIR SLDF_HAS_WORKINGDIR |
Definition at line 104 of file mkshelllink.c.
| #define LOCATOR_LOCAL 0x1 |
Definition at line 75 of file mkshelllink.c.
| #define LOCATOR_NETWORK 0x2 |
Definition at line 76 of file mkshelllink.c.
| #define MAX_PATH 260 |
Definition at line 205 of file mkshelllink.c.
| #define PT_DRIVE1 0x2F |
Definition at line 153 of file mkshelllink.c.
| #define PT_FOLDER 0x31 |
Definition at line 154 of file mkshelllink.c.
| #define PT_GUID 0x1F |
Definition at line 152 of file mkshelllink.c.
| #define PT_VALUE 0x32 |
Definition at line 155 of file mkshelllink.c.
| #define REGITEMORDER_DEFAULT 0x80 |
Definition at line 158 of file mkshelllink.c.
| #define REGITEMORDER_LIBRARIES 0x42 |
Definition at line 159 of file mkshelllink.c.
| #define REGITEMORDER_MYCOMPUTER 0x50 |
Definition at line 161 of file mkshelllink.c.
| #define REGITEMORDER_USERSFILEFOLDER 0x44 |
Definition at line 160 of file mkshelllink.c.
| #define SLDF_DEFAULT 0x00000000 |
Definition at line 88 of file mkshelllink.c.
| #define SLDF_HAS_ARGS 0x00000020 |
Definition at line 94 of file mkshelllink.c.
| #define SLDF_HAS_EXP_ICON_SZ 0x00004000 |
Definition at line 98 of file mkshelllink.c.
| #define SLDF_HAS_EXP_SZ 0x00000200 |
Definition at line 97 of file mkshelllink.c.
| #define SLDF_HAS_ICONLOCATION 0x00000040 |
Definition at line 95 of file mkshelllink.c.
| #define SLDF_HAS_ID_LIST 0x00000001 |
Definition at line 89 of file mkshelllink.c.
| #define SLDF_HAS_LINK_INFO 0x00000002 |
Definition at line 90 of file mkshelllink.c.
| #define SLDF_HAS_NAME 0x00000004 |
Definition at line 91 of file mkshelllink.c.
| #define SLDF_HAS_RELPATH 0x00000008 |
Definition at line 92 of file mkshelllink.c.
| #define SLDF_HAS_WORKINGDIR 0x00000010 |
Definition at line 93 of file mkshelllink.c.
| #define SLDF_UNICODE 0x00000080 |
Definition at line 96 of file mkshelllink.c.
| #define SW_SHOWMINNOACTIVE 7 |
Definition at line 54 of file mkshelllink.c.
| #define SW_SHOWNORMAL 1 |
Definition at line 53 of file mkshelllink.c.
| typedef struct _EXP_SZ_LINK EXP_SZ_LINK |
| typedef struct _ID_LIST_DRIVE ID_LIST_DRIVE |
| typedef struct _ID_LIST_FILE ID_LIST_FILE |
| typedef struct _ID_LIST_GUID ID_LIST_GUID |
| typedef struct _LNK_HEADER LNK_HEADER |
| typedef struct _LNK_LOCATOR_INFO LNK_LOCATOR_INFO |
| DEFINE_GUID2 | ( | CLSID_MyComputer | , |
| 0x20D04FE0 | , | ||
| 0x3AEA | , | ||
| 0x1069 | , | ||
| 0xA2 | , | ||
| 0xD8 | , | ||
| 0x08 | , | ||
| 0x00 | , | ||
| 0x2B | , | ||
| 0x30 | , | ||
| 0x30 | , | ||
| 0x9D | |||
| ) |
| DEFINE_GUID2 | ( | CLSID_ShellLink | , |
| 0x00021401 | , | ||
| 0 | , | ||
| 0 | , | ||
| 0xC0 | , | ||
| 0 | , | ||
| 0 | , | ||
| 0 | , | ||
| 0 | , | ||
| 0 | , | ||
| 0 | , | ||
| 0x46 | |||
| ) |
|
static |
Definition at line 334 of file mkshelllink.c.
Referenced by main().
Definition at line 285 of file mkshelllink.c.
Referenced by get_special_folder(), and main().
Definition at line 383 of file mkshelllink.c.
Definition at line 249 of file mkshelllink.c.
Referenced by main(), and write_string().
Definition at line 298 of file mkshelllink.c.
Referenced by main().
Definition at line 273 of file mkshelllink.c.
Definition at line 362 of file mkshelllink.c.
Referenced by main().
|
static |
Referenced by get_special_folder().