aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-07-05 17:05:23 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-07-06 21:30:49 +1000
commit3afdaa298c9bd341c04472a739f2b28ac8c577ca (patch)
tree7cb4aa762473ef561e8e4f69fc924d59794e7499
parent4725cea30832be9113269ef567f196ea3d91cb78 (diff)
downloadwix-3afdaa298c9bd341c04472a739f2b28ac8c577ca.tar.gz
wix-3afdaa298c9bd341c04472a739f2b28ac8c577ca.tar.bz2
wix-3afdaa298c9bd341c04472a739f2b28ac8c577ca.zip
Methods in thmtuil.h shouldn't be declared as EXTERN "C".
-rw-r--r--src/dutil/inc/thmutil.h80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/dutil/inc/thmutil.h b/src/dutil/inc/thmutil.h
index 5b3d4667..4d52fa69 100644
--- a/src/dutil/inc/thmutil.h
+++ b/src/dutil/inc/thmutil.h
@@ -299,7 +299,7 @@ struct THEME
299 ThemeInitialize - initialized theme management. 299 ThemeInitialize - initialized theme management.
300 300
301*******************************************************************/ 301*******************************************************************/
302DAPI_(HRESULT) ThemeInitialize( 302HRESULT DAPI ThemeInitialize(
303 __in_opt HMODULE hModule 303 __in_opt HMODULE hModule
304 ); 304 );
305 305
@@ -307,13 +307,13 @@ DAPI_(HRESULT) ThemeInitialize(
307 ThemeUninitialize - uninitialize theme management. 307 ThemeUninitialize - uninitialize theme management.
308 308
309*******************************************************************/ 309*******************************************************************/
310DAPI_(void) ThemeUninitialize(); 310void DAPI ThemeUninitialize();
311 311
312/******************************************************************** 312/********************************************************************
313 ThemeLoadFromFile - loads a theme from a loose file. 313 ThemeLoadFromFile - loads a theme from a loose file.
314 314
315 *******************************************************************/ 315 *******************************************************************/
316DAPI_(HRESULT) ThemeLoadFromFile( 316HRESULT DAPI ThemeLoadFromFile(
317 __in_z LPCWSTR wzThemeFile, 317 __in_z LPCWSTR wzThemeFile,
318 __out THEME** ppTheme 318 __out THEME** ppTheme
319 ); 319 );
@@ -323,7 +323,7 @@ DAPI_(HRESULT) ThemeLoadFromFile(
323 323
324 NOTE: The resource data must be UTF-8 encoded. 324 NOTE: The resource data must be UTF-8 encoded.
325*******************************************************************/ 325*******************************************************************/
326DAPI_(HRESULT) ThemeLoadFromResource( 326HRESULT DAPI ThemeLoadFromResource(
327 __in_opt HMODULE hModule, 327 __in_opt HMODULE hModule,
328 __in_z LPCSTR szResource, 328 __in_z LPCSTR szResource,
329 __out THEME** ppTheme 329 __out THEME** ppTheme
@@ -333,7 +333,7 @@ DAPI_(HRESULT) ThemeLoadFromResource(
333 ThemeFree - frees any memory associated with a theme. 333 ThemeFree - frees any memory associated with a theme.
334 334
335*******************************************************************/ 335*******************************************************************/
336DAPI_(void) ThemeFree( 336void DAPI ThemeFree(
337 __in THEME* pTheme 337 __in THEME* pTheme
338 ); 338 );
339 339
@@ -342,7 +342,7 @@ ThemeRegisterVariableCallbacks - registers a context and callbacks
342 for working with variables. 342 for working with variables.
343 343
344*******************************************************************/ 344*******************************************************************/
345DAPI_(HRESULT) ThemeRegisterVariableCallbacks( 345HRESULT DAPI ThemeRegisterVariableCallbacks(
346 __in THEME* pTheme, 346 __in THEME* pTheme,
347 __in_opt PFNTHM_EVALUATE_VARIABLE_CONDITION pfnEvaluateCondition, 347 __in_opt PFNTHM_EVALUATE_VARIABLE_CONDITION pfnEvaluateCondition,
348 __in_opt PFNTHM_FORMAT_VARIABLE_STRING pfnFormatString, 348 __in_opt PFNTHM_FORMAT_VARIABLE_STRING pfnFormatString,
@@ -357,7 +357,7 @@ DAPI_(HRESULT) ThemeRegisterVariableCallbacks(
357 ThemeLoadControls - creates the windows for all the theme controls. 357 ThemeLoadControls - creates the windows for all the theme controls.
358 358
359*******************************************************************/ 359*******************************************************************/
360DAPI_(HRESULT) ThemeLoadControls( 360HRESULT DAPI ThemeLoadControls(
361 __in THEME* pTheme, 361 __in THEME* pTheme,
362 __in HWND hwndParent, 362 __in HWND hwndParent,
363 __in_ecount_opt(cAssignControlIds) const THEME_ASSIGN_CONTROL_ID* rgAssignControlIds, 363 __in_ecount_opt(cAssignControlIds) const THEME_ASSIGN_CONTROL_ID* rgAssignControlIds,
@@ -369,7 +369,7 @@ DAPI_(HRESULT) ThemeLoadControls(
369 controls can be reloaded. 369 controls can be reloaded.
370 370
371*******************************************************************/ 371*******************************************************************/
372DAPI_(void) ThemeUnloadControls( 372void DAPI ThemeUnloadControls(
373 __in THEME* pTheme 373 __in THEME* pTheme
374 ); 374 );
375 375
@@ -377,12 +377,12 @@ DAPI_(void) ThemeUnloadControls(
377 ThemeLocalize - Localizes all of the strings in the theme. 377 ThemeLocalize - Localizes all of the strings in the theme.
378 378
379*******************************************************************/ 379*******************************************************************/
380DAPI_(HRESULT) ThemeLocalize( 380HRESULT DAPI ThemeLocalize(
381 __in THEME *pTheme, 381 __in THEME *pTheme,
382 __in const WIX_LOCALIZATION *pLocStringSet 382 __in const WIX_LOCALIZATION *pLocStringSet
383 ); 383 );
384 384
385DAPI_(HRESULT) ThemeLoadStrings( 385HRESULT DAPI ThemeLoadStrings(
386 __in THEME* pTheme, 386 __in THEME* pTheme,
387 __in HMODULE hResModule 387 __in HMODULE hResModule
388 ); 388 );
@@ -391,7 +391,7 @@ DAPI_(HRESULT) ThemeLoadStrings(
391 ThemeLoadRichEditFromFile - Attach a richedit control to a RTF file. 391 ThemeLoadRichEditFromFile - Attach a richedit control to a RTF file.
392 392
393 *******************************************************************/ 393 *******************************************************************/
394DAPI_(HRESULT) ThemeLoadRichEditFromFile( 394HRESULT DAPI ThemeLoadRichEditFromFile(
395 __in THEME* pTheme, 395 __in THEME* pTheme,
396 __in DWORD dwControl, 396 __in DWORD dwControl,
397 __in_z LPCWSTR wzFileName, 397 __in_z LPCWSTR wzFileName,
@@ -402,7 +402,7 @@ DAPI_(HRESULT) ThemeLoadRichEditFromFile(
402 ThemeLoadRichEditFromResource - Attach a richedit control to resource data. 402 ThemeLoadRichEditFromResource - Attach a richedit control to resource data.
403 403
404 *******************************************************************/ 404 *******************************************************************/
405DAPI_(HRESULT) ThemeLoadRichEditFromResource( 405HRESULT DAPI ThemeLoadRichEditFromResource(
406 __in THEME* pTheme, 406 __in THEME* pTheme,
407 __in DWORD dwControl, 407 __in DWORD dwControl,
408 __in_z LPCSTR szResourceName, 408 __in_z LPCSTR szResourceName,
@@ -414,7 +414,7 @@ DAPI_(HRESULT) ThemeLoadRichEditFromResource(
414 HWND) to resource data. 414 HWND) to resource data.
415 415
416 *******************************************************************/ 416 *******************************************************************/
417DAPI_(HRESULT) ThemeLoadRichEditFromResourceToHWnd( 417HRESULT DAPI ThemeLoadRichEditFromResourceToHWnd(
418 __in HWND hWnd, 418 __in HWND hWnd,
419 __in_z LPCSTR szResourceName, 419 __in_z LPCSTR szResourceName,
420 __in HMODULE hModule 420 __in HMODULE hModule
@@ -425,7 +425,7 @@ DAPI_(HRESULT) ThemeLoadRichEditFromResourceToHWnd(
425 accelerator table. 425 accelerator table.
426 426
427*******************************************************************/ 427*******************************************************************/
428DAPI_(BOOL) ThemeHandleKeyboardMessage( 428BOOL DAPI ThemeHandleKeyboardMessage(
429 __in_opt THEME* pTheme, 429 __in_opt THEME* pTheme,
430 __in HWND hWnd, 430 __in HWND hWnd,
431 __in MSG* pMsg 431 __in MSG* pMsg
@@ -447,7 +447,7 @@ LRESULT CALLBACK ThemeDefWindowProc(
447 ThemeGetPageIds - gets the page ids for the theme via page names. 447 ThemeGetPageIds - gets the page ids for the theme via page names.
448 448
449*******************************************************************/ 449*******************************************************************/
450DAPI_(void) ThemeGetPageIds( 450void DAPI ThemeGetPageIds(
451 __in const THEME* pTheme, 451 __in const THEME* pTheme,
452 __in_ecount(cGetPages) LPCWSTR* rgwzFindNames, 452 __in_ecount(cGetPages) LPCWSTR* rgwzFindNames,
453 __inout_ecount(cGetPages) DWORD* rgdwPageIds, 453 __inout_ecount(cGetPages) DWORD* rgdwPageIds,
@@ -458,7 +458,7 @@ DAPI_(void) ThemeGetPageIds(
458 ThemeGetPage - gets a theme page by id. 458 ThemeGetPage - gets a theme page by id.
459 459
460 *******************************************************************/ 460 *******************************************************************/
461DAPI_(THEME_PAGE*) ThemeGetPage( 461THEME_PAGE* DAPI ThemeGetPage(
462 __in const THEME* pTheme, 462 __in const THEME* pTheme,
463 __in DWORD dwPage 463 __in DWORD dwPage
464 ); 464 );
@@ -467,7 +467,7 @@ DAPI_(THEME_PAGE*) ThemeGetPage(
467 ThemeShowPage - shows or hides all of the controls in the page at one time. 467 ThemeShowPage - shows or hides all of the controls in the page at one time.
468 468
469 *******************************************************************/ 469 *******************************************************************/
470DAPI_(HRESULT) ThemeShowPage( 470HRESULT DAPI ThemeShowPage(
471 __in THEME* pTheme, 471 __in THEME* pTheme,
472 __in DWORD dwPage, 472 __in DWORD dwPage,
473 __in int nCmdShow 473 __in int nCmdShow
@@ -481,7 +481,7 @@ ThemeShowPageEx - shows or hides all of the controls in the page at one time.
481 showing a new page. 481 showing a new page.
482 482
483*******************************************************************/ 483*******************************************************************/
484DAPI_(HRESULT) ThemeShowPageEx( 484HRESULT DAPI ThemeShowPageEx(
485 __in THEME* pTheme, 485 __in THEME* pTheme,
486 __in DWORD dwPage, 486 __in DWORD dwPage,
487 __in int nCmdShow, 487 __in int nCmdShow,
@@ -493,7 +493,7 @@ DAPI_(HRESULT) ThemeShowPageEx(
493ThemeShowChild - shows a control's specified child control, hiding the rest. 493ThemeShowChild - shows a control's specified child control, hiding the rest.
494 494
495*******************************************************************/ 495*******************************************************************/
496DAPI_(void) ThemeShowChild( 496void DAPI ThemeShowChild(
497 __in THEME* pTheme, 497 __in THEME* pTheme,
498 __in THEME_CONTROL* pParentControl, 498 __in THEME_CONTROL* pParentControl,
499 __in DWORD dwIndex 499 __in DWORD dwIndex
@@ -503,7 +503,7 @@ DAPI_(void) ThemeShowChild(
503 ThemeControlExists - check if a control with the specified id exists. 503 ThemeControlExists - check if a control with the specified id exists.
504 504
505 *******************************************************************/ 505 *******************************************************************/
506DAPI_(BOOL) ThemeControlExists( 506BOOL DAPI ThemeControlExists(
507 __in const THEME* pTheme, 507 __in const THEME* pTheme,
508 __in DWORD dwControl 508 __in DWORD dwControl
509 ); 509 );
@@ -512,7 +512,7 @@ DAPI_(BOOL) ThemeControlExists(
512 ThemeControlEnable - enables/disables a control. 512 ThemeControlEnable - enables/disables a control.
513 513
514 *******************************************************************/ 514 *******************************************************************/
515DAPI_(void) ThemeControlEnable( 515void DAPI ThemeControlEnable(
516 __in THEME* pTheme, 516 __in THEME* pTheme,
517 __in DWORD dwControl, 517 __in DWORD dwControl,
518 __in BOOL fEnable 518 __in BOOL fEnable
@@ -522,7 +522,7 @@ DAPI_(void) ThemeControlEnable(
522 ThemeControlEnabled - returns whether a control is enabled/disabled. 522 ThemeControlEnabled - returns whether a control is enabled/disabled.
523 523
524 *******************************************************************/ 524 *******************************************************************/
525DAPI_(BOOL) ThemeControlEnabled( 525BOOL DAPI ThemeControlEnabled(
526 __in THEME* pTheme, 526 __in THEME* pTheme,
527 __in DWORD dwControl 527 __in DWORD dwControl
528 ); 528 );
@@ -531,7 +531,7 @@ DAPI_(BOOL) ThemeControlEnabled(
531 ThemeControlElevates - sets/removes the shield icon on a control. 531 ThemeControlElevates - sets/removes the shield icon on a control.
532 532
533 *******************************************************************/ 533 *******************************************************************/
534DAPI_(void) ThemeControlElevates( 534void DAPI ThemeControlElevates(
535 __in THEME* pTheme, 535 __in THEME* pTheme,
536 __in DWORD dwControl, 536 __in DWORD dwControl,
537 __in BOOL fElevates 537 __in BOOL fElevates
@@ -541,7 +541,7 @@ DAPI_(void) ThemeControlElevates(
541 ThemeShowControl - shows/hides a control. 541 ThemeShowControl - shows/hides a control.
542 542
543 *******************************************************************/ 543 *******************************************************************/
544DAPI_(void) ThemeShowControl( 544void DAPI ThemeShowControl(
545 __in THEME* pTheme, 545 __in THEME* pTheme,
546 __in DWORD dwControl, 546 __in DWORD dwControl,
547 __in int nCmdShow 547 __in int nCmdShow
@@ -552,7 +552,7 @@ ThemeShowControlEx - shows/hides a control with support for
552conditional text and notes. 552conditional text and notes.
553 553
554*******************************************************************/ 554*******************************************************************/
555DAPI_(void) ThemeShowControlEx( 555void DAPI ThemeShowControlEx(
556 __in THEME* pTheme, 556 __in THEME* pTheme,
557 __in DWORD dwControl, 557 __in DWORD dwControl,
558 __in int nCmdShow 558 __in int nCmdShow
@@ -562,12 +562,12 @@ DAPI_(void) ThemeShowControlEx(
562 ThemeControlVisible - returns whether a control is visible. 562 ThemeControlVisible - returns whether a control is visible.
563 563
564 *******************************************************************/ 564 *******************************************************************/
565DAPI_(BOOL) ThemeControlVisible( 565BOOL DAPI ThemeControlVisible(
566 __in THEME* pTheme, 566 __in THEME* pTheme,
567 __in DWORD dwControl 567 __in DWORD dwControl
568 ); 568 );
569 569
570DAPI_(BOOL) ThemePostControlMessage( 570BOOL DAPI ThemePostControlMessage(
571 __in THEME* pTheme, 571 __in THEME* pTheme,
572 __in DWORD dwControl, 572 __in DWORD dwControl,
573 __in UINT Msg, 573 __in UINT Msg,
@@ -575,7 +575,7 @@ DAPI_(BOOL) ThemePostControlMessage(
575 __in LPARAM lParam 575 __in LPARAM lParam
576 ); 576 );
577 577
578DAPI_(LRESULT) ThemeSendControlMessage( 578LRESULT DAPI ThemeSendControlMessage(
579 __in const THEME* pTheme, 579 __in const THEME* pTheme,
580 __in DWORD dwControl, 580 __in DWORD dwControl,
581 __in UINT Msg, 581 __in UINT Msg,
@@ -587,7 +587,7 @@ DAPI_(LRESULT) ThemeSendControlMessage(
587 ThemeDrawBackground - draws the theme background. 587 ThemeDrawBackground - draws the theme background.
588 588
589*******************************************************************/ 589*******************************************************************/
590DAPI_(HRESULT) ThemeDrawBackground( 590HRESULT DAPI ThemeDrawBackground(
591 __in THEME* pTheme, 591 __in THEME* pTheme,
592 __in PAINTSTRUCT* pps 592 __in PAINTSTRUCT* pps
593 ); 593 );
@@ -596,7 +596,7 @@ DAPI_(HRESULT) ThemeDrawBackground(
596 ThemeDrawControl - draw an owner drawn control. 596 ThemeDrawControl - draw an owner drawn control.
597 597
598*******************************************************************/ 598*******************************************************************/
599DAPI_(HRESULT) ThemeDrawControl( 599HRESULT DAPI ThemeDrawControl(
600 __in THEME* pTheme, 600 __in THEME* pTheme,
601 __in DRAWITEMSTRUCT* pdis 601 __in DRAWITEMSTRUCT* pdis
602 ); 602 );
@@ -605,7 +605,7 @@ DAPI_(HRESULT) ThemeDrawControl(
605 ThemeHoverControl - mark a control as hover. 605 ThemeHoverControl - mark a control as hover.
606 606
607*******************************************************************/ 607*******************************************************************/
608DAPI_(BOOL) ThemeHoverControl( 608BOOL DAPI ThemeHoverControl(
609 __in THEME* pTheme, 609 __in THEME* pTheme,
610 __in HWND hwndParent, 610 __in HWND hwndParent,
611 __in HWND hwndControl 611 __in HWND hwndControl
@@ -616,7 +616,7 @@ DAPI_(BOOL) ThemeHoverControl(
616 really useful for checkbox controls. 616 really useful for checkbox controls.
617 617
618*******************************************************************/ 618*******************************************************************/
619DAPI_(BOOL) ThemeIsControlChecked( 619BOOL DAPI ThemeIsControlChecked(
620 __in THEME* pTheme, 620 __in THEME* pTheme,
621 __in DWORD dwControl 621 __in DWORD dwControl
622 ); 622 );
@@ -625,7 +625,7 @@ DAPI_(BOOL) ThemeIsControlChecked(
625 ThemeSetControlColor - sets the color of text for a control. 625 ThemeSetControlColor - sets the color of text for a control.
626 626
627*******************************************************************/ 627*******************************************************************/
628DAPI_(BOOL) ThemeSetControlColor( 628BOOL DAPI ThemeSetControlColor(
629 __in THEME* pTheme, 629 __in THEME* pTheme,
630 __in HDC hdc, 630 __in HDC hdc,
631 __in HWND hWnd, 631 __in HWND hWnd,
@@ -637,7 +637,7 @@ DAPI_(BOOL) ThemeSetControlColor(
637 progress bar control. 637 progress bar control.
638 638
639*******************************************************************/ 639*******************************************************************/
640DAPI_(HRESULT) ThemeSetProgressControl( 640HRESULT DAPI ThemeSetProgressControl(
641 __in THEME* pTheme, 641 __in THEME* pTheme,
642 __in DWORD dwControl, 642 __in DWORD dwControl,
643 __in DWORD dwProgressPercentage 643 __in DWORD dwProgressPercentage
@@ -648,7 +648,7 @@ DAPI_(HRESULT) ThemeSetProgressControl(
648 progress bar control. 648 progress bar control.
649 649
650*******************************************************************/ 650*******************************************************************/
651DAPI_(HRESULT) ThemeSetProgressControlColor( 651HRESULT DAPI ThemeSetProgressControlColor(
652 __in THEME* pTheme, 652 __in THEME* pTheme,
653 __in DWORD dwControl, 653 __in DWORD dwControl,
654 __in DWORD dwColorIndex 654 __in DWORD dwColorIndex
@@ -658,7 +658,7 @@ DAPI_(HRESULT) ThemeSetProgressControlColor(
658 ThemeSetTextControl - sets the text of a control. 658 ThemeSetTextControl - sets the text of a control.
659 659
660*******************************************************************/ 660*******************************************************************/
661DAPI_(HRESULT) ThemeSetTextControl( 661HRESULT DAPI ThemeSetTextControl(
662 __in const THEME* pTheme, 662 __in const THEME* pTheme,
663 __in DWORD dwControl, 663 __in DWORD dwControl,
664 __in_z_opt LPCWSTR wzText 664 __in_z_opt LPCWSTR wzText
@@ -669,7 +669,7 @@ ThemeSetTextControl - sets the text of a control and optionally
669 invalidates the control. 669 invalidates the control.
670 670
671*******************************************************************/ 671*******************************************************************/
672DAPI_(HRESULT) ThemeSetTextControlEx( 672HRESULT DAPI ThemeSetTextControlEx(
673 __in const THEME* pTheme, 673 __in const THEME* pTheme,
674 __in DWORD dwControl, 674 __in DWORD dwControl,
675 __in BOOL fUpdate, 675 __in BOOL fUpdate,
@@ -680,7 +680,7 @@ DAPI_(HRESULT) ThemeSetTextControlEx(
680 ThemeGetTextControl - gets the text of a control. 680 ThemeGetTextControl - gets the text of a control.
681 681
682*******************************************************************/ 682*******************************************************************/
683DAPI_(HRESULT) ThemeGetTextControl( 683HRESULT DAPI ThemeGetTextControl(
684 __in const THEME* pTheme, 684 __in const THEME* pTheme,
685 __in DWORD dwControl, 685 __in DWORD dwControl,
686 __out_z LPWSTR* psczText 686 __out_z LPWSTR* psczText
@@ -690,7 +690,7 @@ DAPI_(HRESULT) ThemeGetTextControl(
690 ThemeUpdateCaption - updates the caption in the theme. 690 ThemeUpdateCaption - updates the caption in the theme.
691 691
692*******************************************************************/ 692*******************************************************************/
693DAPI_(HRESULT) ThemeUpdateCaption( 693HRESULT DAPI ThemeUpdateCaption(
694 __in THEME* pTheme, 694 __in THEME* pTheme,
695 __in_z LPCWSTR wzCaption 695 __in_z LPCWSTR wzCaption
696 ); 696 );
@@ -700,7 +700,7 @@ DAPI_(HRESULT) ThemeUpdateCaption(
700 enabled control if it is disabled. 700 enabled control if it is disabled.
701 701
702*******************************************************************/ 702*******************************************************************/
703DAPI_(void) ThemeSetFocus( 703void DAPI ThemeSetFocus(
704 __in THEME* pTheme, 704 __in THEME* pTheme,
705 __in DWORD dwControl 705 __in DWORD dwControl
706 ); 706 );