PathParseIconLocationPathParseIconLocation*
*Contents  *Index  *Topic Contents
*Previous Topic: PathMatchSpec
*Next Topic: PathQuoteSpaces

PathParseIconLocation


int PathParseIconLocation(
    IN OUT LPTSTR pszIconFile
    );

Parses a file location string for its file component and icon index.

pszIconFile
Address of the string that will be parsed.

Example:

#include <windows.h>
#include <iostream.h>
#include "Shlwapi.h"

void main( void )
{

	// Path to parse for file and icon index.
	char buffer_1[] = "C:\\TEST\\sample.txt,3"; 
	char *lpStr1;
	lpStr1 = buffer_1;

	// Return value from "PathParseIconLocation".	
	int	retval;	

	// Search a path to parse for file and icon index.
	retval = PathParseIconLocation(lpStr1);
	cout << "The path to parse for file and icon index is   : " << lpStr1 << endl;
    cout << "PathParseIconLocation returns the icon index of: " << retval << endl;
   
}
OUTPUT:
==========
The path to parse for file and icon index is   : C:\TEST\sample.txt
PathParseIconLocation returns the icon index of: 3

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.