src/Common/AtlCom/ComUtils.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc
00004 {
00006     namespace Com
00007     {
00012         CLSID CLSIDFromProgID(const std::wstring& progid);
00013             CLSID CLSIDFromProgID(const std::string& progid);
00014 
00019             CLSID CLSIDFromString(const std::wstring& guid);
00020             CLSID CLSIDFromString(const std::string& guid);
00021 
00026             IID IIDFromString(const std::wstring& guid);
00027             IID IIDFromString(const std::string& guid);
00028 
00033         std::string ProgIDFromCLSIDA(REFCLSID clsid);
00034         std::wstring ProgIDFromCLSIDW(REFCLSID clsid);
00035 
00040         std::string StringFromCLSIDA(REFCLSID clsid);
00041         std::wstring StringFromCLSIDW(REFCLSID clsid);  
00042 
00047         std::string StringFromGUID2A(REFGUID rguid);
00048         std::wstring StringFromGUID2W(REFGUID rguid);   
00049 
00054         std::string StringFromIIDA(REFIID rclsid);
00055         std::wstring StringFromIIDW(REFIID rclsid);     
00056 
00061         std::string GenerateGUIDStringA();
00062         std::wstring GenerateGUIDStringW();
00063 
00068                 bool IsValidGUID(const std::wstring& guid);
00069                 bool IsValidGUID(const std::string& guid);
00070     }
00071 }


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