Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
699 B

//---------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation 1991-1993
//
// File: shitemid.c
//
// History:
// 12-06-93 SatoNa Created.
//
//---------------------------------------------------------------------------
#include "shellprv.h"
#pragma hdrstop
//
// Returns:
// The resource index (of SHELL232.DLL) of the appropriate icon.
//
UINT SILGetIconIndex(LPCITEMIDLIST pidl, const ICONMAP aicmp[], UINT cmax)
{
UINT i=0;
UINT uType = (pidl->mkid.abID[0] & SHID_TYPEMASK);
for (i=0; i<cmax; i++) {
if (aicmp[i].uType == uType) {
return aicmp[i].indexResource;
}
}
return II_DOCUMENT; // default
}