Added a stubbed oleaut32.dll and a little work on ole32.dll

svn path=/trunk/; revision=2065
This commit is contained in:
Rex Jolliff 2001-07-16 01:45:44 +00:00
parent 1f7f2ec88f
commit 5c2ae92c47
8 changed files with 2659 additions and 13 deletions

View file

@ -17,8 +17,8 @@ include rules.mak
#
COMPONENTS = iface_native iface_additional ntoskrnl
BUS = acpi isapnp
DLLS = ntdll kernel32 crtdll advapi32 fmifs gdi32 secur32 user32 ws2_32 \
msafd msvcrt shell32
DLLS = advapi32 crtdll fmifs gdi32 kernel32 msafd msvcrt ntdll \
ole32 oleaut32 secur32 shell32 user32 ws2_32
SUBSYS = smss win32k csrss
#

View file

@ -52,7 +52,7 @@ $(TARGETNAME).dll: $(DLLMAIN) $(OBJECTS) $(TARGETNAME).def
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).edf
--def $(TARGETNAME).def
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \

View file

@ -29,19 +29,23 @@ Cambridge, MA 02139, USA.
********************************************************************/
#include "ole32.h"
/*
#if 0
WINOLEAPI_(DWORD) OleBuildVersion( VOID ){return S_OK;}
#endif
WINOLEAPI
OleInitialize (IN LPVOID pvReserved)
{
return E_FAIL;
}
WINOLEAPI OleInitialize(IN LPVOID pvReserved){return S_OK;}
WINOLEAPI_(void) OleUninitialize(void)
WINOLEAPI_(void)
OleUninitialize(void)
{
return;
}
#if 0
WINOLEAPI OleQueryLinkFromData(IN LPDATAOBJECT pSrcDataObject){return S_OK;}
WINOLEAPI OleQueryCreateFromData(IN LPDATAOBJECT pSrcDataObject){return S_OK;}
@ -243,4 +247,8 @@ WINOLEAPI OleConvertOLESTREAMToIStorageEx
OUT LONG FAR* plwWidth, // width
OUT LONG FAR* plHeight, // height
OUT DWORD FAR* pdwSize, // size in bytes
OUT LPSTGMEDIUM pmedium){return S_OK;} // bits*/
OUT LPSTGMEDIUM pmedium){return S_OK;} // bits
#endif

View file

@ -137,7 +137,7 @@ EXPORTS
;OleGetClipboard @221
;OleGetIconOfClass @222
;OleGetIconOfFile @223
;OleInitialize @224
OleInitialize=OleInitialize@4
;OleIsCurrentClipboard @226
;OleIsRunning @227
;OleLoad @228
@ -159,7 +159,7 @@ EXPORTS
;OleSetContainedObject @244
;OleSetMenuDescriptor @245
;OleTranslateAccelerator @246
;OleUninitialize @247
OleUninitialize=OleUninitialize@0
;ProgIDFromCLSID @249
;PropStgNameToFmtId @250
;PropVariantClear @253

View file

@ -0,0 +1,37 @@
/* $Id: dllmain.c,v 1.1 2001/07/16 01:45:43 rex Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/oldaut32/misc/dllmain.c
* PURPOSE: Library main function
* PROGRAMMER: Rex Jolliff (rex@lvcablemodem.com)
*/
#include <ddk/ntddk.h>
#include <windows.h>
#define NDEBUG
#include <debug.h>
INT STDCALL
DllMain(PVOID hinstDll,
ULONG dwReason,
PVOID reserved)
{
DPRINT("OLEAUT32: DllMain() called\n");
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
break;
case DLL_PROCESS_DETACH:
break;
}
DPRINT("OLEAUT32: DllMain() done\n");
return TRUE;
}

View file

