ReactOS  0.4.14-dev-57-g333b8f1
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 <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 86 of file ACPPage.cpp.

87 {
88  CCoInit init;
89  if (FAILED_UNEXPECTEDLY(init.hres))
90  return FALSE;
91 
92  CComPtr<IShellLinkW> spShellLink;
93  if (FAILED_UNEXPECTEDLY(CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(IShellLinkW, &spShellLink))))
94  return FALSE;
95 
96  CComPtr<IPersistFile> spPersistFile;
97  if (FAILED_UNEXPECTEDLY(spShellLink->QueryInterface(IID_PPV_ARG(IPersistFile, &spPersistFile))))
98  return FALSE;
99 
100  if (FAILED_UNEXPECTEDLY(spPersistFile->Load(pszLnk, STGM_READ)) || FAILED_UNEXPECTEDLY(spShellLink->Resolve(NULL, SLR_NO_UI | SLR_NOUPDATE | SLR_NOSEARCH)))
101  return FALSE;
102 
103  return !FAILED_UNEXPECTEDLY(spShellLink->GetPath(pszExe, cchSize, NULL, SLGP_RAWPATH));
104 }
#define IID_PPV_ARG(Itype, ppType)
static int init
Definition: wintirpc.c:33
smooth NULL
Definition: ftsmooth.c:416
#define STGM_READ
Definition: objbase.h:916
#define FAILED_UNEXPECTEDLY(hr)
Definition: shellutils.h:71
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234

Referenced by CLayerUIPropPage::InitFile().

◆ IsBuiltinLayer()

BOOL IsBuiltinLayer ( PCWSTR  Name)

Definition at line 70 of file CLayerUIPropPage.cpp.

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

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 }
#define IDOK
Definition: winuser.h:824
HWND hWnd
Definition: settings.c:17
int32_t INT_PTR
Definition: typedefs.h:62
_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:426
Definition: module.h:566

Referenced by CLayerUIPropPage::OnEditModes().

Variable Documentation

◆ CLSID_CLayerUIPropPage

const GUID CLSID_CLayerUIPropPage

Definition at line 18 of file CLayerUIPropPage.cpp.

◆ g_hModule

HMODULE g_hModule

Definition at line 12 of file ACPPage.cpp.

◆ g_ModuleRefCnt

LONG g_ModuleRefCnt

Definition at line 13 of file ACPPage.cpp.