ComUtils.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
6  namespace Com
7  {
12  CLSID CLSIDFromProgID(const std::wstring& progid);
13  CLSID CLSIDFromProgID(const std::string& progid);
14 
19  CLSID CLSIDFromString(const std::wstring& guid);
20  CLSID CLSIDFromString(const std::string& guid);
21 
26  IID IIDFromString(const std::wstring& guid);
27  IID IIDFromString(const std::string& guid);
28 
33  std::string ProgIDFromCLSIDA(REFCLSID clsid);
34  std::wstring ProgIDFromCLSIDW(REFCLSID clsid);
35 
40  std::string StringFromCLSIDA(REFCLSID clsid);
41  std::wstring StringFromCLSIDW(REFCLSID clsid);
42 
47  std::string StringFromGUID2A(REFGUID rguid);
48  std::wstring StringFromGUID2W(REFGUID rguid);
49 
54  std::string StringFromIIDA(REFIID rclsid);
55  std::wstring StringFromIIDW(REFIID rclsid);
56 
61  std::string GenerateGUIDStringA();
62  std::wstring GenerateGUIDStringW();
63 
68  bool IsValidGUID(const std::wstring& guid);
69  bool IsValidGUID(const std::string& guid);
70  }
71 }
IID IIDFromString(const std::wstring &guid)
Definition: ComUtils.cpp:33
std::wstring GenerateGUIDStringW()
Definition: ComUtils.cpp:129
std::string StringFromCLSIDA(REFCLSID clsid)
Definition: ComUtils.cpp:77
std::wstring StringFromGUID2W(REFGUID rguid)
Definition: ComUtils.cpp:82
std::string ProgIDFromCLSIDA(REFCLSID clsid)
Definition: ComUtils.cpp:59
std::wstring StringFromCLSIDW(REFCLSID clsid)
Definition: ComUtils.cpp:64
std::wstring ProgIDFromCLSIDW(REFCLSID clsid)
Definition: ComUtils.cpp:47
CLSID CLSIDFromProgID(const std::wstring &progid)
Definition: ComUtils.cpp:12
std::string StringFromGUID2A(REFGUID rguid)
Definition: ComUtils.cpp:96
std::string StringFromIIDA(REFIID rclsid)
Definition: ComUtils.cpp:114
CLSID CLSIDFromString(const std::wstring &guid)
Definition: ComUtils.cpp:20
std::string GenerateGUIDStringA()
Definition: ComUtils.cpp:119
std::wstring StringFromIIDW(REFIID rclsid)
Definition: ComUtils.cpp:101
bool IsValidGUID(const std::wstring &guid)
Definition: ComUtils.cpp:139


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com