540{
545
547
549 {
553 {
554 This->currentFile = oldFile;
556 }
558 }
561
562
563
564
565
566
570 {
575 {
576 static const char str_header[] = "[InternetShortcut]";
577 static const char str_URL[] = "URL=";
578 static const char str_ICONFILE[] = "ICONFILE=";
579 static const char str_eol[] = "\r\n";
581 char *iconfile;
583 PROPSPEC ps[2];
584 PROPVARIANT pvread[2];
585 ps[0].ulKind = PRSPEC_PROPID;
587 ps[1].ulKind = PRSPEC_PROPID;
589
595
598 {
599 hr = IPropertyStorage_ReadMultiple(pPropStgRead, 2, ps, pvread);
601 {
602
604 IPropertyStorage_Release(pPropStgRead);
605 }
607 {
608 char indexString[50];
611 if (iconfile !=
NULL)
612 {
617 }
618
619 sprintf(indexString,
"ICONINDEX=%d", pvread[1].
u.iVal);
622
623 IPropertyStorage_Release(pPropStgRead);
626 }
627 else
628 {
629 TRACE(
"Unable to read properties.\n");
630 }
631 }
632 else
633 {
634 TRACE(
"Unable to get the IPropertyStorage.\n");
635 }
636
641 }
642 else
645 }
646 else
648
650}
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
#define WideCharToMultiByte
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
HRESULT WINAPI PropVariantClear(PROPVARIANT *pvar)
GLenum GLsizei GLuint GLint * bytesWritten
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
static BOOL StartLinkProcessor(LPCOLESTR szLink)
int WINAPI lstrlenA(LPCSTR lpString)
#define sprintf(buf, format,...)