|
Last change
on this file since 3428 was 2550, checked in by bird, 26 years ago |
|
Added module header on the obsolete files.
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /* $Id: myldrGetResource.cpp,v 1.2 2000-01-28 15:28:43 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * Obsolete
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (c) 1998 knut st. osmundsen
|
|---|
| 6 | *
|
|---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 | #include <ldr.h>
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | /*
|
|---|
| 14 | Notes: form DosGetResource parameters
|
|---|
| 15 | handle to module hMod!
|
|---|
| 16 | idType idType?
|
|---|
| 17 | idName idName?
|
|---|
| 18 | pointer To resource ppRes?
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | */
|
|---|
| 22 | static global_flag_resource = 0;
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | int LDRCALL myldrGetResource(USHORT idType, ULONG idName, USHORT hMod, PPVOID ppRes, ULONG ulP5)
|
|---|
| 26 | {
|
|---|
| 27 | int rc;
|
|---|
| 28 | if ( ulP5 != 1 )
|
|---|
| 29 | kernel_printf(("_ldrGetResource: ulP5=%d (!=1)",ulP5 ));
|
|---|
| 30 | if ( global_flag_resource )
|
|---|
| 31 | kernel_printf(("_ldrGetResource: idType:0x%x idName:0x%x hMod:0x%x *ppRes:0x%x p5:0x%x", idType, idName, hMod, *((PULONG)ppRes), ulP5));
|
|---|
| 32 | rc = _ldrGetResource(idType, idName, hMod, ppRes, ulP5);
|
|---|
| 33 | if ( global_flag_resource )
|
|---|
| 34 | kernel_printf(("_ldrGetResource-post: idType:0x%x idName:0x%x hMod:0x%x *ppRes:0x%x p5:0x%x", idType, idName, hMod, *((PULONG)ppRes), ulP5));
|
|---|
| 35 |
|
|---|
| 36 | return rc;
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.