89 sizeof(
"/AutoPrinterCacheData") + 1);
91 sprintf(
path,
"%s/.rdesktop/rdpdr/%s/AutoPrinterCacheData",
home, printer);
116 char *new_printer_path;
131 sizeof(
"/.rdesktop/rdpdr/") + 1;
133 printer_path = (
char *)
xmalloc(printer_maxlen);
134 new_printer_path = (
char *)
xmalloc(printer_maxlen);
136 sprintf(printer_path,
"%s/.rdesktop/rdpdr/%s",
home, printer);
137 sprintf(new_printer_path,
"%s/.rdesktop/rdpdr/%s",
home, new_printer);
139 printf(
"%s,%s\n", printer_path, new_printer_path);
140 if (
rename(printer_path, new_printer_path) < 0)
143 xfree(new_printer_path);
148 xfree(new_printer_path);
160 if (printer_name ==
NULL)
170 sizeof(
"/AutoPrinterCacheData") + 1);
171 sprintf(
path,
"%s/.rdesktop/rdpdr/%s/AutoPrinterCacheData",
home, printer_name);
200 if (printer_name ==
NULL)
211 sizeof(
"/AutoPrinterCacheData") + 1);
212 sprintf(
path,
"%s/.rdesktop/rdpdr/%s/AutoPrinterCacheData",
home, printer_name);
235 uint32 type, printer_length, driver_length, printer_unicode_length, blob_length;
266 if (printer_unicode_length < 2 * 255)
293 driver_length + printer_length + 19);
297 unimpl(
"RDPDR Printer Cache Packet Type: %d\n",
type);
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
#define in_uint32_be(s, v)
#define in_uint8a(s, v, n)
#define in_uint32_le(s, v)
void rdp_in_unistr(STREAM s, int in_len, char **string, uint32 *str_size)
void unimpl(char *format,...)
static const WCHAR device_name[]
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLsizei GLsizei * length
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
#define sprintf(buf, format,...)
struct @1677::@1678 driver
static BOOL printercache_rename_blob(char *printer, char *new_printer)
int printercache_load_blob(char *printer_name, uint8 **data)
void printercache_process(RDPCLIENT *This, STREAM s)
static BOOL printercache_mkdir(char *base, char *printer)
static void printercache_save_blob(char *printer_name, uint8 *data, uint32 length)
static BOOL printercache_unlink_blob(char *printer)
_Check_return_ int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)