@ -0,0 +1,85 @@
# $Id: makefile,v 1.1 2001/07/16 01:45:43 rex Exp $
#
# Makefile for ReactOS oleaut32.dll
#
PATH_TO_TOP = ../..
BASE_CFLAGS = -I../../include
TARGETNAME=oleaut32
IMAGE_BASE = 0x76260000
DLLTARGET=$(TARGETNAME).dll
OBJECTS = dllmain.o stubs.o
CLEAN_FILES = $(OBJECTS) $(TARGETNAME).o $(TARGETNAME).a junk.tmp \
base.tmp temp.exp $(TARGETNAME).dll $(TARGETNAME).sym \
$(TARGETNAME).coff
all: $(DLLTARGET)
$(TARGETNAME).coff: $(TARGETNAME).rc ../../include/reactos/resource.h
$(TARGETNAME).a: $(OBJECTS)
$(LD) -r $(OBJECTS) -o $(TARGETNAME).a
$(TARGETNAME).dll: $(OBJECTS) $(TARGETNAME).def
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--def $(TARGETNAME).def \
--kill-at \
--output-lib $(TARGETNAME).a
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o junk.tmp \
-Wl,--entry=_DllMain@12\
-Wl,--base-file,base.tmp
- $(RM) junk.tmp
$(DLLTOOL) \
--dllname $(TARGETNAME).dll \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGETNAME).def
- $(RM) base.tmp
$(CC) \
$(TARGETNAME).o \
../ntdll/ntdll.a \
../kernel32/kernel32.a \
-nostartfiles \
-nostdlib \
-mdll \
-o $(TARGETNAME).dll \
-Wl,--entry=_DllMain@12\
-Wl,--image-base,$(IMAGE_BASE) \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,temp.exp
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGETNAME).dll > $(TARGETNAME).sym
clean:
- $(RM) $(CLEAN_FILES)
.PHONY: clean
install: $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
$(FLOPPY_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll $(FLOPPY_DIR)/dlls/$(TARGETNAME).dll
dist: $(DIST_DIR)/dlls/$(TARGETNAME).dll
$(DIST_DIR)/dlls/$(TARGETNAME).dll: $(TARGETNAME).dll
$(CP) $(TARGETNAME).dll ../../$(DIST_DIR)/dlls/$(TARGETNAME).dll
include ../../rules.mak

View file

@ -0,0 +1,361 @@
LIBRARY oleaut32.dll
EXPORTS
DllGetClassObject=DllGetClassObject@0 ; @ 1
SysAllocString@4 ; @ 2
SysReAllocString@8 ; @ 3
SysAllocStringLen@8 ; @ 4
SysReAllocStringLen@12 ; @ 5
SysFreeString@4 ; @ 6
SysStringLen@4 ; @ 7
VariantInit@4 ; @ 8
VariantClear@4 ; @ 9
VariantCopy@8 ; @ 10
VariantCopyInd@8 ; @ 11
VariantChangeType@16 ; @ 12
VariantTimeToDosDateTime=VariantTimeToDosDateTime@0 ; @ 13
DosDateTimeToVariantTime@12 ; @ 14
SafeArrayCreate@12 ; @ 15
SafeArrayDestroy@4 ; @ 16
SafeArrayGetDim@4 ; @ 17
SafeArrayGetElemsize@4 ; @ 18
SafeArrayGetUBound@12 ; @ 19
SafeArrayGetLBound@12 ; @ 20
SafeArrayLock@4 ; @ 21
SafeArrayUnlock@4 ; @ 22
SafeArrayAccessData@8 ; @ 23
SafeArrayUnaccessData@4 ; @ 24
SafeArrayGetElement@12 ; @ 25
SafeArrayPutElement@12 ; @ 26
SafeArrayCopy@8 ; @ 27
DispGetParam@20 ; @ 28
DispGetIDsOfNames@16 ; @ 29
DispInvoke@32 ; @ 30
CreateDispTypeInfo@12 ; @ 31
CreateStdDispatch@16 ; @ 32
RegisterActiveObject@16 ; @ 33
RevokeActiveObject@8 ; @ 34
GetActiveObject@12 ; @ 35
SafeArrayAllocDescriptor@8 ; @ 36
SafeArrayAllocData@4 ; @ 37
SafeArrayDestroyDescriptor@4 ; @ 38
SafeArrayDestroyData@4 ; @ 39
SafeArrayRedim@8 ; @ 40
OACreateTypeLib2=OACreateTypeLib2@0 ; @ 41
VarParseNumFromStr=VarParseNumFromStr@0 ; @ 46
VarNumFromParseNum=VarNumFromParseNum@0 ; @ 47
VarI2FromUI1@8 ; @ 48
VarI2FromI4@8 ; @ 49
VarI2FromR4@8 ; @ 50
VarI2FromR8@8 ; @ 51
VarI2FromCy@8 ; @ 52
VarI2FromDate@8 ; @ 53
VarI2FromStr@16 ; @ 54
VarI2FromDisp=VarI2FromDisp@0 ; @ 55
VarI2FromBool@8 ; @ 56
VarI4FromUI1@8 ; @ 58
VarI4FromI2@8 ; @ 59
VarI4FromR4@8 ; @ 60
VarI4FromR8@8 ; @ 61
VarI4FromCy@8 ; @ 62
VarI4FromDate@8 ; @ 63
VarI4FromStr@16 ; @ 64
VarI4FromDisp=VarI4FromDisp@0 ; @ 65
VarI4FromBool@8 ; @ 66
VarR4FromUI1@8 ; @ 68
VarR4FromI2@8 ; @ 69
VarR4FromI4@8 ; @ 70
VarR4FromR8@8 ; @ 71
VarR4FromCy@8 ; @ 72
VarR4FromDate@8 ; @ 73
VarR4FromStr@16 ; @ 74
VarR4FromDisp=VarR4FromDisp@0 ; @ 75
VarR4FromBool@8 ; @ 76
SafeArrayGetVarType@8 ; @ 77
VarR8FromUI1@8 ; @ 78
VarR8FromI2@8 ; @ 79
VarR8FromI4@8 ; @ 80
VarR8FromR4@8 ; @ 81
VarR8FromCy@8 ; @ 82
VarR8FromDate@8 ; @ 83
VarR8FromStr@16 ; @ 84
VarR8FromDisp ; @ 85
VarR8FromBool@8 ; @ 86
VarDateFromUI1@8 ; @ 88
VarDateFromI2@8 ; @ 89
VarDateFromI4@8 ; @ 90
VarDateFromR4@8 ; @ 91
VarDateFromR8@8 ; @ 92
VarDateFromCy@8 ; @ 93
VarDateFromStr@16 ; @ 94
VarDateFromDisp=VarDateFromDisp@0 ; @ 95
VarDateFromBool@8 ; @ 96
VarCyFromUI1@8 ; @ 98
VarCyFromI2@8 ; @ 99
VarCyFromI4@8 ; @ 100
VarCyFromR4@8 ; @ 101
VarCyFromR8@8 ; @ 102
VarCyFromDate@8 ; @ 103
VarCyFromStr@16 ; @ 104
VarCyFromDisp=VarCyFromDisp@0 ; @ 105
VarCyFromBool@8 ; @ 106
VarBstrFromUI1@16 ; @ 108
VarBstrFromI2@16 ; @ 109
VarBstrFromI4@16 ; @ 110
VarBstrFromR4@16 ; @ 111
VarBstrFromR8@16 ; @ 112
VarBstrFromCy@16 ; @ 113
VarBstrFromDate@16 ; @ 114
VarBstrFromDisp=VarBstrFromDisp@0 ; @ 115
VarBstrFromBool@16 ; @ 116
VarBoolFromUI1@8 ; @ 118
VarBoolFromI2@8 ; @ 119
VarBoolFromI4@8 ; @ 120
VarBoolFromR4@8 ; @ 121
VarBoolFromR8@8 ; @ 122
VarBoolFromDate@8 ; @ 123
VarBoolFromCy@8 ; @ 124
VarBoolFromStr@16 ; @ 125
VarBoolFromDisp=VarBoolFromDisp@0 ; @ 126
VarUI1FromI2@8 ; @ 130
VarUI1FromI4@8 ; @ 131
VarUI1FromR4@8 ; @ 132
VarUI1FromR8@8 ; @ 133
VarUI1FromCy@8 ; @ 134
VarUI1FromDate@8 ; @ 135
VarUI1FromStr@16 ; @ 136
VarUI1FromDisp=VarUI1FromDisp@0 ; @ 137
VarUI1FromBool@8 ; @ 138
DispCallFunc=DispCallFunc@0 ; @ 146
VariantChangeTypeEx@20 ; @ 147
SafeArrayPtrOfIndex@12 ; @ 148
SysStringByteLen@4 ; @ 149
SysAllocStringByteLen@8 ; @ 150
CreateTypeLib@12 ; @ 160
LoadTypeLib@8 ; @ 161
LoadRegTypeLib@20 ; @ 162
RegisterTypeLib@12 ; @ 163
QueryPathOfRegTypeLib@20 ; @ 164
LHashValOfNameSys@12 ; @ 165
LHashValOfNameSysA@12 ; @ 166
OaBuildVersion@0 ; @ 170
ClearCustData=ClearCustData@0 ; @ 171
CreateTypeLib2=CreateTypeLib2@0 ; @ 180
LoadTypeLibEx@12 ; @ 183
SystemTimeToVariantTime=SystemTimeToVariantTime@0 ; @ 184
VariantTimeToSystemTime=VariantTimeToSystemTime@0 ; @ 185
UnRegisterTypeLib@20 ; @ 186
VarDecFromUI1=VarDecFromUI1@0 ; @ 190
VarDecFromI2=VarDecFromI2@0 ; @ 191
VarDecFromI4 ; @ 192 (left off here with aliases)
VarDecFromR4 ; @ 193
VarDecFromR8 ; @ 194
VarDecFromDate ; @ 195
VarDecFromCy ; @ 196
VarDecFromStr ; @ 197
VarDecFromDisp ; @ 198
VarDecFromBool ; @ 199
GetErrorInfo=ole32.GetErrorInfo ; @ 200
SetErrorInfo=ole32.SetErrorInfo ; @ 201
CreateErrorInfo=ole32.CreateErrorInfo ; @ 202
VarI2FromI1@8 ; @ 205
VarI2FromUI2@8 ; @ 206
VarI2FromUI4@8 ; @ 207
VarI2FromDec ; @ 208
VarI4FromI1@8 ; @ 209
VarI4FromUI2@8 ; @ 210
VarI4FromUI4@8 ; @ 211
VarI4FromDec ; @ 212
VarR4FromI1@8 ; @ 213
VarR4FromUI2@8 ; @ 214
VarR4FromUI4@8 ; @ 215
VarR4FromDec ; @ 216
VarR8FromI1@8 ; @ 217
VarR8FromUI2@8 ; @ 218
VarR8FromUI4@8 ; @ 219
VarR8FromDec ; @ 220
VarDateFromI1@8 ; @ 221
VarDateFromUI2@8 ; @ 222
VarDateFromUI4@8 ; @ 223
VarDateFromDec ; @ 224
VarCyFromI1@8 ; @ 225
VarCyFromUI2@8 ; @ 226
VarCyFromUI4@8 ; @ 227
VarCyFromDec ; @ 228
VarBstrFromI1@16 ; @ 229
VarBstrFromUI2@16 ; @ 230
VarBstrFromUI4@16 ; @ 231
VarBstrFromDec ; @ 232
VarBoolFromI1@8 ; @ 233
VarBoolFromUI2@8 ; @ 234
VarBoolFromUI4@8 ; @ 235
VarBoolFromDec ; @ 236
VarUI1FromI1@8 ; @ 237
VarUI1FromUI2@8 ; @ 238
VarUI1FromUI4@8 ; @ 239
VarUI1FromDec ; @ 240
VarDecFromI1 ; @ 241
VarDecFromUI2 ; @ 242
VarDecFromUI4 ; @ 243
VarI1FromUI1@8 ; @ 244
VarI1FromI2@8 ; @ 245
VarI1FromI4@8 ; @ 246
VarI1FromR4@8 ; @ 247
VarI1FromR8@8 ; @ 248
VarI1FromDate@8 ; @ 249
VarI1FromCy@8 ; @ 250
VarI1FromStr@16 ; @ 251
VarI1FromDisp ; @ 252
VarI1FromBool@8 ; @ 253
VarI1FromUI2@8 ; @ 254
VarI1FromUI4@8 ; @ 255
VarI1FromDec ; @ 256
VarUI2FromUI1@8 ; @ 257
VarUI2FromI2@8 ; @ 258
VarUI2FromI4@8 ; @ 259
VarUI2FromR4@8 ; @ 260
VarUI2FromR8@8 ; @ 261
VarUI2FromDate@8 ; @ 262
VarUI2FromCy@8 ; @ 263
VarUI2FromStr@16 ; @ 264
VarUI2FromDisp ; @ 265
VarUI2FromBool@8 ; @ 266
VarUI2FromI1@8 ; @ 267
VarUI2FromUI4@8 ; @ 268
VarUI2FromDec ; @ 269
VarUI4FromUI1@8 ; @ 270
VarUI4FromI2@8 ; @ 271
VarUI4FromI4@8 ; @ 272
VarUI4FromR4@8 ; @ 273
VarUI4FromR8@8 ; @ 274
VarUI4FromDate@8 ; @ 275
VarUI4FromCy@8 ; @ 276
VarUI4FromStr@16 ; @ 277
VarUI4FromDisp ; @ 278
VarUI4FromBool@8 ; @ 279
VarUI4FromI1@8 ; @ 280
VarUI4FromUI2@8 ; @ 281
VarUI4FromDec ; @ 282
BSTR_UserSize ; @ 283
BSTR_UserMarshal ; @ 284
BSTR_UserUnmarshal ; @ 285
BSTR_UserFree ; @ 286
VARIANT_UserSize ; @ 287
VARIANT_UserMarshal ; @ 288
VARIANT_UserUnmarshal ; @ 289
VARIANT_UserFree ; @ 290
LPSAFEARRAY_UserSize ; @ 291
LPSAFEARRAY_UserMarshal ; @ 292
LPSAFEARRAY_UserUnmarshal ; @ 293
LPSAFEARRAY_UserFree ; @ 294
LPSAFEARRAY_Size ; @ 295
LPSAFEARRAY_Marshal ; @ 296
LPSAFEARRAY_Unmarshal ; @ 297
DllRegisterServer@0 ; @ 320
DllUnregisterServer@0 ; @ 321
VarDateFromUdate ; @ 330
VarUdateFromDate ; @ 331
GetAltMonthNames ; @ 332
UserHWND_from_local ; @ 380
UserHWND_to_local ; @ 381
UserHWND_free_inst ; @ 382
UserHWND_free_local ; @ 383
UserBSTR_from_local ; @ 384
UserBSTR_to_local ; @ 385
UserBSTR_free_inst ; @ 386
UserBSTR_free_local ; @ 387
UserVARIANT_from_local ; @ 388
UserVARIANT_to_local ; @ 389
UserVARIANT_free_inst ; @ 390
UserVARIANT_free_local ; @ 391
UserEXCEPINFO_from_local ; @ 392
UserEXCEPINFO_to_local ; @ 393
UserEXCEPINFO_free_inst ; @ 394
UserEXCEPINFO_free_local ; @ 395
UserMSG_from_local ; @ 396
UserMSG_to_local ; @ 397
UserMSG_free_inst ; @ 398
UserMSG_free_local ; @ 399
DllCanUnloadNow ; @ 410
SafeArrayCreateVector@12 ; @ 411
SafeArrayCopyData@8 ; @ 412
VectorFromBstr ; @ 413
BstrFromVector ; @ 414
OleIconToCursor@8 ; @ 415
OleCreatePropertyFrameIndirect@4 ; @ 416
OleCreatePropertyFrame@44 ; @ 417
OleLoadPicture@20 ; @ 418
OleCreatePictureIndirect@16 ; @ 419
OleCreateFontIndirect@12 ; @ 420
OleTranslateColor@12 ; @ 421
OleLoadPictureFile ; @ 422
OleSavePictureFile ; @ 423
OleLoadPicturePath ; @ 424
OleLoadPictureEx@32 ; @ 425
GetRecordInfoFromGuids@24 ; @ 426
GetRecordInfoFromTypeInfo@8 ; @ 427
OleLoadPictureFileEx ; @ 428
SafeArrayAllocDescriptorEx ; @ 429
SafeArrayCreateEx ; @ 430
SafeArrayCreateVectorEx ; @ 431
SafeArrayGetIID ; @ 432
SafeArrayGetRecordInfo ; @ 433
SafeArraySetIID ; @ 434
SafeArraySetRecordInfo ; @ 435
VarAbs@8 ; @ 436
VarAdd@12 ; @ 437
VarAnd@12 ; @ 438
VarBstrCat@12 ; @ 439
VarBstrCmp@16 ; @ 440
VarCat@12 ; @ 441
VarCmp@16 ; @ 442
VarCyAbs ; @ 443
VarCyAdd ; @ 444
VarCyCmp ; @ 445
VarCyCmpR8 ; @ 446
VarCyFix ; @ 447
VarCyInt ; @ 448
VarCyMul ; @ 449
VarCyMulI4 ; @ 450
VarCyNeg ; @ 451
VarCyRound ; @ 452
VarCySub ; @ 453
VarDateFromUdateEx@16 ; @ 454
VarDecAbs@8 ; @ 455
VarDecAdd@12 ; @ 456
VarDecCmp@8 ; @ 457
VarDecCmpR8@8 ; @ 458
VarDecDiv@12 ; @ 459
VarDecFix@8 ; @ 460
VarDecInt@8 ; @ 461
VarDecMul@12 ; @ 462
VarDecNeg@8 ; @ 463
VarDecRound@12 ; @ 464
VarDecSub@12 ; @ 465
VarDiv@12 ; @ 466
VarEqv@12 ; @ 467
VarFix@8 ; @ 468
VarFormat@24 ; @ 469
VarFormatCurrency@28 ; @ 470
VarFormatDateTime@16 ; @ 471
VarFormatFromTokens@24 ; @ 472
VarFormatNumber@28 ; @ 473
VarFormatPercent@28 ; @ 474
VarIdiv@12 ; @ 475
VarImp@12 ; @ 476
VarInt@8 ; @ 477
VarMod@12 ; @ 478
VarMonthName@16 ; @ 479
VarMul@12 ; @ 480
VarNeg@8 ; @ 481
VarNot@8 ; @ 482
VarOr@12 ; @ 483
VarPow@12 ; @ 484
VarR4CmpR8 ; @ 485
VarR8Pow@12 ; @ 486
VarR8Round@12 ; @ 487
VarRound@12 ; @ 488
VarSub@12 ; @ 489
VarTokenizeFormatString@28 ; @ 490
VarWeekdayName@20 ; @ 491
VarXor@12 ; @ 492

2155
reactos/lib/oleaut32/stubs.c Normal file

File diff suppressed because it is too large Load diff