ReactOS 0.4.15-dev-7842-g558ab78
precomp.h File Reference
#include <windef.h>
#include <winbase.h>
#include <shlobj.h>
#include <tchar.h>
#include <strsafe.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atlsimpcoll.h>
#include <atlstr.h>
#include <atlwin.h>
#include <ui/rosdlgs.h>
#include <apphelp.h>
#include "resource.h"
#include "CLayerStringList.hpp"
#include "CLayerUIPropPage.hpp"
Include dependency graph for precomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COBJMACROS
 
#define WIN32_NO_STATUS
 
#define _INC_WINDOWS
 
#define COM_NO_WINDOWS_H
 
#define NTOS_MODE_USER
 

Functions

ULONG DbgPrint (PCH Format,...)
 
EXTERN_C BOOL WINAPI GetExeFromLnk (PCWSTR pszLnk, PWSTR pszExe, size_t cchSize)
 
BOOL IsBuiltinLayer (PCWSTR Name)
 
BOOL ShowEditCompatModes (HWND hWnd, CLayerUIPropPage *page)
 

Variables

const GUID CLSID_CLayerUIPropPage
 
HMODULE g_hModule
 
LONG g_ModuleRefCnt
 

Macro Definition Documentation

◆ _INC_WINDOWS

#define _INC_WINDOWS

Definition at line 6 of file precomp.h.

◆ COBJMACROS

#define COBJMACROS

Definition at line 4 of file precomp.h.

◆ COM_NO_WINDOWS_H

#define COM_NO_WINDOWS_H

Definition at line 7 of file precomp.h.

◆ NTOS_MODE_USER

#define NTOS_MODE_USER

Definition at line 8 of file precomp.h.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 5 of file precomp.h.

Function Documentation

◆ DbgPrint()

ULONG DbgPrint ( PCH  Format,
  ... 
)

◆ GetExeFromLnk()

EXTERN_C BOOL WINAPI GetExeFromLnk ( PCWSTR  pszLnk,
PWSTR  pszExe,
size_t  cchSize 
)

Definition at line 79 of file ACPPage.cpp.

80{
81 CCoInit init;
83 return FALSE;
84
85 CComPtr<IShellLinkW> spShellLink;
86 if (FAILED_UNEXPECTEDLY(CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(IShellLinkW, &spShellLink))))
87 return FALSE;
88
89 CComPtr<IPersistFile> spPersistFile;
90 if (FAILED_UNEXPECTEDLY(spShellLink->QueryInterface(IID_PPV_ARG(IPersistFile, &spPersistFile))))
91 return FALSE;
92
93 if (FAILED_UNEXPECTEDLY(spPersistFile->Load(pszLnk, STGM_READ)) || FAILED_UNEXPECTEDLY(spShellLink->Resolve(NULL, SLR_NO_UI | SLR_NOUPDATE | SLR_NOSEARCH)))
94 return FALSE;
95
96 return !FAILED_UNEXPECTEDLY(spShellLink->GetPath(pszExe, cchSize, NULL, SLGP_RAWPATH));
97}
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define FAILED_UNEXPECTEDLY(hr)
Definition: precomp.h:121
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
#define STGM_READ
Definition: objbase.h:917
static int init
Definition: wintirpc.c:33
#define IID_PPV_ARG(Itype, ppType)

Referenced by CLayerUIPropPage::InitFile().

◆ IsBuiltinLayer()

BOOL IsBuiltinLayer ( PCWSTR  Name)

Definition at line 69 of file CLayerUIPropPage.cpp.

70{
71 size_t n;
72
73 for (n = 0; g_Layers[n].Name; ++n)
74 {
75 if (!wcsicmp(g_Layers[n].Name, Name))
76 {
77 return TRUE;
78 }
79 }
80
81 for (n = 0; g_CompatModes[n].Name; ++n)
82 {
84 {
85 return TRUE;
86 }
87 }
88 return FALSE;
89}
static struct @307 g_CompatModes[]
static struct @308 g_Layers[]
#define TRUE
Definition: types.h:120
#define wcsicmp
Definition: compat.h:15
GLdouble n
Definition: glext.h:7729

Referenced by CLayerStringList::Next().

◆ ShowEditCompatModes()

BOOL ShowEditCompatModes ( HWND  hWnd,
CLayerUIPropPage page 
)

Definition at line 151 of file CEditCompatModes.cpp.

152{
153 CEditCompatModes modes(page);
154 INT_PTR Result = modes.DoModal(hWnd);
155 return Result == IDOK;
156}
HWND hWnd
Definition: settings.c:17
Definition: module.h:576
int32_t INT_PTR
Definition: typedefs.h:64
#define IDOK
Definition: winuser.h:830
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409

Referenced by CLayerUIPropPage::OnEditModes().

Variable Documentation

◆ CLSID_CLayerUIPropPage

const GUID CLSID_CLayerUIPropPage
extern

Definition at line 18 of file CLayerUIPropPage.cpp.

◆ g_hModule

HMODULE g_hModule
extern

Definition at line 12 of file ACPPage.cpp.

◆ g_ModuleRefCnt

LONG g_ModuleRefCnt
extern

Definition at line 13 of file ACPPage.cpp.