Changeset 4032 for trunk/src/shell32/shelllink.cpp
- Timestamp:
- Aug 18, 2000, 4:01:27 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shelllink.cpp
r3243 r4032 1 /* $Id: shelllink.cpp,v 1. 3 2000-03-26 16:34:50 cbratschiExp $ */1 /* $Id: shelllink.cpp,v 1.4 2000-08-18 02:01:21 phaller Exp $ */ 2 2 /* 3 3 * … … 79 79 typedef struct 80 80 { 81 ICOM_VTABLE(IShellLink )*lpvtbl;81 ICOM_VTABLE(IShellLinkA)* lpvtbl; 82 82 DWORD ref; 83 83 … … 121 121 TRACE("(%p)\n",This); 122 122 123 return IShellLink _QueryInterface((IShellLink*)This, riid, ppvObj);123 return IShellLinkA_QueryInterface((IShellLinkA*)This, riid, ppvObj); 124 124 } 125 125 … … 133 133 TRACE("(%p)->(count=%lu)\n",This,This->ref); 134 134 135 return IShellLink _AddRef((IShellLink*)This);135 return IShellLinkA_AddRef((IShellLinkA*)This); 136 136 } 137 137 /****************************************************************************** … … 144 144 TRACE("(%p)->(count=%lu)\n",This,This->ref); 145 145 146 return IShellLink _Release((IShellLink*)This);146 return IShellLinkA_Release((IShellLinkA*)This); 147 147 } 148 148 … … 229 229 TRACE("(%p)\n",This); 230 230 231 return IShellLink _QueryInterface((IShellLink*)This, riid, ppvoid);231 return IShellLinkA_QueryInterface((IShellLinkA*)This, riid, ppvoid); 232 232 } 233 233 … … 242 242 TRACE("(%p)\n",This); 243 243 244 return IShellLink _Release((IShellLink*)This);244 return IShellLinkA_Release((IShellLinkA*)This); 245 245 } 246 246 … … 255 255 TRACE("(%p)\n",This); 256 256 257 return IShellLink _AddRef((IShellLink*)This);257 return IShellLinkA_AddRef((IShellLinkA*)This); 258 258 } 259 259 … … 409 409 * IShellLink_QueryInterface 410 410 */ 411 static HRESULT WINAPI IShellLink _fnQueryInterface( IShellLink* iface, REFIID riid, LPVOID *ppvObj)411 static HRESULT WINAPI IShellLinkA_fnQueryInterface( IShellLinkA * iface, REFIID riid, LPVOID *ppvObj) 412 412 { 413 413 ICOM_THIS(IShellLinkImpl, iface); … … 420 420 421 421 if(IsEqualIID(riid, &IID_IUnknown) || 422 IsEqualIID(riid, &IID_IShellLink ))422 IsEqualIID(riid, &IID_IShellLinkA)) 423 423 { 424 424 *ppvObj = This; … … 447 447 } 448 448 /****************************************************************************** 449 * IShellLink _AddRef450 */ 451 static ULONG WINAPI IShellLink _fnAddRef(IShellLink* iface)449 * IShellLinkA_AddRef 450 */ 451 static ULONG WINAPI IShellLinkA_fnAddRef(IShellLinkA * iface) 452 452 { 453 453 ICOM_THIS(IShellLinkImpl, iface); … … 459 459 } 460 460 /****************************************************************************** 461 * IShellLink _Release462 */ 463 static ULONG WINAPI IShellLink _fnRelease(IShellLink* iface)461 * IShellLinkA_Release 462 */ 463 static ULONG WINAPI IShellLinkA_fnRelease(IShellLinkA * iface) 464 464 { 465 465 ICOM_THIS(IShellLinkImpl, iface); … … 486 486 } 487 487 488 static HRESULT WINAPI IShellLink _fnGetPath(IShellLink* iface, LPSTR pszFile,INT cchMaxPath, WIN32_FIND_DATAA *pfd, DWORD fFlags)488 static HRESULT WINAPI IShellLinkA_fnGetPath(IShellLinkA * iface, LPSTR pszFile,INT cchMaxPath, WIN32_FIND_DATAA *pfd, DWORD fFlags) 489 489 { 490 490 ICOM_THIS(IShellLinkImpl, iface); … … 499 499 return NOERROR; 500 500 } 501 static HRESULT WINAPI IShellLink _fnGetIDList(IShellLink* iface, LPITEMIDLIST * ppidl)501 static HRESULT WINAPI IShellLinkA_fnGetIDList(IShellLinkA * iface, LPITEMIDLIST * ppidl) 502 502 { 503 503 ICOM_THIS(IShellLinkImpl, iface); … … 508 508 return NOERROR; 509 509 } 510 static HRESULT WINAPI IShellLink _fnSetIDList(IShellLink* iface, LPCITEMIDLIST pidl)510 static HRESULT WINAPI IShellLinkA_fnSetIDList(IShellLinkA * iface, LPCITEMIDLIST pidl) 511 511 { 512 512 ICOM_THIS(IShellLinkImpl, iface); … … 519 519 return NOERROR; 520 520 } 521 static HRESULT WINAPI IShellLink _fnGetDescription(IShellLink* iface, LPSTR pszName,INT cchMaxName)521 static HRESULT WINAPI IShellLinkA_fnGetDescription(IShellLinkA * iface, LPSTR pszName,INT cchMaxName) 522 522 { 523 523 ICOM_THIS(IShellLinkImpl, iface); … … 527 527 return NOERROR; 528 528 } 529 static HRESULT WINAPI IShellLink _fnSetDescription(IShellLink* iface, LPCSTR pszName)529 static HRESULT WINAPI IShellLinkA_fnSetDescription(IShellLinkA * iface, LPCSTR pszName) 530 530 { 531 531 ICOM_THIS(IShellLinkImpl, iface); … … 534 534 return NOERROR; 535 535 } 536 static HRESULT WINAPI IShellLink _fnGetWorkingDirectory(IShellLink* iface, LPSTR pszDir,INT cchMaxPath)536 static HRESULT WINAPI IShellLinkA_fnGetWorkingDirectory(IShellLinkA * iface, LPSTR pszDir,INT cchMaxPath) 537 537 { 538 538 ICOM_THIS(IShellLinkImpl, iface); … … 542 542 return NOERROR; 543 543 } 544 static HRESULT WINAPI IShellLink _fnSetWorkingDirectory(IShellLink* iface, LPCSTR pszDir)544 static HRESULT WINAPI IShellLinkA_fnSetWorkingDirectory(IShellLinkA * iface, LPCSTR pszDir) 545 545 { 546 546 ICOM_THIS(IShellLinkImpl, iface); … … 549 549 return NOERROR; 550 550 } 551 static HRESULT WINAPI IShellLink _fnGetArguments(IShellLink* iface, LPSTR pszArgs,INT cchMaxPath)551 static HRESULT WINAPI IShellLinkA_fnGetArguments(IShellLinkA * iface, LPSTR pszArgs,INT cchMaxPath) 552 552 { 553 553 ICOM_THIS(IShellLinkImpl, iface); … … 557 557 return NOERROR; 558 558 } 559 static HRESULT WINAPI IShellLink _fnSetArguments(IShellLink* iface, LPCSTR pszArgs)559 static HRESULT WINAPI IShellLinkA_fnSetArguments(IShellLinkA * iface, LPCSTR pszArgs) 560 560 { 561 561 ICOM_THIS(IShellLinkImpl, iface); … … 565 565 return NOERROR; 566 566 } 567 static HRESULT WINAPI IShellLink _fnGetHotkey(IShellLink* iface, WORD *pwHotkey)567 static HRESULT WINAPI IShellLinkA_fnGetHotkey(IShellLinkA * iface, WORD *pwHotkey) 568 568 { 569 569 ICOM_THIS(IShellLinkImpl, iface); … … 575 575 return NOERROR; 576 576 } 577 static HRESULT WINAPI IShellLink _fnSetHotkey(IShellLink* iface, WORD wHotkey)577 static HRESULT WINAPI IShellLinkA_fnSetHotkey(IShellLinkA * iface, WORD wHotkey) 578 578 { 579 579 ICOM_THIS(IShellLinkImpl, iface); … … 585 585 return NOERROR; 586 586 } 587 static HRESULT WINAPI IShellLink _fnGetShowCmd(IShellLink* iface, INT *piShowCmd)587 static HRESULT WINAPI IShellLinkA_fnGetShowCmd(IShellLinkA * iface, INT *piShowCmd) 588 588 { 589 589 ICOM_THIS(IShellLinkImpl, iface); … … 593 593 return NOERROR; 594 594 } 595 static HRESULT WINAPI IShellLink _fnSetShowCmd(IShellLink* iface, INT iShowCmd)595 static HRESULT WINAPI IShellLinkA_fnSetShowCmd(IShellLinkA * iface, INT iShowCmd) 596 596 { 597 597 ICOM_THIS(IShellLinkImpl, iface); … … 600 600 return NOERROR; 601 601 } 602 static HRESULT WINAPI IShellLink _fnGetIconLocation(IShellLink* iface, LPSTR pszIconPath,INT cchIconPath,INT *piIcon)602 static HRESULT WINAPI IShellLinkA_fnGetIconLocation(IShellLinkA * iface, LPSTR pszIconPath,INT cchIconPath,INT *piIcon) 603 603 { 604 604 ICOM_THIS(IShellLinkImpl, iface); … … 609 609 return NOERROR; 610 610 } 611 static HRESULT WINAPI IShellLink _fnSetIconLocation(IShellLink* iface, LPCSTR pszIconPath,INT iIcon)611 static HRESULT WINAPI IShellLinkA_fnSetIconLocation(IShellLinkA * iface, LPCSTR pszIconPath,INT iIcon) 612 612 { 613 613 ICOM_THIS(IShellLinkImpl, iface); … … 616 616 return NOERROR; 617 617 } 618 static HRESULT WINAPI IShellLink _fnSetRelativePath(IShellLink* iface, LPCSTR pszPathRel, DWORD dwReserved)618 static HRESULT WINAPI IShellLinkA_fnSetRelativePath(IShellLinkA * iface, LPCSTR pszPathRel, DWORD dwReserved) 619 619 { 620 620 ICOM_THIS(IShellLinkImpl, iface); … … 623 623 return NOERROR; 624 624 } 625 static HRESULT WINAPI IShellLink _fnResolve(IShellLink* iface, HWND hwnd, DWORD fFlags)625 static HRESULT WINAPI IShellLinkA_fnResolve(IShellLinkA * iface, HWND hwnd, DWORD fFlags) 626 626 { 627 627 ICOM_THIS(IShellLinkImpl, iface); … … 630 630 return NOERROR; 631 631 } 632 static HRESULT WINAPI IShellLink _fnSetPath(IShellLink* iface, LPCSTR pszFile)632 static HRESULT WINAPI IShellLinkA_fnSetPath(IShellLinkA * iface, LPCSTR pszFile) 633 633 { 634 634 ICOM_THIS(IShellLinkImpl, iface); … … 642 642 */ 643 643 644 static ICOM_VTABLE(IShellLink ) slvt =644 static ICOM_VTABLE(IShellLinkA) slvt = 645 645 { 646 646 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 647 IShellLink _fnQueryInterface,648 IShellLink _fnAddRef,649 IShellLink _fnRelease,650 IShellLink _fnGetPath,651 IShellLink _fnGetIDList,652 IShellLink _fnSetIDList,653 IShellLink _fnGetDescription,654 IShellLink _fnSetDescription,655 IShellLink _fnGetWorkingDirectory,656 IShellLink _fnSetWorkingDirectory,657 IShellLink _fnGetArguments,658 IShellLink _fnSetArguments,659 IShellLink _fnGetHotkey,660 IShellLink _fnSetHotkey,661 IShellLink _fnGetShowCmd,662 IShellLink _fnSetShowCmd,663 IShellLink _fnGetIconLocation,664 IShellLink _fnSetIconLocation,665 IShellLink _fnSetRelativePath,666 IShellLink _fnResolve,667 IShellLink _fnSetPath647 IShellLinkA_fnQueryInterface, 648 IShellLinkA_fnAddRef, 649 IShellLinkA_fnRelease, 650 IShellLinkA_fnGetPath, 651 IShellLinkA_fnGetIDList, 652 IShellLinkA_fnSetIDList, 653 IShellLinkA_fnGetDescription, 654 IShellLinkA_fnSetDescription, 655 IShellLinkA_fnGetWorkingDirectory, 656 IShellLinkA_fnSetWorkingDirectory, 657 IShellLinkA_fnGetArguments, 658 IShellLinkA_fnSetArguments, 659 IShellLinkA_fnGetHotkey, 660 IShellLinkA_fnSetHotkey, 661 IShellLinkA_fnGetShowCmd, 662 IShellLinkA_fnSetShowCmd, 663 IShellLinkA_fnGetIconLocation, 664 IShellLinkA_fnSetIconLocation, 665 IShellLinkA_fnSetRelativePath, 666 IShellLinkA_fnResolve, 667 IShellLinkA_fnSetPath 668 668 }; 669 669 … … 677 677 _ICOM_THIS_From_IShellLinkW(IShellLinkImpl, iface); 678 678 679 return IShellLink _QueryInterface((IShellLink*)This, riid, ppvObj);679 return IShellLinkA_QueryInterface((IShellLinkA*)This, riid, ppvObj); 680 680 } 681 681 … … 689 689 TRACE("(%p)->(count=%lu)\n",This,This->ref); 690 690 691 return IShellLink _AddRef((IShellLink*)This);691 return IShellLinkA_AddRef((IShellLinkA*)This); 692 692 } 693 693 /****************************************************************************** … … 701 701 TRACE("(%p)->(count=%lu)\n",This,This->ref); 702 702 703 return IShellLink _Release((IShellLink*)This);703 return IShellLinkA_Release((IShellLinkA*)This); 704 704 } 705 705 … … 888 888 889 889 /************************************************************************** 890 * IShellLink _Constructor891 */ 892 IShellLink * IShellLink_Constructor(BOOL bUnicode)890 * IShellLinkA_Constructor 891 */ 892 IShellLinkA * IShellLink_Constructor(BOOL bUnicode) 893 893 { IShellLinkImpl * sl; 894 894 … … 902 902 TRACE("(%p)->()\n",sl); 903 903 shell32_ObjCount++; 904 return bUnicode ? (IShellLink *) &(sl->lpvtblw) : (IShellLink*)sl;905 } 906 907 904 return bUnicode ? (IShellLinkA *) &(sl->lpvtblw) : (IShellLinkA *)sl; 905 } 906 907
Note:
See TracChangeset
for help on using the changeset viewer.