{"id":16558155,"url":"https://github.com/jaredsburrows/visual-c-to-standard-c","last_synced_at":"2025-07-08T00:38:47.615Z","repository":{"id":145262192,"uuid":"38140915","full_name":"jaredsburrows/visual-c-to-standard-c","owner":"jaredsburrows","description":"Porting Windows C++ to Standard C++11/14","archived":false,"fork":false,"pushed_at":"2017-03-28T06:53:45.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T00:47:09.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredsburrows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-27T00:51:20.000Z","updated_at":"2017-03-28T06:53:46.000Z","dependencies_parsed_at":"2023-07-08T17:00:06.768Z","dependency_job_id":null,"html_url":"https://github.com/jaredsburrows/visual-c-to-standard-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaredsburrows/visual-c-to-standard-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fvisual-c-to-standard-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fvisual-c-to-standard-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fvisual-c-to-standard-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fvisual-c-to-standard-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredsburrows","download_url":"https://codeload.github.com/jaredsburrows/visual-c-to-standard-c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fvisual-c-to-standard-c/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264169459,"owners_count":23567305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T20:09:45.330Z","updated_at":"2025-07-08T00:38:47.588Z","avatar_url":"https://github.com/jaredsburrows.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Visual-C-to-Standard-C\n=====\n\nPorting Windows C++ to Standard C++11/14\n\n## Data Types\n- [Windows C++ data types](https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx)\n  - Here is a list of the Windows header files, most of these are C++ data types that are simply `typedef`ed:\n    - `WinDef.h`, `WinNT.h`, `IntSafe.h`, `BaseTsd.h`, `ShellApi.h`, `Ddeml.h`, `WinUser.h`, `WinSvc.h`, `Winternl.h`\n- [C++ Standard Types](http://en.cppreference.com/w/cpp/types)\n- [C++ Fundamental Types](http://en.cppreference.com/w/cpp/language/types)\n- [C++ Integer Types](http://en.cppreference.com/w/cpp/types/integer)\n  - Here the C++ standard header that you should be using for portable C++ code:\n    - `cstdint` for C++ and `stdint.h` for C\n\n## Bash Script \n\nSimple sed to handle most common Window's `tyedef` to C++ standard conversions.\n\n    $ ./win2c.sh MyFile.cpp\n    \n## Data Types Table\n\nWindows C++ | C++ Standard\n------------- | -------------\nATOM | unsigned short \nBOOL | int \nBOOLEAN | unsigned char \nBYTE | unsigned char \nCCHAR | char \nCHAR | char \nCOLORREF | unsigned long \nCONST | const \nDWORD | unsigned long \nDWORD32 | unsigned int \nFLOAT | float \nHACCEL | void* \nHANDLE | void* \nHBITMAP | void* \nHBRUSH | void* \nHCOLORSPACE | void* \nHCONV | void* \nHCONVLIST | void* \nHCURSOR | void* \nHDC | void* \nHDDEDATA | void* \nHDESK | void* \nHDROP | void* \nHDWP | void* \nHENHMETAFILE | void* \nHFILE | int \nHFONT | void* \nHGDIOBJ | void* \nHGLOBAL | void* \nHHOOK | void* \nHICON | void* \nHINSTANCE | void* \nHKEY | void* \nHKL | void* \nHLOCAL | void* \nHMENU | void* \nHMETAFILE | void* \nHMODULE | void* \nHPALETTE | void* \nHPEN | void* \nHRESULT | long \nHRGN | void* \nHRSRC | void* \nHSZ | void* \nHWINSTA | void* \nHWND | void* \nINT | int \nINT16 | signed short \nINT32 | signed int \nINT8 | signed char \nLANGID | unsigned short \nLCID | unsigned long \nLCTYPE | unsigned long \nLGRPID | unsigned long \nLONG | long \nLONG32 | signed int \nLPCOLORREF | unsigned long* \nLPCVOID | const void* \nLPDWORD | unsigned long \nLPHANDLE | void** \nLPINT | int* \nLPLONG | long* \nLPSTR | char* \nLPVOID | void* \nLPWORD | unsigned short* \nPBOOL | int* \nPBOOLEAN | unsigned char* \nPBYTE | unsigned char* \nPCHAR | char* \nPCSTR | const char* \nPDWORD | unsigned long* \nPDWORD32 | unsigned int* \nPFLOAT | float* \nPHANDLE | void** \nPHKEY | void* \nPINT | int* \nPINT16 | signed short* \nPINT32 | signed int* \nPINT8 | signed char* \nPLCID | unsigned long* \nPLONG | long* \nPSHORT | short* \nPSTR | char \nPUCHAR | unsigned char* \nPUINT | unsigned int* \nPUINT16 | unsigned short* \nPUINT32 | unsigned int* \nPUINT8 | unsigned char* \nPULONG | unsigned long* \nPULONG32 | unsigned int* \nPUSHORT | unsigned short* \nPVOID | void* \nPWORD | unsigned short \nSC_HANDLE | void* \nSC_LOCK | void* \nSERVICE_STATUS_HANDLE | void* \nSHORT | short \ntypedef | INT_PTR *PINT_PTR; \nUCHAR | unsigned char \nUINT | unsigned int \nUINT16 | unsigned short \nUINT32 | unsigned int \nUINT8 | unsigned char \nULONG | unsigned long \nULONG32 | unsigned int \nUSHORT | unsigned short \nVOID | void \nWORD | unsigned short \n\n\nLicense\n=========\n\n    Copyright (C) 2015 Visual-C-to-Standard-C by Jared Burrows\n   \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredsburrows%2Fvisual-c-to-standard-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredsburrows%2Fvisual-c-to-standard-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredsburrows%2Fvisual-c-to-standard-c/lists"}